mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[REG] Sync with Wine Staging 3.9. CORE-14656
This commit is contained in:
parent
216f15c675
commit
98cf80fbc5
|
@ -39,7 +39,10 @@ static WCHAR *escape_string(WCHAR *str, size_t str_len, size_t *line_len)
|
|||
for (i = 0, escape_count = 0; i < str_len; i++)
|
||||
{
|
||||
WCHAR c = str[i];
|
||||
if (c == '\r' || c == '\n' || c == '\\' || c == '"' || c == '\0')
|
||||
|
||||
if (!c) break;
|
||||
|
||||
if (c == '\r' || c == '\n' || c == '\\' || c == '"')
|
||||
escape_count++;
|
||||
}
|
||||
|
||||
|
@ -49,6 +52,8 @@ static WCHAR *escape_string(WCHAR *str, size_t str_len, size_t *line_len)
|
|||
{
|
||||
WCHAR c = str[i];
|
||||
|
||||
if (!c) break;
|
||||
|
||||
switch (c)
|
||||
{
|
||||
case '\r':
|
||||
|
@ -67,10 +72,6 @@ static WCHAR *escape_string(WCHAR *str, size_t str_len, size_t *line_len)
|
|||
buf[pos++] = '\\';
|
||||
buf[pos] = '"';
|
||||
break;
|
||||
case '\0':
|
||||
buf[pos++] = '\\';
|
||||
buf[pos] = '0';
|
||||
break;
|
||||
default:
|
||||
buf[pos] = c;
|
||||
}
|
||||
|
|
|
@ -409,7 +409,8 @@ static void free_parser_data(struct parser *parser)
|
|||
|
||||
static void prepare_hex_string_data(struct parser *parser)
|
||||
{
|
||||
if (parser->data_type == REG_EXPAND_SZ || parser->data_type == REG_MULTI_SZ)
|
||||
if (parser->data_type == REG_EXPAND_SZ || parser->data_type == REG_MULTI_SZ ||
|
||||
parser->data_type == REG_SZ)
|
||||
{
|
||||
if (parser->is_unicode)
|
||||
{
|
||||
|
|
|
@ -227,7 +227,7 @@ reactos/win32ss/printing/monitors/localmon/ui/ # Synced to WineStaging-3.3 (kno
|
|||
ReactOS shares the following programs with Winehq.
|
||||
|
||||
reactos/base/applications/cmdutils/cscript # Synced to WineStaging-3.3
|
||||
reactos/base/applications/cmdutils/reg # Synced to WineStaging-3.3
|
||||
reactos/base/applications/cmdutils/reg # Synced to WineStaging-3.9
|
||||
reactos/base/applications/cmdutils/schtasks # Synced to WineStaging-3.3
|
||||
reactos/base/applications/cmdutils/taskkill # Synced to WineStaging-3.3
|
||||
reactos/base/applications/cmdutils/wmic # Synced to WineStaging-3.3
|
||||
|
|
Loading…
Reference in a new issue