Hugh McMaster
948888b950
reg: Use strtoulW during conversion so we can set any value in the DWORD range.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 23:26:29 +09:00
Hugh McMaster
2fd010110a
reg: Fail if strtolW cannot convert the entire data string into a DWORD.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 23:26:28 +09:00
Hugh McMaster
0f42948bf1
reg/tests: Add two more tests for REG_DWORD.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 23:26:28 +09:00
André Hentschel
d15a807c3c
reg/tests: Use todo_wine_if() in tests.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 12:09:39 +09:00
Hugh McMaster
aa9d2a7c17
reg: Abort the process if get_regdata returns NULL.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:32:26 +09:00
Hugh McMaster
b14e1ba801
reg: Handle data for REG_DWORD_LITTLE_ENDIAN and REG_DWORD_BIG_ENDIAN.
...
REG_DWORD_LITTLE_ENDIAN is #define'd as REG_DWORD, so the LITTLE_ENDIAN
case is just a comment added for clarity.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:31:20 +09:00
Hugh McMaster
03afd26eb1
reg: Handle data for REG_EXPAND_SZ.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:31:09 +09:00
Hugh McMaster
f1d45b5f44
reg: Handle data from REG_NONE.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:31:03 +09:00
Hugh McMaster
5061899c46
reg: Fail if REG_DWORD is passed with no data argument.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:30:19 +09:00
Hugh McMaster
3c340fda68
reg: Fail when /d is used without an accompanying argument.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 22:13:28 +09:00
Hugh McMaster
2c0359fb3c
reg/tests: Fix incorrect expected value.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 22:13:25 +09:00
Hugh McMaster
acf0c92943
reg/tests: Add tests for /d with no data argument.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 01:26:45 +09:00
Hugh McMaster
a2bdfbae39
reg/tests: Add tests for /v* flags.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 01:26:43 +09:00
Hugh McMaster
9e4e1cf9be
reg/tests: Fix the add empty type test.
...
The exit code of this test will always be REG_EXIT_FAILURE,
so the return code is neither broken nor todo_wine.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 17:49:19 +09:00
Thomas Faller
5c9526cb6c
reg: Implement binary data add operation.
2015-09-07 15:04:49 +09:00
Jonathan Vollebregt
513505d6c4
reg: Add a check for multiple backslashes at the end of the key.
2015-02-23 22:05:55 +09:00
Jonathan Vollebregt
4db1e20122
reg/tests: Test REG_NONE.
2014-12-15 14:16:08 +01:00
Jonathan Vollebregt
c15e87cec4
reg/tests: Test for integer overflow.
2014-12-15 14:16:05 +01:00
Jonathan Vollebregt
e6acf969e7
reg/tests: Test result for deleting key that doesn't exist.
2014-11-07 14:41:33 +09:00
Jonathan Vollebregt
82c6c10428
reg/tests: Test for empty type and empty binary input.
2014-11-06 23:47:13 +09:00
Jonathan Vollebregt
1256177dc2
reg/tests: Move key format test section below first key creation.
2014-11-04 13:27:41 +09:00
Jonathan Vollebregt
375f9c9905
reg/tests: Delete keys manually to prevent timeout on winxp/win2k.
2014-11-04 13:27:24 +09:00
Jonathan Vollebregt
f8445249a6
reg/tests: Test key formats.
2014-10-27 14:36:09 +09:00
Jonathan Vollebregt
d2e6e210ac
reg/tests: Add REG_DWORD_BIG_ENDIAN tests for reg add.
2014-10-24 19:58:04 +09:00
Jonathan Vollebregt
90dcfadf9a
reg/tests: Add REG_BINARY tests for reg add.
2014-10-24 19:58:04 +09:00
Jonathan Vollebregt
53a5a837d2
reg/tests: Add REG_MULTI_SZ tests for reg add.
2014-10-24 19:58:04 +09:00
Jonathan Vollebregt
6552893824
reg/tests: Add REG_EXPAND_SZ tests for reg add.
2014-10-24 19:58:04 +09:00
Jonathan Vollebregt
b2c99522a6
reg/tests: Add negative DWORD tests.
2014-10-24 19:58:04 +09:00
Akihiro Sagawa
a99d3c5bff
reg: Add reg.exe test suite.
2014-09-11 16:55:28 +02:00