fix a psapi winetest

svn path=/trunk/; revision=36328
This commit is contained in:
Christoph von Wittich 2008-09-19 14:15:05 +00:00
parent eb778285cf
commit b4c9d9e321

View file

@ -922,6 +922,12 @@ GetModuleInformation(HANDLE hProcess,
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);
}