Commit f3eec54a authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

Check for empty PrinterName in PRINTDLG_WMCommandW.

parent f045c9df
......@@ -1638,7 +1638,7 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam,
HANDLE hPrinter;
WCHAR PrinterName[256];
GetDlgItemTextW(hDlg, PrinterComboID, PrinterName, 255);
if (!GetDlgItemTextW(hDlg, PrinterComboID, PrinterName, 255)) break;
if (!OpenPrinterW(PrinterName, &hPrinter, NULL)) {
FIXME(" Call to OpenPrinter did not succeed!\n");
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment