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

Austin English austinenglish at
Mon Nov 30 11:17:13 CST 2015

On Mon, Nov 30, 2015 at 2:52 AM, Michael Stefaniuc <mstefani at> wrote:
> On 11/30/2015 03:47 AM, Bruno Jesus wrote:
>> On Mon, Nov 30, 2015 at 2:13 AM, Nikolay Sivov <bunglehead at> wrote:
>>> On 29.11.2015 20:30, Bruno Jesus wrote:
>>>> 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).
>>> I think the main problem is to actually be able to build NE binaries,
>>> for that you'll need tools that support this, for example openwatcom C
>>> compiler, or some old enough Visual C++, maybe version 5 or 4.
>> So basically it is not possible to integrate such tests in wine as a
>> standard test like any other.
> Afair Dan Kegel worked on that back in the days. Might be still
> available somewhere on the net. The easiest would be to take that and
> make it a separate project aka keep it out of tree. Providing a prebuilt
> winetest16.exe would make it easy for people to test without having to
> go through the pain of setting the build environment up.
> bye
>         michael

It's at

The initial problem IIRC was OpenWatcom's license, which isn't
acceptable to Debian/Fedora/et al:

Dan speculated that AJ wouldn't add a patch that used OpenWatcom since
it's not packaged in the major distributions, but AFAIK he never
actually asked :). Perhaps an optional build of win16 tests if it's
installed would be acceptable.

I've also exported a copy to my Github account:


More information about the wine-devel mailing list