winspool: An empty string as server name is valid for AddPrinterDriver.

This commit is contained in:
Detlef Riekenberg 2006-06-19 23:58:24 +02:00 committed by Alexandre Julliard
parent 18db853973
commit dde6d8b185
1 changed files with 1 additions and 1 deletions

View File

@ -3942,7 +3942,7 @@ BOOL WINAPI AddPrinterDriverA(LPSTR pName, DWORD level, LPBYTE pDriverInfo)
SetLastError(ERROR_INVALID_LEVEL); SetLastError(ERROR_INVALID_LEVEL);
return FALSE; return FALSE;
} }
if(pName != NULL) { if ((pName) && (pName[0])) {
FIXME("pName= %s - unsupported\n", debugstr_a(pName)); FIXME("pName= %s - unsupported\n", debugstr_a(pName));
SetLastError(ERROR_INVALID_PARAMETER); SetLastError(ERROR_INVALID_PARAMETER);
return FALSE; return FALSE;