atl: Cast-qual warnings fix.

This commit is contained in:
Andrew Talbot 2006-10-17 22:55:43 +01:00 committed by Alexandre Julliard
parent a5e6c89dcf
commit 90b1d7abe6
1 changed files with 4 additions and 2 deletions

View File

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