Splitting out shared Win16/Win32 code

Casper Hornstrup chorns at users.sourceforge.net
Sat Nov 29 14:59:55 CST 2003


Dlls/winmm/lolvldrv.c has a function (MMDRV_Message) shared by the
Win16 and the Win32 implementation of mmsystem. Since it is shared
by both mmsystem.dll and winmm.dll, all Win16 APIs used in the shared
functions will be imported by the Win32 implementation (winmm.dll)
also. On ReactOS no such APIs exist so the library will not load.

I see two immediate solutions:

1) Check with a preprocessor variable and not compile the Win16 part
of the shared Win16/Win32 functions when --disable-win16 is specified.

2) Duplicate the shared code in a Win32 specific file and Win16
specific file.

How should it be handled?

Casper Hornstrup




More information about the wine-devel mailing list