projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[INETCPL] Sync with Wine Staging 4.18. CORE-16441
[reactos.git]
/
dll
/
cpl
/
inetcpl
/
inetcpl.c
diff --git
a/dll/cpl/inetcpl/inetcpl.c
b/dll/cpl/inetcpl/inetcpl.c
index
b4d5a14
..
41d6660
100644
(file)
--- a/
dll/cpl/inetcpl/inetcpl.c
+++ b/
dll/cpl/inetcpl/inetcpl.c
@@
-77,17
+77,24
@@
HRESULT WINAPI DllInstall(BOOL bInstall, LPCWSTR cmdline)
*/
static int CALLBACK propsheet_callback(HWND hwnd, UINT msg, LPARAM lparam)
{
*/
static int CALLBACK propsheet_callback(HWND hwnd, UINT msg, LPARAM lparam)
{
+#ifdef __REACTOS__
// NOTE: This callback is needed to set large icon correctly.
HICON hIcon;
// NOTE: This callback is needed to set large icon correctly.
HICON hIcon;
+#endif
TRACE("(%p, 0x%08x/%d, 0x%lx)\n", hwnd, msg, msg, lparam);
switch (msg)
{
case PSCB_INITIALIZED:
TRACE("(%p, 0x%08x/%d, 0x%lx)\n", hwnd, msg, msg, lparam);
switch (msg)
{
case PSCB_INITIALIZED:
+#ifdef __REACTOS__
{
hIcon = LoadIconW(hcpl, MAKEINTRESOURCEW(ICO_MAIN));
SendMessageW(hwnd, WM_SETICON, ICON_BIG, (LPARAM)hIcon);
break;
}
{
hIcon = LoadIconW(hcpl, MAKEINTRESOURCEW(ICO_MAIN));
SendMessageW(hwnd, WM_SETICON, ICON_BIG, (LPARAM)hIcon);
break;
}
+#else
+ SendMessageW(hwnd, WM_SETICON, ICON_BIG, (LPARAM) LoadIconW(hcpl, MAKEINTRESOURCEW(ICO_MAIN)));
+ break;
+#endif
}
return 0;
}
}
return 0;
}