From 020a36b921526891037b7148e6a5ec1f1688218b Mon Sep 17 00:00:00 2001
From: tatyana <tatyana@etersoft.ru>
Date: Mon, 1 Apr 2013 17:12:07 +0400
Subject: [PATCH] winspool.drv: Check the value of pDeviceName.

---
 dlls/winspool.drv/info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index 27a6edd..5178783 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -2345,7 +2345,7 @@ LONG WINAPI DocumentPropertiesA(HWND hWnd,HANDLE hPrinter,
 	hWnd,hPrinter,pDeviceName,pDevModeOutput,pDevModeInput,fMode
     );
 
-    if(!pDeviceName) {
+    if(!pDeviceName && !*pDeviceName) {
         LPCWSTR lpNameW = get_opened_printer_name(hPrinter);
         if(!lpNameW) {
 		ERR("no name from hPrinter?\n");
-- 
1.8.1.5
