James Hawkins : winspool.drv: Check for get_filename failure.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 11 05:34:10 CST 2007


Module: wine
Branch: master
Commit: 68406933714001224b367d4d6f40f563c00fd092
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=68406933714001224b367d4d6f40f563c00fd092

Author: James Hawkins <truiken at gmail.com>
Date:   Thu Jan 11 03:19:58 2007 -0600

winspool.drv: Check for get_filename failure.

---

 dlls/winspool.drv/info.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index 551e8fc..41b706c 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -7340,8 +7340,8 @@ LPWSTR WINAPI StartDocDlgW( HANDLE hPrin
     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)))
             {




More information about the wine-cvs mailing list