Module: wine
Branch: master
Commit: 69a9621b2095dc3d0888d8b0438d47cb8de27760
URL: http://source.winehq.org/git/wine.git/?a=commit;h=69a9621b2095dc3d0888d8b04…
Author: John Klehm <xixsimplicityxix(a)gmail.com>
Date: Thu Feb 1 16:36:52 2007 -0600
rasapi32: RasEnumConnections now returns correct buffer size (zero) when there are zero connections available.
---
dlls/rasapi32/rasapi.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/rasapi32/rasapi.c b/dlls/rasapi32/rasapi.c
index a2dae0c..0977ffe 100644
--- a/dlls/rasapi32/rasapi.c
+++ b/dlls/rasapi32/rasapi.c
@@ -102,6 +102,7 @@ DWORD WINAPI RasEnumConnectionsA( LPRASC
/* Remote Access Service stuff is done by underlying OS anyway */
FIXME("(%p,%p,%p),stub!\n",rca,lpcb,lpcConnections);
FIXME("RAS support is not implemented! Configure program to use LAN connection/winsock instead!\n");
+ *lpcb = 0; /* size of buffer needed to enumerate connections */
*lpcConnections = 0; /* no RAS connections available */
return 0;
@@ -114,6 +115,7 @@ DWORD WINAPI RasEnumConnectionsW( LPRASC
/* Remote Access Service stuff is done by underlying OS anyway */
FIXME("(%p,%p,%p),stub!\n",rcw,lpcb,lpcConnections);
FIXME("RAS support is not implemented! Configure program to use LAN connection/winsock instead!\n");
+ *lpcb = 0; /* size of buffer needed to enumerate connections */
*lpcConnections = 0; /* no RAS connections available */
return 0;