mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 13:27:35 +00:00
Fixed toolhelp routines usage in GetModuleFromPath (reported by Bertho
Stultiens).
This commit is contained in:
parent
2043ba0675
commit
db000ee3e8
1 changed files with 4 additions and 3 deletions
|
@ -1442,7 +1442,8 @@ 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)
|
||||
|
@ -1459,7 +1460,7 @@ check_path:
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} while (ModuleNext16(&lookforit));
|
||||
}
|
||||
|
||||
if(TRACE_ON(module) && hmod)
|
||||
|
|
Loading…
Reference in a new issue