From 5de733e4fb206b9289256969a0b8e2311021cfb3 Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Sat, 20 May 2006 18:39:20 +0200 Subject: [PATCH] winspool: An empty string as server name is valid (EnumPrinterDrivers). --- dlls/winspool/info.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/winspool/info.c b/dlls/winspool/info.c index 1f91202fc8b..6f861097738 100644 --- a/dlls/winspool/info.c +++ b/dlls/winspool/info.c @@ -6,6 +6,7 @@ * Copyright 1999 Klaas van Gend * Copyright 1999, 2000 Huw D M Davies * Copyright 2001 Marcus Meissner + * Copyright 2005, 2006 Detlef Riekenberg * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -4042,9 +4043,9 @@ static BOOL WINSPOOL_EnumPrinterDrivers(LPWSTR pName, LPWSTR pEnvironment, Level, pDriverInfo, cbBuf, unicode); /* check for local drivers */ - if(pName) { - ERR("remote drivers unsupported! Current remote host is %s\n", - debugstr_w(pName)); + if((pName) && (pName[0])) { + FIXME("remote drivers (%s) not supported!\n", debugstr_w(pName)); + SetLastError(ERROR_ACCESS_DENIED); return FALSE; } -- 2.11.4.GIT