From 25bb808cf104ee853173aefa6e1e685f62d28e5a Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Thu, 17 May 2012 13:12:03 +0100 Subject: [PATCH] localspl: Calling AddPrinterDriver on an existing driver should succeed. --- dlls/localspl/provider.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/dlls/localspl/provider.c b/dlls/localspl/provider.c index 392b8edaf89..a599113eac1 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));