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
a59e4899
Commit
a59e4899
authored
Jan 24, 2007
by
Huw Davies
Committed by
Alexandre Julliard
Jan 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: The typelib version numbers should be written to the registry in hex.
parent
d96cfd07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
typelib.c
dlls/oleaut32/typelib.c
+4
-4
No files found.
dlls/oleaut32/typelib.c
View file @
a59e4899
...
...
@@ -165,9 +165,9 @@ static BOOL find_typelib_key( REFGUID guid, WORD *wMaj, WORD *wMin )
{
INT
v_maj
,
v_min
;
if
(
sscanf
(
key_name
,
"%
u.%u
"
,
&
v_maj
,
&
v_min
)
==
2
)
if
(
sscanf
(
key_name
,
"%
x.%x
"
,
&
v_maj
,
&
v_min
)
==
2
)
{
TRACE
(
"found %s: %
u.%u
\n
"
,
debugstr_w
(
buffer
),
v_maj
,
v_min
);
TRACE
(
"found %s: %
x.%x
\n
"
,
debugstr_w
(
buffer
),
v_maj
,
v_min
);
if
(
*
wMaj
==
v_maj
)
{
...
...
@@ -195,7 +195,7 @@ static BOOL find_typelib_key( REFGUID guid, WORD *wMaj, WORD *wMin )
static
WCHAR
*
get_typelib_key
(
REFGUID
guid
,
WORD
wMaj
,
WORD
wMin
,
WCHAR
*
buffer
)
{
static
const
WCHAR
TypelibW
[]
=
{
'T'
,
'y'
,
'p'
,
'e'
,
'l'
,
'i'
,
'b'
,
'\\'
,
0
};
static
const
WCHAR
VersionFormatW
[]
=
{
'\\'
,
'%'
,
'
u'
,
'.'
,
'%'
,
'u
'
,
0
};
static
const
WCHAR
VersionFormatW
[]
=
{
'\\'
,
'%'
,
'
x'
,
'.'
,
'%'
,
'x
'
,
0
};
memcpy
(
buffer
,
TypelibW
,
sizeof
(
TypelibW
)
);
StringFromGUID2
(
guid
,
buffer
+
strlenW
(
buffer
),
40
);
...
...
@@ -668,7 +668,7 @@ HRESULT WINAPI RegisterTypeLib(
KEY_WRITE
,
NULL
,
&
subKey
,
NULL
)
==
ERROR_SUCCESS
)
{
WCHAR
buffer
[
40
];
static
const
WCHAR
fmtver
[]
=
{
'%'
,
'
u'
,
'.'
,
'%'
,
'u
'
,
0
};
static
const
WCHAR
fmtver
[]
=
{
'%'
,
'
x'
,
'.'
,
'%'
,
'x
'
,
0
};
static
const
WCHAR
VersionW
[]
=
{
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
0
};
StringFromGUID2
(
&
attr
->
guid
,
buffer
,
40
);
...
...
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