Author: cwittich
Date: Thu Oct 30 04:44:36 2008
New Revision: 37086
URL:
http://svn.reactos.org/svn/reactos?rev=37086&view=rev
Log:
fix 'Cast from pointer to integer of different size' in PickIconProc()
patch by hto
See issue #3828 for more details.
Modified:
trunk/reactos/dll/win32/shell32/dialogs.c
Modified: trunk/reactos/dll/win32/shell32/dialogs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/dialogs.…
==============================================================================
--- trunk/reactos/dll/win32/shell32/dialogs.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/dialogs.c [iso-8859-1] Thu Oct 30 04:44:36 2008
@@ -117,7 +117,7 @@
pIconContext = (PPICK_ICON_CONTEXT)lParam;
SetWindowLong(hwndDlg, DWLP_USER, (LONG)pIconContext);
pIconContext->hDlgCtrl = GetDlgItem(hwndDlg, IDC_PICKICON_LIST);
- EnumResourceNamesW(pIconContext->hLibrary, MAKEINTRESOURCEW(RT_ICON),
EnumPickIconResourceProc, (LPARAM)pIconContext);
+ EnumResourceNamesW(pIconContext->hLibrary, RT_ICON, EnumPickIconResourceProc,
(LPARAM)pIconContext);
if (PathUnExpandEnvStringsW(pIconContext->szName, szText, MAX_PATH))
SendDlgItemMessageW(hwndDlg, IDC_EDIT_PATH, WM_SETTEXT, 0, (LPARAM)szText);
else
@@ -174,7 +174,7 @@
FreeLibrary(pIconContext->hLibrary);
pIconContext->hLibrary = hLibrary;
wcscpy(pIconContext->szName, szText);
- EnumResourceNamesW(pIconContext->hLibrary, MAKEINTRESOURCEW(RT_ICON),
EnumPickIconResourceProc, (LPARAM)pIconContext);
+ EnumResourceNamesW(pIconContext->hLibrary, RT_ICON,
EnumPickIconResourceProc, (LPARAM)pIconContext);
if (PathUnExpandEnvStringsW(pIconContext->szName, szText, MAX_PATH))
SendDlgItemMessageW(hwndDlg, IDC_EDIT_PATH, WM_SETTEXT, 0,
(LPARAM)szText);
else