Commit 90b1d7ab authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

atl: Cast-qual warnings fix.

parent a5e6c89d
...@@ -286,13 +286,15 @@ static HRESULT do_process_key(LPCOLESTR *pstr, HKEY parent_key, strbuf *buf, BOO ...@@ -286,13 +286,15 @@ static HRESULT do_process_key(LPCOLESTR *pstr, HKEY parent_key, strbuf *buf, BOO
} }
break; break;
case 'd': { case 'd': {
WCHAR *end;
DWORD dw; DWORD dw;
if(*iter == '0' && iter[1] == 'x') { if(*iter == '0' && iter[1] == 'x') {
iter += 2; iter += 2;
dw = strtolW(iter, (WCHAR**)&iter, 16); dw = strtolW(iter, &end, 16);
}else { }else {
dw = strtolW(iter, (WCHAR**)&iter, 10); dw = strtolW(iter, &end, 10);
} }
iter = end;
lres = RegSetValueExW(hkey, name.len ? name.str : NULL, 0, REG_DWORD, lres = RegSetValueExW(hkey, name.len ? name.str : NULL, 0, REG_DWORD,
(PBYTE)&dw, sizeof(dw)); (PBYTE)&dw, sizeof(dw));
if(lres != ERROR_SUCCESS) { if(lres != ERROR_SUCCESS) {
......
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