http://bugs.winehq.org/show_bug.cgi?id=6825
Summary: imagehlp.ImageDirectoryEntryToData needs to clear out param when entry not found Product: Wine Version: 0.9.26. Platform: PC URL: http://source.winehq.org/source/dlls/imagehlp/imagehlp.s pec?v=wine-0.9.26#L16 OS/Version: Windows XP Status: UNCONFIRMED Severity: minor Priority: P2 Component: wine-debug AssignedTo: wine-bugs@winehq.org ReportedBy: mook.moz+sites.org.winehq.bugs@gmail.com
From testing, it appears that imagehlp.ImageDirectoryEntryToData sets the out
param (PULONG Size) to zero when the image directory entry is not found (returns NULL). However, the ntdll equivalent (RtlImageDirectoryEntryToData) does _not_ do this (it leaves the out param untouched when returning NULL).
Current, as of wine 0.9.26, the imagehlp function is just being forwarded to ntdll. I guess this needs to change a bit to have a little wrapper function _just_ to fix this instead...
Will attach a small test case that should demonstrate this when run on a Windows machine (tested with Windows XP, SP2)
I'm hitting this when trying to use rebase.exe from Microsoft Visual Studio 2003. I'm sure, of course, I'll encounter other problems too :)