http://bugs.winehq.org/show_bug.cgi?id=23585
--- Comment #11 from Anastasius Focht focht@gmx.net 2010-07-10 13:28:41 --- Hello,
another thought: although this clearly looks like a standard 32 bit app targeting NT-based systems there might exist some small legacy code within app (seems to be Delphi-based) requiring 16 bit stuff, hence the PE compressor uses the ordinals-import.
"KERNEL32 4.0 Ordinal-Only Exports":
http://www.geoffchappell.com/viewer.htm?doc=studies/windows/win32/kernel32/h...
--- quote --- The table below lists all the KERNEL32 functions that are exported only by ordinal in version 4.0, i.e., for Windows 95. These all continue into the versions for Windows 98 and Windows Me. None are ever exported from any NT build. --- quote ---
As stated there: this approach won't work for any NT-based system.
These ordinals will be resolved incorrectly on any native Windows NT-based system. If this app works in Windows NT+ it's because of pure luck (16 bit code parts never called).
I think there is nothing to change in Wine. The user has to run this app in Win9X mode to work around the bug.
Regards