Author: cwittich
Date: Fri Sep 19 09:15:05 2008
New Revision: 36328
URL:
http://svn.reactos.org/svn/reactos?rev=36328&view=rev
Log:
fix a psapi winetest
Modified:
trunk/reactos/dll/win32/psapi/psapi.c
Modified: trunk/reactos/dll/win32/psapi/psapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/psapi/psapi.c?re…
==============================================================================
--- trunk/reactos/dll/win32/psapi/psapi.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/psapi/psapi.c [iso-8859-1] Fri Sep 19 09:15:05 2008
@@ -922,6 +922,12 @@
DWORD cb)
{
GET_MODULE_INFORMATION_FLAGS Flags = {FALSE, FALSE, FALSE};
+
+ if (cb < sizeof(MODULEINFO))
+ {
+ SetLastError(ERROR_INSUFFICIENT_BUFFER);
+ return FALSE;
+ }
return (BOOL)InternalGetModuleInformation(hProcess, hModule, Flags, lpmodinfo, cb);
}