[SYSDM]
[reactos.git] / reactos / dll / cpl / console / console.c
index 638c792..9dc3c71 100644 (file)
@@ -143,18 +143,18 @@ ApplyConsoleInfo(HWND hwndDlg, PConsoleInfo pConInfo)
        if (res == IDCANCEL)
        {
                /* dont destroy when user presses cancel */
-               SetWindowLong(hwndDlg, DWL_MSGRESULT, PSNRET_INVALID_NOCHANGEPAGE);
+               SetWindowLongPtr(hwndDlg, DWL_MSGRESULT, PSNRET_INVALID_NOCHANGEPAGE);
        }
        else if ( res == IDC_RADIO_APPLY_ALL )
        {
                pConInfo->AppliedConfig = TRUE;
-               SetWindowLong(hwndDlg, DWL_MSGRESULT, PSNRET_NOERROR);
+               SetWindowLongPtr(hwndDlg, DWL_MSGRESULT, PSNRET_NOERROR);
                SendMessage(pConInfo->hConsoleWindow, PM_APPLY_CONSOLE_INFO, (WPARAM)pConInfo, (LPARAM)TRUE);
        }
        else if ( res == IDC_RADIO_APPLY_CURRENT )
        {
                pConInfo->AppliedConfig = TRUE;
-               SetWindowLong(hwndDlg, DWL_MSGRESULT, PSNRET_NOERROR);
+               SetWindowLongPtr(hwndDlg, DWL_MSGRESULT, PSNRET_NOERROR);
                SendMessage(pConInfo->hConsoleWindow, PM_APPLY_CONSOLE_INFO, (WPARAM)pConInfo, (LPARAM)TRUE);
        }
 }