Module: wine Branch: refs/heads/master Commit: 5de733e4fb206b9289256969a0b8e2311021cfb3 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5de733e4fb206b9289256969...
Author: Detlef Riekenberg wine.dev@web.de Date: Sat May 20 18:39:20 2006 +0200
winspool: An empty string as server name is valid (EnumPrinterDrivers).
---
dlls/winspool/info.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/winspool/info.c b/dlls/winspool/info.c index 1f91202..6f86109 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( 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; }