wine.info add fake dlls for msacm32.drv and midimap.dll

Steven Edwards winehacker at gmail.com
Sat Apr 12 23:29:40 CDT 2008


Thanks to Greg (Ge van) Geldorp for pointing me in the right direction
with this.

Thinstall does some magic where it hooks LoadLibrary and attempts to
load winmm.dll which then in turn does a LoadLibrary using on the
builtin version of these files. But will fail because they are not
part of the real system. Here is more info

js3250.dll (located inside the Thinstall package) implicitly
loads nspr4.dll (also inside the Thinstall package) which in
turn implicitly loads winmm.dll (located externally). We
issue a LoadLibraryEx("winmm.dll", NULL, 0) call which fails
with error 1114 ("A dynamic link library (DLL) initialization
routine failed."). Below is the relevant output of WINEDEBUG=+winmm:

 trace:winmm:DllMain 0x7e250000 0x1 (nil)
 trace:winmm:MMDRV_Init () trace:winmm:MMDRV_Install
 ('winealsa.drv', 'winealsa.drv', mapper=N);
 warn:winmm:MMDRV_Install Couldn't open driver 'winealsa.drv'
 trace:winmm:MMDRV_Install ('wineoss.drv', 'wineoss.drv',
 mapper=N); warn:winmm:MMDRV_Install Couldn't open driver 'wineoss.drv'
 trace:winmm:MMDRV_Install ('winecoreaudio.drv',
 'winecoreaudio.drv', mapper=N); warn:winmm:MMDRV_Install
 Couldn't open driver 'winecoreaudio.drv'
 trace:winmm:MMDRV_Install ('wavemapper', 'msacm32.drv',
 mapper=Y); warn:winmm:MMDRV_Install Couldn't open driver 'msacm32.drv'
 trace:winmm:MMDRV_Install ('midimapper', 'midimap.dll',
 mapper=Y); warn:winmm:MMDRV_Install Couldn't open driver 'midimap.dll'

With this patch the firefox thinstall demo bug 10905 now works. I
expect there may be other problems with other thinstall applications
as he thinks there may be some changes that need to be done on their
end to better accommodate Wine. I don't know if this really should be
the case as it works on Windows and we should try to mimic that
behavior.

-- 
Steven Edwards

"There is one thing stronger than all the armies in the world, and
that is an idea whose time has come." - Victor Hugo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-fake-dll-for-midimap.dll-and-msacm32.drv.patch
Type: text/x-patch
Size: 696 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080413/80252af6/attachment.bin 


More information about the wine-patches mailing list