mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
- Return image name in SymGetModuleInfo since some applications use it for determining path. It's still a stub though.
svn path=/trunk/; revision=10017
This commit is contained in:
parent
680d163578
commit
e4848fe100
1 changed files with 15 additions and 3 deletions
|
@ -94,11 +94,23 @@ BOOL WINAPI SymGetModuleInfo(
|
|||
HANDLE hProcess, DWORD dwAddr,
|
||||
PIMAGEHLP_MODULE ModuleInfo)
|
||||
{
|
||||
FIXME("(%p, 0x%08lx, %p): stub\n",
|
||||
MEMORY_BASIC_INFORMATION mbi;
|
||||
|
||||
FIXME("(%p, 0x%08lx, %p): hacked stub\n",
|
||||
hProcess, dwAddr, ModuleInfo
|
||||
);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return FALSE;
|
||||
|
||||
/*
|
||||
* OpenOffice uses this function to get paths of it's modules
|
||||
* from address inside the module. So return at least that for
|
||||
* now.
|
||||
*/
|
||||
if (VirtualQuery((PVOID)dwAddr, &mbi, sizeof(mbi)) != sizeof(mbi) ||
|
||||
!GetModuleFileNameA((HMODULE)mbi.AllocationBase, ModuleInfo->ImageName, sizeof(ModuleInfo->ImageName)))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in a new issue