Huw Davies : oleaut32:
The typelib version numbers should be written to the registry in hex.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jan 25 06:12:13 CST 2007
Module: wine
Branch: master
Commit: a59e4899f54b1eb983d7a5d73a2d455eaec2805d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a59e4899f54b1eb983d7a5d73a2d455eaec2805d
Author: Huw Davies <huw at codeweavers.com>
Date: Wed Jan 24 12:02:29 2007 +0000
oleaut32: The typelib version numbers should be written to the registry in hex.
---
dlls/oleaut32/typelib.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 0992683..9525ee8 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -165,9 +165,9 @@ static BOOL find_typelib_key( REFGUID gu
{
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 gu
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);
More information about the wine-cvs
mailing list