taskmgr: Remove all TCHAR macro usage in miscellaneous menu code.

oldstable
Andrew Nguyen 2011-05-17 05:15:22 -05:00 committed by Alexandre Julliard
parent da5623cb83
commit 088d0630d9
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ void TaskManager_OnOptionsAlwaysOnTop(void)
* Check or uncheck the always on top menu item
* and update main window.
*/
if ((GetWindowLong(hMainWnd, GWL_EXSTYLE) & WS_EX_TOPMOST) != 0)
if ((GetWindowLongW(hMainWnd, GWL_EXSTYLE) & WS_EX_TOPMOST) != 0)
{
CheckMenuItem(hOptionsMenu, ID_OPTIONS_ALWAYSONTOP, MF_BYCOMMAND|MF_UNCHECKED);
TaskManagerSettings.AlwaysOnTop = FALSE;

View File

@ -52,7 +52,7 @@ void TaskManager_OnFileNew(void)
{
HMODULE hShell32;
RUNFILEDLG RunFileDlg;
OSVERSIONINFO versionInfo;
OSVERSIONINFOW versionInfo;
static const WCHAR wszShell32[] = {'S','H','E','L','L','3','2','.','D','L','L',0};
hShell32 = LoadLibraryW(wszShell32);
@ -62,8 +62,8 @@ void TaskManager_OnFileNew(void)
if (RunFileDlg)
{
HICON hIcon = LoadIconW(GetModuleHandleW(NULL), MAKEINTRESOURCEW(IDI_TASKMANAGER));
versionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&versionInfo);
versionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
GetVersionExW(&versionInfo);
if (versionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT)
{