mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 04:48:36 +00:00
atl: Convert REG_DWORD to a correct type.
This commit is contained in:
parent
6468ffd8bb
commit
7a353e15f6
|
@ -280,7 +280,7 @@ static HRESULT do_process_key(LPCOLESTR *pstr, HKEY parent_key, strbuf *buf, BOO
|
|||
hres = get_word(&iter, buf);
|
||||
if(FAILED(hres))
|
||||
break;
|
||||
dw = wcstol(buf->str, NULL, 10);
|
||||
dw = wcstoul(buf->str, NULL, 10);
|
||||
lres = RegSetValueExW(hkey, name.len ? name.str : NULL, 0, REG_DWORD,
|
||||
(PBYTE)&dw, sizeof(dw));
|
||||
if(lres != ERROR_SUCCESS) {
|
||||
|
|
|
@ -49,6 +49,10 @@ static const char textA[] =
|
|||
" val 'dword_unquoted_dec' = d 1 \n"
|
||||
" val 'dword_quoted_hex' = d '0xA' \n"
|
||||
" val 'dword_unquoted_hex' = d 0xA \n"
|
||||
" val 'dword_negative' = d -2147483648 \n"
|
||||
" val 'dword_ulong' = d 2147483649 \n"
|
||||
" val 'dword_max' = d 4294967295 \n"
|
||||
" val 'dword_overrange' = d 4294967296 \n"
|
||||
" val 'binary_quoted' = b 'deadbeef' \n"
|
||||
" val 'binary_unquoted' = b dead0123 \n"
|
||||
" } \n"
|
||||
|
@ -72,6 +76,10 @@ static void test_registrar(void)
|
|||
{ "dword_quoted_dec", TRUE, 1 },
|
||||
{ "dword_quoted_hex", FALSE, 0xA },
|
||||
{ "dword_unquoted_hex", FALSE, 0xA },
|
||||
{ "dword_negative", FALSE, -2147483648 },
|
||||
{ "dword_ulong", TRUE, 2147483649 },
|
||||
{ "dword_max", TRUE, 4294967295 },
|
||||
{ "dword_overrange", FALSE, 4294967296 },
|
||||
};
|
||||
|
||||
if (!GetProcAddress(GetModuleHandleA("atl.dll"), "AtlAxAttachControl"))
|
||||
|
|
Loading…
Reference in a new issue