From ccb19eed6997920d7182252178ac9963b4cc5f97 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Wed, 29 Jul 2015 11:39:01 +0200 Subject: [PATCH] winspool: Don't fail on empty server name in AddPrinterW. --- dlls/winspool.drv/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index 8cfedfb49df..45490346a6c 100644 --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -3149,7 +3149,7 @@ HANDLE WINAPI AddPrinterW(LPWSTR pName, DWORD Level, LPBYTE pPrinter) TRACE("(%s,%d,%p)\n", debugstr_w(pName), Level, pPrinter); - if(pName != NULL) { + if(pName && *pName) { ERR("pName = %s - unsupported\n", debugstr_w(pName)); SetLastError(ERROR_INVALID_PARAMETER); return 0;