Commit ccb19eed authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent f7538bfe
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment