[WINSPOOL]

Bugfix: winspool.drv shall only do local connections for now.
Even if wszName may include a computer name that needs to be extracted in the future, it must in no way be directly passed as the NetworkAddr parameter.
Fixes problems when using the spooler components with the "ncacn_np" protocol or with Windows' rpcrt4.dll.

svn path=/branches/colins-printing-for-freedom/; revision=68417
This commit is contained in:
Colin Finck 2015-07-18 14:31:20 +00:00
parent e00279af25
commit 9995ecdc6c

View file

@ -19,7 +19,7 @@ WINSPOOL_HANDLE_bind(WINSPOOL_HANDLE wszName)
RPC_STATUS Status;
// Get us a string binding handle from the supplied connection information
Status = RpcStringBindingComposeW(NULL, L"ncalrpc", wszName, L"spoolss", NULL, &wszStringBinding);
Status = RpcStringBindingComposeW(NULL, L"ncalrpc", NULL, L"spoolss", NULL, &wszStringBinding);
if (Status != RPC_S_OK)
{
ERR("RpcStringBindingComposeW failed with status %ld!\n", Status);