From 69a9621b2095dc3d0888d8b0438d47cb8de27760 Mon Sep 17 00:00:00 2001 From: John Klehm Date: Thu, 1 Feb 2007 16:36:52 -0600 Subject: [PATCH] rasapi32: RasEnumConnections now returns correct buffer size (zero) when there are zero connections available. --- dlls/rasapi32/rasapi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/rasapi32/rasapi.c b/dlls/rasapi32/rasapi.c index a2dae0c812f..0977ffe2f4e 100644 --- a/dlls/rasapi32/rasapi.c +++ b/dlls/rasapi32/rasapi.c @@ -102,6 +102,7 @@ DWORD WINAPI RasEnumConnectionsA( LPRASCONNA rca, LPDWORD lpcb, LPDWORD lpcConne /* 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( LPRASCONNW rcw, LPDWORD lpcb, LPDWORD lpcConne /* 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;