mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 09:46:21 +00:00
Fix for r59242.
GCC does not even care here... sorry. svn path=/trunk/; revision=59245
This commit is contained in:
parent
d67db490fb
commit
dfe18aa00c
3 changed files with 10 additions and 12 deletions
|
@ -516,19 +516,17 @@ _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPTSTR lpCmdLine, INT nCmdSh
|
|||
{
|
||||
WNDCLASS WndClass = {0};
|
||||
MSG msg;
|
||||
HANDLE hMutex;
|
||||
|
||||
switch (GetUserDefaultUILanguage())
|
||||
{
|
||||
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
HANDLE hMutex;
|
||||
|
||||
hMutex = CreateMutex(NULL, FALSE, szKbSwitcherName);
|
||||
if (!hMutex)
|
||||
return 1;
|
||||
|
|
|
@ -46,6 +46,9 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
|
|||
MSG msg;
|
||||
HACCEL hAccelTable;
|
||||
|
||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||
|
||||
switch (GetUserDefaultUILanguage())
|
||||
{
|
||||
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||
|
@ -56,9 +59,6 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
|
|||
break;
|
||||
}
|
||||
|
||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||
|
||||
// Initialize global strings
|
||||
LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
|
||||
MyRegisterClass(hInstance);
|
||||
|
|
|
@ -555,6 +555,9 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE prev, LPTSTR cmdline, int sh
|
|||
MONITORINFO info;
|
||||
INT x, y;
|
||||
|
||||
static const TCHAR className[] = _T("NPClass");
|
||||
static const TCHAR winName[] = _T("Notepad");
|
||||
|
||||
switch (GetUserDefaultUILanguage())
|
||||
{
|
||||
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||
|
@ -565,9 +568,6 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE prev, LPTSTR cmdline, int sh
|
|||
break;
|
||||
}
|
||||
|
||||
static const TCHAR className[] = _T("NPClass");
|
||||
static const TCHAR winName[] = _T("Notepad");
|
||||
|
||||
UNREFERENCED_PARAMETER(prev);
|
||||
|
||||
aFINDMSGSTRING = (ATOM) RegisterWindowMessage(FINDMSGSTRING);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue