From 68406933714001224b367d4d6f40f563c00fd092 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Thu, 11 Jan 2007 03:19:58 -0600 Subject: [PATCH] winspool.drv: Check for get_filename failure. --- dlls/winspool.drv/info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index 551e8fce3a1..41b706c839f 100644 --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -7340,8 +7340,8 @@ LPWSTR WINAPI StartDocDlgW( HANDLE hPrinter, DOCINFOW *doc ) if(doc->lpszOutput == NULL || !strcmpW(doc->lpszOutput, FILE_Port)) { LPWSTR name; - get_filename(&name); - if(name) + + if (get_filename(&name)) { if(!(len = GetFullPathNameW(name, 0, NULL, NULL))) {