Switch back to evil casts, which are the only solution that works across SDK version. b=415252

This commit is contained in:
2008-02-03 11:51:14 -08:00
parent 88957760b5
commit 67b3f5aa8e
2 changed files with 17 additions and 3 deletions

View File

@@ -222,8 +222,12 @@ static BOOL CALLBACK ModuleEnumCallback(PCSTR ModuleName,
PRBool
DHWImportHooker::PatchAllModules()
{
// Need to cast to PENUMLOADED_MODULES_CALLBACK because the
// constness of the first parameter of PENUMLOADED_MODULES_CALLBACK
// varies over SDK versions (from non-const to const over time).
// See bug 391848 and bug 415252.
return dhwEnumerateLoadedModules(::GetCurrentProcess(),
ModuleEnumCallback, this);
(PENUMLOADED_MODULES_CALLBACK)ModuleEnumCallback, this);
}
PRBool