[WINSPOOL]
authorColin Finck <colin@reactos.org>
Sat, 18 Jul 2015 14:31:20 +0000 (14:31 +0000)
committerColin Finck <colin@reactos.org>
Sat, 18 Jul 2015 14:31:20 +0000 (14:31 +0000)
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

reactos/win32ss/printing/base/winspool/main.c

index 52be35f..b6d3dff 100644 (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);