winspool: Don't fail on empty server name in AddPrinterW.

This commit is contained in:
Hans Leidekker 2015-07-29 11:39:01 +02:00 committed by Alexandre Julliard
parent f7538bfe47
commit ccb19eed69
1 changed files with 1 additions and 1 deletions

View File

@ -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;