diff --git a/dlls/commdlg/printdlg.c b/dlls/commdlg/printdlg.c index 4bc97a0146c..56599eee4ca 100644 --- a/dlls/commdlg/printdlg.c +++ b/dlls/commdlg/printdlg.c @@ -2056,7 +2056,7 @@ INT_PTR CALLBACK PrintDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, INT_PTR res = FALSE; if (uMsg!=WM_INITDIALOG) { - PrintStructures = (PRINT_PTRW*) GetWindowLongA(hDlg, DWL_USER); + PrintStructures = (PRINT_PTRW*) GetWindowLongW(hDlg, DWL_USER); if (!PrintStructures) return FALSE; } else {