From d1d83c19267def7f49a0bcb77387cf7117b379c4 Mon Sep 17 00:00:00 2001
From: tatyana <tatyana@etersoft.ru>
Date: Tue, 8 Jan 2013 17:41:39 +0400
Subject: [PATCH 3/3] winspool.drv: Ignore pDevModeInput if fMode not equal
 DM_IN_BUFFER

---
 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 10a2e7b..9651a73 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -2365,7 +2365,7 @@ LONG WINAPI DocumentPropertiesA(HWND hWnd,HANDLE hPrinter,
 	}
     }
     ret = GDI_CallExtDeviceMode16(hWnd, pDevModeOutput, lpName, port,
-				  pDevModeInput, NULL, fMode);
+				  (fMode & DM_IN_BUFFER) ? pDevModeInput : NULL, NULL, fMode);
 
     if(!pDeviceName)
         HeapFree(GetProcessHeap(),0,lpName);
-- 
1.7.12.4
