mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[MPR]
Import Wine commit: - e8c8ddcbfc8bc4458add06062005a4022162deab, Don't send lpRemoteName when requesting network place. This is the end: ReactOS WNet is fully in sync with Wine, with all the features required for network providers in. Enjoy your VBox/VMware shared folders working with synced upstream! CORE-10878 CORE-10032 svn path=/trunk/; revision=71019
This commit is contained in:
parent
bea0c19634
commit
32d02efe94
2 changed files with 1 additions and 27 deletions
|
@ -45,29 +45,3 @@ Index: mpr.spec
|
|||
22 stdcall @(long) MPR_Alloc
|
||||
23 stdcall @(ptr long) MPR_ReAlloc
|
||||
24 stdcall @(ptr) MPR_Free
|
||||
Index: wnet.c
|
||||
===================================================================
|
||||
--- wnet.c (révision 70645)
|
||||
+++ wnet.c (copie de travail)
|
||||
@@ -750,7 +750,12 @@
|
||||
providerTable->table[index].dwEnumScopes & WNNC_ENUM_GLOBAL)
|
||||
{
|
||||
HANDLE handle;
|
||||
+ PVOID RemoteName = lpNet->lpRemoteName;
|
||||
|
||||
+ if ((lpNet->dwUsage & RESOURCEUSAGE_CONTAINER) &&
|
||||
+ RemoteName && !strcmpW(RemoteName, lpNet->lpProvider))
|
||||
+ lpNet->lpRemoteName = NULL;
|
||||
+
|
||||
ret = providerTable->table[index].openEnum(
|
||||
dwScope, dwType, dwUsage, lpNet, &handle);
|
||||
if (ret == WN_SUCCESS)
|
||||
@@ -760,6 +765,8 @@
|
||||
ret = *lphEnum ? WN_SUCCESS :
|
||||
WN_OUT_OF_MEMORY;
|
||||
}
|
||||
+
|
||||
+ lpNet->lpRemoteName = RemoteName;
|
||||
}
|
||||
else
|
||||
ret = WN_NOT_SUPPORTED;
|
||||
|
|
|
@ -750,7 +750,7 @@ DWORD WINAPI WNetOpenEnumW( DWORD dwScope, DWORD dwType, DWORD dwUsage,
|
|||
providerTable->table[index].dwEnumScopes & WNNC_ENUM_GLOBAL)
|
||||
{
|
||||
HANDLE handle;
|
||||
PVOID RemoteName = lpNet->lpRemoteName;
|
||||
PWSTR RemoteName = lpNet->lpRemoteName;
|
||||
|
||||
if ((lpNet->dwUsage & RESOURCEUSAGE_CONTAINER) &&
|
||||
RemoteName && !strcmpW(RemoteName, lpNet->lpProvider))
|
||||
|
|
Loading…
Reference in a new issue