patch to get raritan's RemoteClient.exe go somewhat further
Raphael Jacquot
sxpert at esitcom.org
Thu Jul 13 00:39:49 CDT 2006
I noticed we needed to test the value of lpcb before doing anything.
according to the windows doc, the function should return
ERROR_INVALID_PARAMETER when this occurs.
this patch allows the program to advance further and now it complains
about the availability of the MSXML parser...
RCS file: /home/wine/wine/dlls/rasapi32/rasapi.c,v
retrieving revision 1.27
diff -u -r1.27 rasapi.c
--- rasapi.c 3 Jan 2005 20:33:40 -0000 1.27
+++ rasapi.c 7 Jan 2005 17:04:54 -0000
@@ -247,9 +247,15 @@
DWORD WINAPI RasEnumDevicesA(LPRASDEVINFOA lpRasDevinfo, LPDWORD lpcb,
LPDWORD
lpcDevices)
{
FIXME("(%p,%p,%p),stub!\n",lpRasDevinfo,lpcb,lpcDevices);
+ if (lpcb==NULL) {
+ return ERROR_INVALID_PARAMETER;
+ }
if (*lpcb < sizeof(RASDEVINFOA)) {
*lpcb = sizeof(RASDEVINFOA);
return ERROR_BUFFER_TOO_SMALL;
+ }
+ if (lpRasDevinfo==NULL) {
+ return ERROR_INVALID_PARAMETER;
}
/* honor dwSize ? */
strcpy(lpRasDevinfo->szDeviceType, RASDT_Modem);
More information about the wine-patches
mailing list