Author: sserapion Date: Wed Dec 24 16:05:17 2008 New Revision: 38335
URL: http://svn.reactos.org/svn/reactos?rev=38335&view=rev Log:
From MSDN "If you are retrieving a pointer or a handle, this function supersedes the GetWindowLong function. To write code that is compatible with both 32-bit and 64-bit versions of Windows, use Get/SetWindowLongPtr."
Modified: branches/ros-amd64-bringup/reactos/dll/win32/shell32/dialogs.c
Modified: branches/ros-amd64-bringup/reactos/dll/win32/shell32/dialogs.c URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/wi... ============================================================================== --- branches/ros-amd64-bringup/reactos/dll/win32/shell32/dialogs.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/dll/win32/shell32/dialogs.c [iso-8859-1] Wed Dec 24 16:05:17 2008 @@ -109,13 +109,13 @@ WCHAR szText[MAX_PATH], szTitle[100], szFilter[100]; OPENFILENAMEW ofn = {0};
- PPICK_ICON_CONTEXT pIconContext = (PPICK_ICON_CONTEXT)GetWindowLong(hwndDlg, DWLP_USER); + PPICK_ICON_CONTEXT pIconContext = (PPICK_ICON_CONTEXT)GetWindowLongPtr(hwndDlg, DWLP_USER);
switch(uMsg) { case WM_INITDIALOG: pIconContext = (PPICK_ICON_CONTEXT)lParam; - SetWindowLong(hwndDlg, DWLP_USER, (LONG)pIconContext); + SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pIconContext); pIconContext->hDlgCtrl = GetDlgItem(hwndDlg, IDC_PICKICON_LIST); EnumResourceNamesW(pIconContext->hLibrary, RT_ICON, EnumPickIconResourceProc, (LPARAM)pIconContext); if (PathUnExpandEnvStringsW(pIconContext->szName, szText, MAX_PATH))