Author: cwittich
Date: Sun Sep 14 05:37:55 2008
New Revision: 36229
URL:
http://svn.reactos.org/svn/reactos?rev=36229&view=rev
Log:
sync rasapi32 to wine 1.1.4
Modified:
trunk/reactos/dll/win32/rasapi32/rasapi.c
Modified: trunk/reactos/dll/win32/rasapi32/rasapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/rasapi32/rasapi.…
==============================================================================
--- trunk/reactos/dll/win32/rasapi32/rasapi.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/rasapi32/rasapi.c [iso-8859-1] Sun Sep 14 05:37:55 2008
@@ -246,8 +246,11 @@
*/
DWORD WINAPI RasEnumDevicesA(LPRASDEVINFOA lpRasDevinfo, LPDWORD lpcb, LPDWORD
lpcDevices)
{
+ if (!lpcb || !lpcDevices)
+ return ERROR_INVALID_PARAMETER;
+
FIXME("(%p,%p,%p),stub!\n",lpRasDevinfo,lpcb,lpcDevices);
- if (*lpcb < sizeof(RASDEVINFOA)) {
+ if (!lpRasDevinfo || (*lpcb < sizeof(RASDEVINFOA))) {
*lpcb = sizeof(RASDEVINFOA);
return ERROR_BUFFER_TOO_SMALL;
}