Fix for r59242.

GCC does not even care here... sorry.

svn path=/trunk/; revision=59245
This commit is contained in:
Daniel Reimer 2013-06-16 22:49:04 +00:00
parent d67db490fb
commit dfe18aa00c
3 changed files with 10 additions and 12 deletions

View file

@ -516,19 +516,17 @@ _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPTSTR lpCmdLine, INT nCmdSh
{ {
WNDCLASS WndClass = {0}; WNDCLASS WndClass = {0};
MSG msg; MSG msg;
HANDLE hMutex;
switch (GetUserDefaultUILanguage()) switch (GetUserDefaultUILanguage())
{ {
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT): case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
SetProcessDefaultLayout(LAYOUT_RTL); SetProcessDefaultLayout(LAYOUT_RTL);
break; break;
default: default:
break; break;
} }
HANDLE hMutex;
hMutex = CreateMutex(NULL, FALSE, szKbSwitcherName); hMutex = CreateMutex(NULL, FALSE, szKbSwitcherName);
if (!hMutex) if (!hMutex)
return 1; return 1;

View file

@ -46,6 +46,9 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
MSG msg; MSG msg;
HACCEL hAccelTable; HACCEL hAccelTable;
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
switch (GetUserDefaultUILanguage()) switch (GetUserDefaultUILanguage())
{ {
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT): case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
@ -56,9 +59,6 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
break; break;
} }
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
// Initialize global strings // Initialize global strings
LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
MyRegisterClass(hInstance); MyRegisterClass(hInstance);

View file

@ -555,6 +555,9 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE prev, LPTSTR cmdline, int sh
MONITORINFO info; MONITORINFO info;
INT x, y; INT x, y;
static const TCHAR className[] = _T("NPClass");
static const TCHAR winName[] = _T("Notepad");
switch (GetUserDefaultUILanguage()) switch (GetUserDefaultUILanguage())
{ {
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT): case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
@ -565,9 +568,6 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE prev, LPTSTR cmdline, int sh
break; break;
} }
static const TCHAR className[] = _T("NPClass");
static const TCHAR winName[] = _T("Notepad");
UNREFERENCED_PARAMETER(prev); UNREFERENCED_PARAMETER(prev);
aFINDMSGSTRING = (ATOM) RegisterWindowMessage(FINDMSGSTRING); aFINDMSGSTRING = (ATOM) RegisterWindowMessage(FINDMSGSTRING);