mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 05:42:57 +00:00
- load icon from the right HINSTANCE handle
svn path=/trunk/; revision=28745
This commit is contained in:
parent
2733ed92aa
commit
67f1c2a0e9
1 changed files with 2 additions and 2 deletions
|
@ -1880,13 +1880,13 @@ GuiInit(VOID)
|
||||||
wc.lpfnWndProc = GuiConsoleWndProc;
|
wc.lpfnWndProc = GuiConsoleWndProc;
|
||||||
wc.style = 0;
|
wc.style = 0;
|
||||||
wc.hInstance = (HINSTANCE) GetModuleHandleW(NULL);
|
wc.hInstance = (HINSTANCE) GetModuleHandleW(NULL);
|
||||||
wc.hIcon = LoadIconW(Win32CsrDllHandle, MAKEINTRESOURCEW(1));
|
wc.hIcon = LoadIconW(GetModuleHandleW(L"win32csr"), MAKEINTRESOURCEW(1));
|
||||||
wc.hCursor = LoadCursorW(NULL, (LPCWSTR) IDC_ARROW);
|
wc.hCursor = LoadCursorW(NULL, (LPCWSTR) IDC_ARROW);
|
||||||
wc.hbrBackground = NULL;
|
wc.hbrBackground = NULL;
|
||||||
wc.lpszMenuName = NULL;
|
wc.lpszMenuName = NULL;
|
||||||
wc.cbClsExtra = 0;
|
wc.cbClsExtra = 0;
|
||||||
wc.cbWndExtra = 0;
|
wc.cbWndExtra = 0;
|
||||||
wc.hIconSm = LoadImageW(Win32CsrDllHandle, MAKEINTRESOURCEW(1), IMAGE_ICON,
|
wc.hIconSm = LoadImageW(GetModuleHandleW(L"win32csr"), MAKEINTRESOURCEW(1), IMAGE_ICON,
|
||||||
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON),
|
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON),
|
||||||
LR_SHARED);
|
LR_SHARED);
|
||||||
if (RegisterClassExW(&wc) == 0)
|
if (RegisterClassExW(&wc) == 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue