Get/SetPropW needs a Unicode string.
This commit is contained in:
parent
3ebf9a505f
commit
dfe397fc38
|
@ -2049,16 +2049,17 @@ INT_PTR CALLBACK PrintDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
|
||||||
INT_PTR CALLBACK PrintDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
|
INT_PTR CALLBACK PrintDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
|
||||||
LPARAM lParam)
|
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;
|
PRINT_PTRW* PrintStructures;
|
||||||
INT_PTR res = FALSE;
|
INT_PTR res = FALSE;
|
||||||
|
|
||||||
if (uMsg!=WM_INITDIALOG) {
|
if (uMsg!=WM_INITDIALOG) {
|
||||||
PrintStructures = (PRINT_PTRW*) GetPropW(hDlg, "__WINE_PRINTDLGDATA");
|
PrintStructures = (PRINT_PTRW*) GetPropW(hDlg, propW);
|
||||||
if (!PrintStructures)
|
if (!PrintStructures)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
} else {
|
} else {
|
||||||
PrintStructures = (PRINT_PTRW*) lParam;
|
PrintStructures = (PRINT_PTRW*) lParam;
|
||||||
SetPropW(hDlg, "__WINE_PRINTDLGDATA", PrintStructures);
|
SetPropW(hDlg, propW, PrintStructures);
|
||||||
res = PRINTDLG_WMInitDialogW(hDlg, wParam, PrintStructures);
|
res = PRINTDLG_WMInitDialogW(hDlg, wParam, PrintStructures);
|
||||||
|
|
||||||
if(PrintStructures->dlg.lpPrintDlg->Flags & PD_ENABLEPRINTHOOK)
|
if(PrintStructures->dlg.lpPrintDlg->Flags & PD_ENABLEPRINTHOOK)
|
||||||
|
|
Loading…
Reference in New Issue