https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0dedb9b47457e86ca57b93856af3da6cb0138a93

commit 0dedb9b47457e86ca57b93856af3da6cb0138a93
Author:     Serge Gautherie <[email protected]>
AuthorDate: Sun Apr 18 20:58:44 2021 +0200
Commit:     GitHub <[email protected]>
CommitDate: Sun Apr 18 21:58:44 2021 +0300

    [WINLOGON][MPR][SDK] WNetClearConnections: Fix function parameter type 
(#3480)
    
    Addendum to 62f79fae93.
    
    Signed-off-by: Serge Gautherie <[email protected]>
---
 base/system/winlogon/sas.c     | 2 +-
 dll/win32/mpr/mpr.spec         | 2 +-
 sdk/include/reactos/undocmpr.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/base/system/winlogon/sas.c b/base/system/winlogon/sas.c
index f01c68a923d..02e9844a74c 100644
--- a/base/system/winlogon/sas.c
+++ b/base/system/winlogon/sas.c
@@ -726,7 +726,7 @@ LogoffShutdownThread(
     }
 
     /* Cancel all the user connections */
-    WNetClearConnections(0);
+    WNetClearConnections(NULL);
 
     if (LSData->Session->UserToken)
         RevertToSelf();
diff --git a/dll/win32/mpr/mpr.spec b/dll/win32/mpr/mpr.spec
index 971c53b2754..d8f25709c5d 100644
--- a/dll/win32/mpr/mpr.spec
+++ b/dll/win32/mpr/mpr.spec
@@ -55,7 +55,7 @@
 @ stdcall WNetCancelConnection2W(wstr long long)
 @ stdcall WNetCancelConnectionA(str long)
 @ stdcall WNetCancelConnectionW(wstr long)
-@ stdcall WNetClearConnections(long)
+@ stdcall WNetClearConnections(ptr)
 @ stdcall WNetCloseEnum(long)
 @ stdcall WNetConnectionDialog1A(ptr)
 @ stdcall WNetConnectionDialog1W(ptr)
diff --git a/sdk/include/reactos/undocmpr.h b/sdk/include/reactos/undocmpr.h
index 675dde0caa6..884d84ec2b4 100644
--- a/sdk/include/reactos/undocmpr.h
+++ b/sdk/include/reactos/undocmpr.h
@@ -2,6 +2,6 @@
 #define _UNDOCMPR_H
 
 /* WNET undocumented functions */
-DWORD WINAPI WNetClearConnections(HANDLE owner);
+DWORD WINAPI WNetClearConnections(HWND owner);
 
 #endif

Reply via email to