mirror of
https://github.com/reactos/wine.git
synced 2025-04-03 16:42:06 +00:00
Check for empty PrinterName in PRINTDLG_WMCommandW.
This commit is contained in:
parent
f045c9df81
commit
f3eec54a66
@ -1638,7 +1638,7 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam,
|
|||||||
HANDLE hPrinter;
|
HANDLE hPrinter;
|
||||||
WCHAR PrinterName[256];
|
WCHAR PrinterName[256];
|
||||||
|
|
||||||
GetDlgItemTextW(hDlg, PrinterComboID, PrinterName, 255);
|
if (!GetDlgItemTextW(hDlg, PrinterComboID, PrinterName, 255)) break;
|
||||||
if (!OpenPrinterW(PrinterName, &hPrinter, NULL)) {
|
if (!OpenPrinterW(PrinterName, &hPrinter, NULL)) {
|
||||||
FIXME(" Call to OpenPrinter did not succeed!\n");
|
FIXME(" Call to OpenPrinter did not succeed!\n");
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user