Huw Davies : localspl: Calling AddPrinterDriver on an existing driver should succeed.

Alexandre Julliard julliard at winehq.org
Thu May 17 13:46:00 CDT 2012


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu May 17 13:12:03 2012 +0100

localspl: Calling AddPrinterDriver on an existing driver should succeed.

---

 dlls/localspl/provider.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/dlls/localspl/provider.c b/dlls/localspl/provider.c
index 392b8ed..a599113 100644
--- a/dlls/localspl/provider.c
+++ b/dlls/localspl/provider.c
@@ -1361,13 +1361,6 @@ static BOOL myAddPrinterDriverEx(DWORD level, LPBYTE pDriverInfo, DWORD dwFileCo
     }
     RegCloseKey(hroot);
 
-    if (disposition == REG_OPENED_EXISTING_KEY) {
-        TRACE("driver %s already installed\n", debugstr_w(di.pName));
-        RegCloseKey(hdrv);
-        SetLastError(ERROR_PRINTER_DRIVER_ALREADY_INSTALLED);
-        return FALSE;
-    }
-
     /* Verified with the Adobe PS Driver, that w2k does not use di.Version */
     RegSetValueExW(hdrv, versionW, 0, REG_DWORD, (const BYTE*) &env->driverversion,
                    sizeof(DWORD));




More information about the wine-cvs mailing list