Check for empty PrinterName in PRINTDLG_WMCommandW.

This commit is contained in:
James Hawkins 2004-07-16 19:14:19 +00:00 committed by Alexandre Julliard
parent f045c9df81
commit f3eec54a66
1 changed files with 1 additions and 1 deletions

View File

@ -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;