taskmgr: Remove all TCHAR macro usage in miscellaneous menu code.
This commit is contained in:
parent
da5623cb83
commit
088d0630d9
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue