Change console class name for Windows compatibility.

Thanks to tonik <spammed@fromru.com> for reporting and
providing the correct name.
Fixes bug 462.

svn path=/trunk/; revision=12893
This commit is contained in:
Gé van Geldorp 2005-01-08 22:08:29 +00:00
parent ec137eeb0e
commit c7d2525d45

View file

@ -802,7 +802,7 @@ GuiConsoleNotifyWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
SetWindowLongW(hWnd, GWL_USERDATA, 0); SetWindowLongW(hWnd, GWL_USERDATA, 0);
return 0; return 0;
case PM_CREATE_CONSOLE: case PM_CREATE_CONSOLE:
NewWindow = CreateWindowW(L"Win32CsrConsole", NewWindow = CreateWindowW(L"ConsoleWindowClass",
Console->Title.Buffer, Console->Title.Buffer,
WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX, WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX,
CW_USEDEFAULT, CW_USEDEFAULT,
@ -911,7 +911,7 @@ GuiInit(VOID)
} }
wc.cbSize = sizeof(WNDCLASSEXW); wc.cbSize = sizeof(WNDCLASSEXW);
wc.lpszClassName = L"Win32CsrConsole"; wc.lpszClassName = L"ConsoleWindowClass";
wc.lpfnWndProc = GuiConsoleWndProc; wc.lpfnWndProc = GuiConsoleWndProc;
wc.style = 0; wc.style = 0;
wc.hInstance = (HINSTANCE) GetModuleHandleW(NULL); wc.hInstance = (HINSTANCE) GetModuleHandleW(NULL);