[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    Re: dlls/winspool/info.c
From:       Ulrich Czekalla <ybicubuk () umail ! corel ! com>
Date:       1999-10-27 16:25:27
[Download RAW message or body]

Updated to set proper error.

ChangeLog:
        * dlls/winspool/info.c
        Null check

-- 
Ulrich Czekalla
Linux Engineer
Corel Corporation

(613)728-0826 x5696
ulrichc@corel.ca
["winspool.info-211099.patch" (text/plain)]

Index: info.c
===================================================================
RCS file: /home/wine/wine/dlls/winspool/info.c,v
retrieving revision 1.9
diff -u -w -r1.9 info.c
--- info.c	1999/09/10 14:37:29	1.9
+++ info.c	1999/10/27 16:17:55
@@ -206,6 +206,12 @@
     LPOPENEDPRINTERA lpOpenedPrinter;
     HKEY hkeyPrinters, hkeyPrinter;
 
+    if (!lpPrinterName) {
+	WARN("(printerName: NULL, pDefault %p Ret: False\n", pDefault);
+	SetLastError(ERROR_INVALID_PARAMETER);
+	return FALSE;
+    }
+
     TRACE("(printerName: %s, pDefault %p\n", lpPrinterName, pDefault);
 
     /* Check Printer exists */

.

=========================================================================


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic