Make a 16-bit test in wine for krnl386.exe16

André Hentschel nerv at dawncrow.de
Sun Nov 29 12:09:43 CST 2015


Am 29.11.2015 um 18:30 schrieb Bruno Jesus:
> Hi all, I'm trying to create tests for GetPrivateProfileString16 but
> it is not working as expected because the test is calling the kernel32
> version of the function instead of the krnl386.exe16.
> 
> Is there any way to make a test that compiles and runs against krnl386
> instead of kernel32?
> 
> I tried a few different things and the attached patch is the last
> attempt (the tests are wrong but that is not the point yet).
> 
> Any help is appreciated, thanks in advance,
> Bruno

Hi Bruno,

winegcc links to kernel32 by default, try adding -m16 or -nodefaultlibs somewhere (see winegcc code)




More information about the wine-devel mailing list