mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
fix 'Cast from pointer to integer of different size' in PickIconProc()
patch by hto See issue #3828 for more details. svn path=/trunk/; revision=37086
This commit is contained in:
parent
0f6c074a85
commit
bcbb4cf019
1 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@ INT_PTR CALLBACK PickIconProc(HWND hwndDlg,
|
|||
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 @@ INT_PTR CALLBACK PickIconProc(HWND hwndDlg,
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue