Back out a small part of bug 391848 to fix bustage for some people (and add a comment warning about the problem).

This commit is contained in:
dbaron@dbaron.org 2007-08-27 22:42:25 -07:00
Родитель 4ae4444c8a
Коммит 21fd23e1f5
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -810,7 +810,9 @@ BOOL SymGetModuleInfoEspecial(HANDLE aProcess, DWORD aAddr, PIMAGEHLP_MODULE aMo
* Not loaded, here's the magic. * Not loaded, here's the magic.
* Go through all the modules. * Go through all the modules.
*/ */
enumRes = _EnumerateLoadedModules(aProcess, callbackEspecial, (PVOID)&aAddr); // Need to cast to PENUMLOADED_MODULES_CALLBACK for some compiler
// or platform SDK; see bug 391848.
enumRes = _EnumerateLoadedModules(aProcess, (PENUMLOADED_MODULES_CALLBACK)callbackEspecial, (PVOID)&aAddr);
if (FALSE != enumRes) if (FALSE != enumRes)
{ {
/* /*
@ -877,7 +879,9 @@ BOOL SymGetModuleInfoEspecial64(HANDLE aProcess, DWORD64 aAddr, PIMAGEHLP_MODULE
* Not loaded, here's the magic. * Not loaded, here's the magic.
* Go through all the modules. * Go through all the modules.
*/ */
enumRes = _EnumerateLoadedModules64(aProcess, callbackEspecial64, (PVOID)&aAddr); // Need to cast to PENUMLOADED_MODULES_CALLBACK for some compiler
// or platform SDK; see bug 391848.
enumRes = _EnumerateLoadedModules64(aProcess, (PENUMLOADED_MODULES_CALLBACK64)callbackEspecial64, (PVOID)&aAddr);
if (FALSE != enumRes) if (FALSE != enumRes)
{ {
/* /*