Get/SetPropW needs a Unicode string.

This commit is contained in:
Alexandre Julliard 2003-06-30 02:06:22 +00:00
parent 3ebf9a505f
commit dfe397fc38
1 changed files with 3 additions and 2 deletions

View File

@ -2049,16 +2049,17 @@ INT_PTR CALLBACK PrintDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
INT_PTR CALLBACK PrintDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
LPARAM lParam)
{
static const WCHAR propW[] = {'_','_','W','I','N','E','_','P','R','I','N','T','D','L','G','D','A','T','A',0};
PRINT_PTRW* PrintStructures;
INT_PTR res = FALSE;
if (uMsg!=WM_INITDIALOG) {
PrintStructures = (PRINT_PTRW*) GetPropW(hDlg, "__WINE_PRINTDLGDATA");
PrintStructures = (PRINT_PTRW*) GetPropW(hDlg, propW);
if (!PrintStructures)
return FALSE;
} else {
PrintStructures = (PRINT_PTRW*) lParam;
SetPropW(hDlg, "__WINE_PRINTDLGDATA", PrintStructures);
SetPropW(hDlg, propW, PrintStructures);
res = PRINTDLG_WMInitDialogW(hDlg, wParam, PrintStructures);
if(PrintStructures->dlg.lpPrintDlg->Flags & PD_ENABLEPRINTHOOK)