Francois Gouget
c47c6483aa
advapi32: RegGetValue() should not return an error when expanding a string and given a NULL buffer and a zero size.
...
Adjust the tests to cover this case for REG_EXPAND_SZ registry
values. Improve the documentation a bit.
2008-01-11 12:25:14 +01:00
Alexandre Julliard
ef15bbf1cb
advapi32/tests: Print the correct size in an error message.
2008-01-07 17:18:07 +01:00
Sam Dennis
1590b1f731
advapi32: Fix undocumented behaviour in ReqQueryValueEx when 'count' and 'type' point to the same address.
2007-12-14 14:06:45 +01:00
Dan Kegel
89b9af7714
advapi32: Fix buffer overrun in tests/registry.c:wine_debugstr_wn().
2007-11-12 12:55:42 +01:00
Dan Kegel
dc072e209d
advapi32/tests: Fix undefined memory references in registry.c.
2007-10-30 12:46:38 +01:00
Francois Gouget
1da7a32b11
advapi32: Add more RegGetValue() conformance tests, and fix Wine accordingly.
2007-06-21 13:11:09 +02:00
Stefan Leichter
552c225949
advapi32: Fix initial cleanup of the registry keys used for testing.
2007-04-30 12:19:56 +02:00
Stefan Leichter
2c99d4b2a7
advapi32: More tests for RegDeleteTreeA.
2007-04-23 17:26:34 +02:00
Francois Gouget
042a78dd05
advapi32/tests: Use memcmp() instead of strcmp() so that we can check 'intrazeroed' strings.
2007-04-18 13:13:09 +02:00
Francois Gouget
b934fc90eb
advapi32: Fix and extend the RegQueryValueEx() tests.
...
- Added tests for empty and zero-byte strings. Wine passes these tests, sort of.
- Check that the returned string is correct.
- All known Windows versions implement RegQueryValueExA(), so complain if it is not implemented.
- Only allow the Win9x quirks for the Ansi version.
- Query the name2A/W value for the string2A/W tests!
- The test_hkey_main_Value_A/W() functions were doing a sizeof() on the string parameter to compute the string's full size!
- We must reset GLE before each test, otherwise Win9x skips all but the first test.
2007-04-16 12:08:25 +02:00
Paul Vriens
402f4e9c74
advapi32/tests: Fix RegQueryValueExA test for win9x and ME.
2007-04-12 16:16:44 +02:00
Paul Vriens
7dd647b633
advapi32/tests: Use skip when OpenSCManagerA is not implemented.
2007-04-11 11:20:47 +02:00
Paul Vriens
1e3b6afa57
advapi32/tests: Make sure NT4 and W2K tests don't fail.
2007-04-10 14:23:14 +02:00
Stefan Leichter
0dcf196001
advapi32: Add some tests for RegDeleteTreeA.
2007-04-05 10:53:59 +02:00
Paul Vriens
ddaacfbe2c
advapi32/tests: Some cleanup.
2007-04-02 11:29:14 +02:00
Paul Vriens
11f6e89f87
advapi32/tests: Reopen the main handle if needed.
2007-04-02 11:29:04 +02:00
Paul Vriens
6598aa5028
advapi32/tests: RegQueryValueW is not always implemented.
2007-03-16 11:21:12 +01:00
Paul Vriens
6544831184
advapi32/tests: Prepare for more tests and use skip.
2007-03-12 12:23:51 +01:00
Alexandre Julliard
7e2228f15a
advapi32: Fixed registry test that failed because of a buffer overflow.
2007-03-08 21:06:31 +01:00
James Hawkins
6cc4510b71
advapi32: Add tests for RegQueryValue.
2007-01-16 16:54:17 +01:00
Rob Shearman
214eb389c9
advapi32: Change the test for the type parameter of RegQueryValueExA to only run on Win9x, since the value is set to a random value on NT.
2006-12-28 12:17:04 +01:00
Francois Gouget
ef998ea6cb
Assorted spelling fixes.
2006-10-16 11:33:38 +02:00
Hans Leidekker
53535d6e13
advapi32/tests: Win64 printf format warning fixes.
2006-10-04 20:56:14 +02:00
Paul Vriens
1a2aa7ca3d
advapi32: Make sure it's a real cleanup.
2006-10-02 21:38:04 +02:00
Andrew Talbot
0eebab8652
advapi32/tests: Cast-qual warnings fix.
2006-08-28 11:36:58 +02:00
Robert Shearman
bc590e87a6
advapi32: Add tests for RegQueryValueEx to show that it sets the data
...
size to 0 when a buffer isn't present and that it sets the type to
REG_NONE on Win9x.
2006-08-16 17:02:04 +02:00
Alexandre Julliard
290ddd8e38
advapi32/tests: Use lstrlenA instead of strlen in ok() to avoid printf format warnings.
2006-06-13 13:56:18 +02:00
Saulius Krasuckas
072c11dc49
advapi32: Test RegSetValueEx[AW] for setting some sequential strings as one.
2006-06-10 12:41:27 +02:00
Saulius Krasuckas
67e6040c2d
advapi32: Enable some tests and extend them to succeed on XP and 2003 SP1.
2006-06-02 20:43:50 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Rein Klazes
62b69d6486
advapi32: RegCreateKeyEx fix.
...
On Win9x,ME RegCreateKeyEx ignores the backslash character if the
subkey begins with one. With a regression test.
2005-12-08 13:49:02 +01:00
Saulius Krasuckas
9d519093f6
- RegConnectRegistryA fails on Win9x when Remote Registry Service is
...
not installed (WinReg.DLL is missing).
- Test "\\" prefixed computer names too.
2005-11-04 11:15:59 +00:00
Ivan Leo Puoti
7230a90821
Delete a temp file.
2005-10-27 18:29:07 +00:00
Rein Klazes
c16e70587a
- Set the LastError in OpenSCManager in case of errors;
...
- Accept machine names without a '\\' prefix in OpenSCManager and
RegConnectRegistry.
- Add a regression test for that.
2005-09-15 09:31:05 +00:00
Felix Nawothnig
7bc3a38ba7
Rewrote the RegGetValue tests for REG_SZ / REG_EXPAND_SZ.
2005-07-18 10:30:51 +00:00
Felix Nawothnig
305ce2f641
Fix registry tests on Win95.
2005-07-18 09:08:24 +00:00
Mike McCormack
d7b9a23afd
gcc 4.0 -Wpointer-sign fixes (Reg* functions).
2005-07-06 19:08:05 +00:00
Felix Nawothnig
694f789956
Added unit tests for RegGetValue.
2005-07-03 11:19:03 +00:00
Stefan Huehner
ac6f562b52
Fix more -Wstrict-prototypes warnings.
2005-06-20 14:18:03 +00:00
Robert Shearman
8cb3f92e53
- All versions of Windows ignore the access rights of the passed in
...
parent handle to RegCreateKey(Ex).
- Add a test that shows this.
2005-06-16 20:34:34 +00:00
Robert Shearman
44246e47ec
Fix registry test for Win9x by skipping a section that fails, but
...
succeeds on NT.
2005-06-12 10:42:13 +00:00
James Hawkins
8516d1969d
Set the backup/restore privilege.
2005-04-19 12:00:04 +00:00
James Hawkins
fa18fad2b0
Remove two unnecessary traces.
...
Break up one test into two.
2005-04-19 10:24:06 +00:00
James Hawkins
89f67d7b09
Add RegUnLoadKey test.
2005-04-19 09:47:10 +00:00
Jakob Eriksson
163f5ab923
Fail gracefully on permission denied.
2005-04-18 09:52:40 +00:00
James Hawkins
a9d5de8414
RegDeleteKey fails if the lpSubKey param is NULL.
2005-04-16 10:49:10 +00:00
Jakob Eriksson
9117e1c463
ERROR_PRIVILEGE_NOT_HELD can be returned for NT4.
2005-04-15 16:12:28 +00:00
James Hawkins
2a8f7962ff
Pass an empty string instead of NULL to RegDeleteKey to delete hKey.
2005-04-13 14:40:58 +00:00
James Hawkins
eb9250bf12
Create the 'Test' value in a temporary subkey to avoid conflicts
...
between tests.
2005-04-11 12:52:32 +00:00
James Hawkins
1ef206de77
Replace a trace with a previously removed test.
2005-03-25 10:26:18 +00:00
Jakob Eriksson
6be7d751a0
Fix some Windows 95 issues.
2005-03-24 19:02:38 +00:00
James Hawkins
34955ea696
Add RegSaveKey, RegLoadKey tests.
2005-03-23 11:59:06 +00:00
James Hawkins
e8d1e2f745
Fix RegOpen/CloseKey.
2005-02-25 16:52:10 +00:00
James Hawkins
d5e2b7c843
Add RegOpenKey, RegCloseKey tests.
2005-02-21 20:37:26 +00:00
Alexandre Julliard
d6df8f5675
Don't make the test key volatile, that can break other tests.
2005-01-27 11:15:00 +00:00
Eric Pouech
0a258964c2
Const correctness fixes.
2004-11-30 21:38:57 +00:00
James Hawkins
2515ff77fc
Added beginnings of RegQueryValueEx tests.
2004-11-19 18:13:30 +00:00
Alexandre Julliard
bba76fca45
Don't crash on NULL data in RegSetValueExA (reported by Mike Hearn and
...
Andreas Mohr).
Removed a couple of unnecessary version checks.
2004-07-24 02:32:50 +00:00
Francois Gouget
e18aa3f614
Add trailing '\n's to ok() calls.
2004-01-26 20:23:25 +00:00
Jon Griffiths
90535ce905
Various test fixes for XP/msvc.
2003-09-25 20:29:40 +00:00
Alexandre Julliard
e37c6e18d0
Fixed header dependencies to be fully compatible with the Windows
...
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Francois Gouget
c7de2085bb
Use only Ansi APIs for cleaning up the registry.
...
Skip Unicode tests if the Unicode APIs are not implemented.
If the value name buffer is too small, Win9x returns the number of
characters returned as specified in the MSDN while other Windows
return the number of bytes written (including the trailing '\0').
2003-01-13 18:29:31 +00:00
Francois Gouget
5e5f7bbb02
Change the #include order so that these tests compile on Windows.
2002-09-17 00:04:35 +00:00
Alexandre Julliard
5587d39e9c
Fixed possible infinite loop in delete_key.
2002-09-12 20:46:06 +00:00
Alexandre Julliard
c345f7b953
Created registry unit test and added tests for RegEnumValue[AW].
2002-07-10 03:30:14 +00:00