mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 18:29:32 +00:00
Fixed toolhelp routines usage in GetModuleFromPath (reported by Bertho
Stultiens).
This commit is contained in:
parent
2043ba0675
commit
db000ee3e8
|
@ -1442,8 +1442,9 @@ static HMODULE16 GetModuleFromPath(LPCSTR name)
|
|||
{
|
||||
check_path:
|
||||
lookforit.dwSize=sizeof(MODULEENTRY);
|
||||
for(ModuleFirst16(&lookforit); ModuleNext16(&lookforit); )
|
||||
{
|
||||
if (!ModuleFirst16(&lookforit)) return 0;
|
||||
do
|
||||
{
|
||||
pModule = NE_GetPtr(lookforit.hModule);
|
||||
if(!pModule)
|
||||
break;
|
||||
|
@ -1459,7 +1460,7 @@ check_path:
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} while (ModuleNext16(&lookforit));
|
||||
}
|
||||
|
||||
if(TRACE_ON(module) && hmod)
|
||||
|
|
Loading…
Reference in a new issue