mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:06:04 +00:00
[WINESYNC]: reg is now in sync with wine-staging wine-6.23
Used winesync.py script, commits which needed obious adjustments have explicit
note in commit message, that it is manually adjusted. Internationalization is
skipped while automated sync and done in last manual step.
Additonal manual adjustments to compile in ros are in this commit:
- wcsupr -> _wcsupr
- only 3 arguments for swprintf, instead of 4 in wine
- disable tests for "/reg:32" and "/reg:64", because they fail on w2k3
Manually addjusted base/applications/cmdutils/reg/lang/zh-CN.rc while rebase to
actuall master (4a66cbb224
) on 19.06.2022
This commit is contained in:
parent
958d4a884a
commit
1a6f523e01
41 changed files with 3687 additions and 476 deletions
|
@ -60,7 +60,7 @@ static WCHAR *reg_data_to_wchar(DWORD type, const BYTE *src, DWORD size_bytes)
|
|||
ptr = buffer;
|
||||
|
||||
for (i = 0; i < size_bytes; i++)
|
||||
ptr += swprintf(ptr, 3, L"%02X", src[i]);
|
||||
ptr += swprintf(ptr, L"%02X", src[i]);
|
||||
break;
|
||||
}
|
||||
case REG_DWORD:
|
||||
|
@ -70,7 +70,7 @@ static WCHAR *reg_data_to_wchar(DWORD type, const BYTE *src, DWORD size_bytes)
|
|||
const int zero_x_dword = 10;
|
||||
|
||||
buffer = malloc((zero_x_dword + 1) * sizeof(WCHAR));
|
||||
swprintf(buffer, zero_x_dword + 1, L"0x%x", *(DWORD *)src);
|
||||
swprintf(buffer, L"0x%x", *(DWORD *)src);
|
||||
break;
|
||||
}
|
||||
case REG_MULTI_SZ:
|
||||
|
@ -403,6 +403,6 @@ int reg_query(int argc, WCHAR *argvW[])
|
|||
|
||||
invalid:
|
||||
output_message(STRING_INVALID_SYNTAX);
|
||||
output_message(STRING_FUNC_HELP, wcsupr(argvW[1]));
|
||||
output_message(STRING_FUNC_HELP, _wcsupr(argvW[1]));
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue