http://bugs.winehq.org/show_bug.cgi?id=21422
--- Comment #2 from Eric Pouech eric.pouech@orange.fr 2010-01-20 15:24:29 --- #1 is wrong
a/ test.exe doesn't any debug information b/ it just contains a COFF symbol table (likely generated by mingw), and no dwarf/stabs/codeview or even COFF debug info
what's wrong is that dbghelp doen't try to load the COFF symbol table when no debug info is present (is just tries to load the EXPORT table, which happens to be empty)
the module computation is likely correct, but the symbol you're looking for is present in two modules, but as dbghelp doesn't handle correctly the test.exe module, it only locates one symbol
real fix is to try to load the COFF symbol table before the export table that shouldn't be too long to do, just need to find time in order to find time to decide when to do it