Commit f66523ab authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

oleaut32: Correct version byte order.

parent fe64e21e
......@@ -3813,7 +3813,7 @@ static void test_create_typelib_lcid(LCID lcid)
HRESULT hr;
ICreateTypeLib2 *tl;
HANDLE file;
DWORD msft_header[5]; /* five is enough for now */
DWORD msft_header[7];
DWORD read;
GetTempFileNameA( ".", "tlb", 0, filename );
......@@ -3825,6 +3825,9 @@ static void test_create_typelib_lcid(LCID lcid)
hr = ICreateTypeLib2_SetLcid(tl, lcid);
ok(hr == S_OK, "got %08x\n", hr);
hr = ICreateTypeLib2_SetVersion(tl, 3, 4);
ok(hr == S_OK, "got %08x\n", hr);
hr = ICreateTypeLib2_SaveAllChanges(tl);
ok(hr == S_OK, "got %08x\n", hr);
......@@ -3842,6 +3845,7 @@ static void test_create_typelib_lcid(LCID lcid)
ok(msft_header[2] == 0xffffffff, "got %08x\n", msft_header[2]);
ok(msft_header[3] == (lcid ? lcid : 0x409), "got %08x (lcid %08x)\n", msft_header[3], lcid);
ok(msft_header[4] == lcid, "got %08x (lcid %08x)\n", msft_header[4], lcid);
ok(msft_header[6] == 0x00040003, "got %08x\n", msft_header[6]);
DeleteFileA(filename);
}
......
......@@ -9703,7 +9703,7 @@ static HRESULT WINAPI ICreateTypeLib2_fnSaveAllChanges(ICreateTypeLib2 *iface)
file.header.varflags |= 0x10;
if (This->HelpStringDll)
file.header.varflags |= HELPDLLFLAG;
file.header.version = (This->ver_major << 16) | This->ver_minor;
file.header.version = (This->ver_minor << 16) | This->ver_major;
file.header.flags = This->libflags;
file.header.helpstringcontext = 0; /* TODO - SetHelpStringContext not implemented yet */
file.header.helpcontext = This->dwHelpContext;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment