Commit Graph

322 Commits

Author SHA1 Message Date
Hugh McMaster 99f2cebe86 reg/tests: Add more tests for REG_MULTI_SZ.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 20:22:21 +09:00
Hugh McMaster 5e6429520b reg: Allow either lowercase or uppercase 'x' when used with REG_DWORD.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 20:22:21 +09:00
Hugh McMaster 8a902f3761 reg: Fail if the separator for REG_MULTI_SZ is not one character in length.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-18 00:22:05 +09:00
Hugh McMaster 5a2ddc8d25 reg/tests: Add a test for /s with no separator character.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-18 00:22:04 +09:00
Hugh McMaster 46bdc153f1 reg: Fail if /s 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-18 00:22:04 +09:00
Hugh McMaster acb4e3f63a reg: Explicitly use base 10 or base 16 with strtoulW.
All Windows versions, except XP, parse the number 0123 as decimal.
(XP parses 0123 as octal).

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 474361ecb4 reg: Fail if the data argument for REG_DWORD begins with a minus sign.
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 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 07c6b1392f reg: Add case for REG_MULTI_SZ.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:32:01 +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 e0492b27ac reg: Call RegCloseKey before exiting if the user chooses to cancel the overwriting operation.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:30:17 +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 20a41d0339 reg: Ask the user if they want to delete the subkey, value, default value or all values.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 01:26:44 +09:00
Hugh McMaster a365418ae2 reg: Add support for the default registry value in ask_confirm().
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 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 c0b26a649e reg: Do not allow /v and /ve to be used together in the 'add' function.
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 c59e3eae3b reg: Do not allow combinations of /v, /ve or /va in the 'delete' function.
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 ae48fbafa8 reg: Ask the user whether they want to overwrite an existing registry value.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 21:51:10 +09:00
Hugh McMaster 2b06308fdb reg: Output program name instead of the generic 'Error'.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 21:49:42 +09:00
Hugh McMaster 5654b91f7c reg: Specify the data type that is unsupported.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 21:45:05 +09:00
Hugh McMaster 5f07f81ad1 reg: Output messages with a variable number of arguments and convert message arrays to strings.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 21:41:12 +09:00
Hugh McMaster dfe1c2b57c reg: Use FormatMessage for easier internationalization support.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 21:39:20 +09:00
Hugh McMaster bfcee1f149 reg: Split reg_printfW into separate functions.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 21:39:16 +09:00
Hugh McMaster dcd05e8e86 reg: Remove stub output from the 'add' and 'delete' functions.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-08 20:05:24 +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
Jonathan Vollebregt 60f599f584 reg: Simplify root key search.
Signed-off-by: Michel Zou <xantares09@hotmail.com>
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
2015-10-07 21:28:54 +09:00
Thomas Faller 5c9526cb6c reg: Implement binary data add operation. 2015-09-07 15:04:49 +09:00
Jonathan Vollebregt 0898bd22bf reg: Add wchar/type conversion functions. 2015-02-23 22:07:07 +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 208ca071dc reg: Add sane_path function to do preliminary key validation. 2015-02-23 22:03:34 +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
Sebastian Lackner f6b552324e reg.exe: Fix incorrect usage of CompareString in get_rootkey. 2014-11-19 23:36:34 +09: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
Jonathan Vollebregt b823337f65 reg.exe: Fix stack overflow on large registry keys. 2014-09-02 20:54:46 +02:00
Alexandre Julliard 86b1f94d28 makefiles: Get rid of the MAKE_PROG_RULES variable. 2014-01-02 12:12:57 +01:00
Alexandre Julliard 4f3d71cef3 makefiles: Get rid of the no longer used PO_SRCS variables. 2013-12-15 10:23:04 +01:00
Alexandre Julliard 5756ee09f3 makefiles: Add makedep pragmas for rc files that contain translations. 2013-11-05 20:38:19 +01:00
Francois Gouget f9c2e21fb1 reg: Use the CSTR_XXX macros instead of numeric literals. 2012-06-21 08:33:54 +02:00
Alexandre Julliard da35622b83 makefiles: Disable use of Unicode macros globally for all the programs. 2012-01-20 13:14:16 +01:00
Francois Gouget 5bc1aff578 programs: Document the reason for the WriteConsole() fall back. 2011-08-24 19:07:45 +02:00
Alexandre Julliard 7ca7138b40 reg: Convert translations to po files. 2011-01-04 20:27:33 +01:00
Andrew Nguyen 060c8f0c6e reg: Accept full names of the standard registry hives. 2011-01-04 14:51:39 +01:00
Hwang YunSong 792d15562d reg: Update Korean resource. 2011-01-03 11:54:05 +01:00
Luca Bennati c12965b7e9 reg: Update Italian translation. 2010-09-23 17:50:11 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Anders Jonsson 41f778f50e reg: Add Swedish translation. 2010-08-16 12:58:54 +02:00
Alexandre Julliard 6fb39dfe4a programs: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:37 +02:00
Gustavo Henrique Milaré 5356e20261 reg: Update Portuguese (Brazilian) translation. 2010-07-01 10:09:40 +02:00
Igor Paliychuk 3762d1c9f8 reg: Ukrainian translation update. 2010-06-29 10:54:33 +02:00
Michael Stefaniuc c3e602c6b5 reg: Add the Romanian translation.
Translation by Claudia Cotună, reviewed by Alexandru Băluț.
2010-06-25 12:50:31 +02:00
Jose Rostagno 294f4e2ff1 reg: Add Spanish translation. 2010-06-10 13:13:46 +02:00
Łukasz Wojniłowicz da342c72cf reg: Update the Polish translation. 2010-06-07 12:54:43 +02:00
Paul Vriens 9c02314d7e reg: Update the Danish translation and convert to UTF-8.
Translation by Thomas Larsen <sikker2004@yahoo.com>
2010-06-01 17:50:25 +02:00
Sven Baars 9ad9012fcf reg: Fix Dutch translation. 2010-06-01 11:04:07 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Dan Kegel 7de394d6ab reg.exe: Handle setting DWORD registry values. 2010-02-03 15:50:34 +01:00
Luca Bennati 0692a960a8 reg: Add Italian translation. 2010-02-01 12:48:17 +01:00
Igor Paliychuk 4423b0c7b4 reg.exe: Add Ukrainian translations. 2010-01-29 13:30:04 +01:00
Marcus Meissner 552db89b06 reg: Fixed 2 functionality bugs in REG DELETE (Coverity). 2009-12-07 14:18:29 +01:00
Marcus Meissner 93dad930cd reg: Remove wrong and useless check (Coverity). 2009-10-20 14:00:36 +02:00
Andrey Turkin 64d488065a programs: Update Russian translations. 2009-10-20 13:46:42 +02:00
Akihiro Sagawa c775536e07 reg: Update Japanese translation. 2009-08-24 15:17:31 +02:00
Vladimir Pankratov 08c9f775d4 reg: Convert the Russian resources to UTF-8. 2009-07-20 13:35:01 +02:00
Ricardo Filipe 2f48c23e58 reg: Update Portuguese translation and convert to UTF8. 2009-07-16 11:14:16 +02:00
Frédéric Delanoy 77ec63c55f reg: Fix French translation. 2009-07-10 12:11:45 +02:00
Alexander Nicolaysen Sørnes 815a66d787 reg: Update Norwegian Bokmål translation. 2009-07-06 14:35:25 +02:00
Michael Stefaniuc dd2d38355b reg: Build language resource files separately.
Do not include them from an other rc file.
2009-07-02 11:43:18 +02:00
Andrew Nguyen 7ec4ba32b2 reg: Support the /h flag as a synonymous help flag. 2009-07-01 11:39:38 +02:00
Andrew Nguyen 070d9f91ab reg: Correct the sense of return values for registry operations. 2009-07-01 11:39:35 +02:00
Andrew Nguyen a3dbe3cce1 reg: Fix behavior when specifying the help flag. 2009-06-30 14:59:02 +02:00
Andrew Nguyen 24c6f5cc35 reg: Report an error when an unknown operation is specified. 2009-06-30 14:58:55 +02:00
Matej Spindler 3ee43b9597 reg: Update Slovenian translation. 2009-06-26 11:59:26 +02:00
Jonathan Ernst 686119d89c reg: Updated French translation. 2009-06-09 17:01:14 +02:00
Hwang YunSong 533128bd1a reg: Updated Korean resource. 2009-05-25 14:26:18 +02:00
Frans Kool 846ce4f0c4 reg: Fixed Dutch translations. 2009-04-16 11:28:28 -05:00
Aurimas Fischer 9da142f7e1 reg: Add Lithuanian translation. 2009-03-23 12:40:40 +01:00
Michael Stefaniuc 58e9834af8 reg: Fix/update the German translation. 2009-03-23 12:37:02 +01:00
Michael Stefaniuc 331bb8f356 reg: Change the German translation to UTF8. 2009-03-23 12:36:59 +01:00
Nikolay Sivov 5276d886f9 reg: Don't close not open reg key (Coverity). 2009-02-09 13:21:27 +01:00
Aric Stewart 45824821ff reg.exe: Implement DELETE. 2009-01-28 14:31:56 +01:00
Aric Stewart 647a087e8a reg.exe: Implement ADD for REG_SZ. 2009-01-28 14:31:44 +01:00
Alexandre Julliard 5dcd3c4d1c reg.exe: Fix broken usage of va_list. 2009-01-03 11:38:25 +01:00
Francois Gouget 3bb449468d reg: Avoid wvsprintfW() so we can avoid loading user32.dll. 2008-11-21 10:01:57 +01:00
Andrew Riedi 103cfb90f2 reg: const WCHAR -> static const WCHAR. 2008-11-17 13:57:09 +01:00
Ricardo Filipe 3df9158747 reg.exe: Added Portuguese translation. 2008-10-20 11:37:26 +02:00
Muneyuki Noguchi 9bfa96adc2 reg: Convert Japanese resource to UTF-8. 2008-10-13 11:39:52 +02:00
Muneyuki Noguchi 82fd8167bc reg: Add Japanese resources. 2008-09-29 17:18:14 -05:00
Alexandre Julliard 90685fcf03 reg.exe: Get rid of remaining uses of Unicode macros. 2008-09-04 14:08:12 +02:00
Alexandre Julliard b66685cdd8 programs: Build the programs that support it with -DWINE_NO_UNICODE_MACROS. 2008-09-03 14:21:41 +02:00
Jonathan Ernst 077cf2e817 reg: Updated French translation. 2008-06-03 11:10:50 +02:00
Francois Gouget 71941a8f78 reg: Add French resources. 2008-06-02 14:13:41 +02:00
Andrej Sinicyn ee3ed054d0 reg: German translation. 2008-05-13 20:26:10 +02:00
Jens Albretsen 0fb29e3998 reg: Danish translation. 2008-05-07 12:10:39 +02:00
Hwang YunSong(황윤성) fa80ec5f1e reg: Updated Korean resource. 2008-04-29 12:34:16 +02:00
ByeongSik Jeon 651ec32174 reg: Add Korean translation. 2008-04-23 12:22:28 +02:00
Rok Mandeljc d70ddcb670 reg: Added Slovenian translation. 2008-04-08 11:58:12 +02:00
Vitaliy Margolen 3eff12c056 reg: Add Russian translation. 2008-04-03 11:30:11 +02:00
Alexander Nicolaysen Sørnes 31bb5dcf03 reg: Add Norwegian Bokmål resource. 2008-03-31 12:51:34 +02:00
Mikołaj Zalewski 50af8a3f12 reg: Add Polish translation. 2008-03-31 12:13:46 +02:00
Frans Kool 389799e7c0 reg: Added Dutch resources. 2008-03-20 14:27:34 +01:00
Frans Kool 6e08a877c1 reg: Corrected #include statement for translations to work. 2008-03-20 14:27:34 +01:00
Andrew Riedi 2087ad46a9 reg: Add stub 'reg' program. 2008-03-19 12:45:26 +01:00