Hugh McMaster
|
8104629672
|
reg/tests: Test how values are overwritten when copying.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-06-10 22:30:30 +02:00 |
Hugh McMaster
|
aeeda123b1
|
reg: Prompt the user to confirm whether they want to overwrite existing values when copying a key.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48000
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-06-03 21:50:58 +02:00 |
Hugh McMaster
|
664f8b638d
|
reg/tests: Test whether the 'copy' command copies user-defined key classes.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-06-01 21:25:14 +02:00 |
Hugh McMaster
|
0abc002a3e
|
reg: Fail if the source and destination keys are the same when copying.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-31 17:48:32 +02:00 |
Hugh McMaster
|
8d9a228e99
|
reg: Support recursion in the 'copy' command.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-31 17:48:09 +02:00 |
Hugh McMaster
|
b1ccb87d9d
|
reg: Partially implement the 'copy' command.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-31 17:48:07 +02:00 |
Hugh McMaster
|
8f997a8b9b
|
reg: Group resource IDs by source location.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-31 17:48:04 +02:00 |
Hugh McMaster
|
e4f3d51fdd
|
reg: Remove two unused string resources.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-31 17:44:59 +02:00 |
Hugh McMaster
|
6c466296a7
|
reg: Fail if one or more arguments follow a help switch.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-17 18:49:10 +02:00 |
Hugh McMaster
|
ac32dd8abc
|
reg: Add initial support for the 'copy' command.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-17 18:49:10 +02:00 |
Hugh McMaster
|
537cd26f7c
|
reg: Fix a typo in a function definition.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-17 18:49:10 +02:00 |
Hugh McMaster
|
ca57a86074
|
reg/tests: Add key and value order tests for the 'copy' command.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-17 18:49:10 +02:00 |
Hugh McMaster
|
baf0254bbb
|
reg/tests: Add more data tests for the 'copy' command.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-14 20:56:22 +02:00 |
Hugh McMaster
|
3115276367
|
reg/tests: Add complex data and hex type tests for the 'copy' command.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-14 20:56:19 +02:00 |
Hugh McMaster
|
48cd2588be
|
reg/tests: Add missing return code checks.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-14 20:56:14 +02:00 |
Hugh McMaster
|
bb609c6acb
|
reg/tests: Add data tests for the 'copy' command.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-13 16:45:28 +02:00 |
Hugh McMaster
|
c0619c0929
|
reg/tests: Add further syntax tests for the 'copy' command.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-12 16:56:28 +02:00 |
Hugh McMaster
|
fa4268dcbc
|
reg: Update an error message.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-12 16:56:28 +02:00 |
Hugh McMaster
|
5bee1882c0
|
reg: Update the STRING_VALUEALL_FAILED resource string.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-12 16:56:28 +02:00 |
Hugh McMaster
|
ab64b0e339
|
reg: Fail if access is denied when deleting registry data.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-12 16:56:28 +02:00 |
Hugh McMaster
|
60c8dfdd0b
|
reg: Prevent buffer over-read when querying REG_NONE values with no data.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-06 18:53:48 +02:00 |
Hugh McMaster
|
1dd785d149
|
reg: Avoid allocating zero bytes of memory when handling REG_BINARY data.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-06 18:53:48 +02:00 |
Hugh McMaster
|
e2dfb0aff4
|
reg: Allow the 'reg_data' pointer to be NULL.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-06 18:53:48 +02:00 |
Hugh McMaster
|
cf1e6d3f3f
|
reg: Only prompt the user to overwrite registry data if the given key already exists and [/f] is not supplied.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-03 21:06:23 +02:00 |
Hugh McMaster
|
d433d1f122
|
reg: Fail if access is denied when adding registry data.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-03 21:06:17 +02:00 |
Hugh McMaster
|
a0dc4d7ce3
|
reg: Add or modify the (Default) registry value if [/v] is not specified.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-05-03 21:06:09 +02:00 |
Hugh McMaster
|
2c73949a46
|
reg: Replace the 'reg_count' variable name with context-specific names.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-30 22:59:50 +02:00 |
Hugh McMaster
|
08786274e2
|
reg/tests: Update error messages.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-30 22:59:50 +02:00 |
Hugh McMaster
|
357601a01b
|
reg/tests: Add two REG_DWORD tests.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-30 22:59:50 +02:00 |
Hugh McMaster
|
a8e961ecac
|
reg/tests: Fix a typo in a REG_DWORD test.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-30 22:59:50 +02:00 |
Hugh McMaster
|
94b582b1a6
|
reg/tests: Split the REG_DWORD_BIG_ENDIAN tests from the REG_DWORD tests.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-30 22:59:50 +02:00 |
Hugh McMaster
|
1110421da9
|
reg/tests: Use string literals instead of a char buffer for REG_MULTI_SZ tests.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-30 22:59:50 +02:00 |
Hugh McMaster
|
1aae492dcb
|
reg/tests: Add and amend tests adding a (Default) value.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-30 22:59:50 +02:00 |
Hugh McMaster
|
dedcd7c100
|
reg: Use correct error message if RegCreateKeyExW() fails.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-29 23:37:45 +02:00 |
Hugh McMaster
|
8203c5db02
|
reg/tests: Verify that only the (Default) value is overwritten when neither /v nor /ve is specified.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-28 16:25:48 +02:00 |
Hugh McMaster
|
1ce21dbb5f
|
reg/tests: Rework syntax tests for the 'copy' operation.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-28 16:25:48 +02:00 |
Hugh McMaster
|
33cfc644a0
|
reg: Don't enumerate a registry key for subkeys if we know the key does not have subkeys.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-28 16:25:48 +02:00 |
Hugh McMaster
|
35ccb87a76
|
reg: Print a new line when recursing and the current key has no registry values.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-28 16:25:48 +02:00 |
Hugh McMaster
|
ec0a799ea8
|
reg: Only print the name of the registry key if it contains values or we are recursing.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-28 16:25:48 +02:00 |
Hugh McMaster
|
f32816268e
|
reg: Do not print a line break after querying a registry key.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-28 16:25:48 +02:00 |
Hugh McMaster
|
c809f94624
|
reg: Consistently use 'hkey' for HKEY variables.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-28 16:25:48 +02:00 |
Hugh McMaster
|
e685718c3b
|
reg: Print the full key path without a trailing backslash.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-21 21:00:33 +02:00 |
Hugh McMaster
|
797520db8f
|
reg: Fail if a system key has a trailing backslash but no subkey path.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-20 22:57:10 +02:00 |
Hugh McMaster
|
6d2ab37a44
|
reg: Drop key output from the "Invalid system key" error message.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-20 21:07:10 +02:00 |
Hugh McMaster
|
8b0602023a
|
reg/tests: Add tests for querying a key only containing subkeys.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-20 21:07:10 +02:00 |
Hugh McMaster
|
c573fce35b
|
reg/tests: Use 'hkey' in 'query' tests for consistency with other reg.exe tests.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-20 21:07:10 +02:00 |
Hugh McMaster
|
9752dfeea8
|
reg/tests: Only try querying an invalid key once.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-20 21:07:10 +02:00 |
Hugh McMaster
|
e9412a8ae0
|
reg/tests: Test key creation and initialization of the Default registry value.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-16 22:39:46 +02:00 |
Hugh McMaster
|
559086af62
|
reg/tests: Only pass a newly created HKEY if it is used in later tests.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-16 22:39:46 +02:00 |
Hugh McMaster
|
45b66285c3
|
reg/tests: Refactor 'add' tests into registry types, keys and syntax checks.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2021-04-15 17:41:40 +02:00 |