Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f66523ab
Commit
f66523ab
authored
Aug 16, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
Aug 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Correct version byte order.
parent
fe64e21e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
typelib.c
dlls/oleaut32/tests/typelib.c
+5
-1
typelib.c
dlls/oleaut32/typelib.c
+1
-1
No files found.
dlls/oleaut32/tests/typelib.c
View file @
f66523ab
...
...
@@ -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
);
}
...
...
dlls/oleaut32/typelib.c
View file @
f66523ab
...
...
@@ -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_m
ajor
<<
16
)
|
This
->
ver_min
or
;
file
.
header
.
version
=
(
This
->
ver_m
inor
<<
16
)
|
This
->
ver_maj
or
;
file
.
header
.
flags
=
This
->
libflags
;
file
.
header
.
helpstringcontext
=
0
;
/* TODO - SetHelpStringContext not implemented yet */
file
.
header
.
helpcontext
=
This
->
dwHelpContext
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment