Commit graph

1999 commits

Author SHA1 Message Date
Alex Henrie 73d2f2285b kernelbase: Ensure null termination in RegGetValue[AW]. 2024-07-09 11:02:14 +02:00
Alex Henrie 004eb16c1f advapi32/tests: Drop security test workarounds for Windows <= 2000. 2024-07-08 23:09:04 +02:00
Alex Henrie 33874068b4 advapi32/tests: Test RegGetValue[AW] null termination. 2024-07-08 23:09:04 +02:00
Elizabeth Figura 9f6e44fd9c advapi32/tests: Test token label inheritance. 2024-06-06 22:29:58 +02:00
Elizabeth Figura ed297ecba5 server: Inherit the source token's label in token_duplicate().
And assign it in token_create_admin().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56640
2024-06-06 22:29:56 +02:00
Dmitry Timoshkov 0274f35335 advapi32: CryptSetKeyParam() should accept NULL pbData.
At least CryptSetKeyParam(KP_X) should accept NULL pbData.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2024-05-01 11:45:18 +02:00
Piotr Caban b13477deb4 advapi32/tests: Remove all files created by RegLoadAppKey tests. 2024-03-21 22:19:58 +01:00
Piotr Caban cc62cdc1fd advapi32/tests: Test if modifications are saved in RegUnLoadKey. 2024-03-21 22:19:58 +01:00
Piotr Caban 98bd248778 advapi32/tests: Remove all files created by RegLoadKey tests. 2024-03-21 22:19:58 +01:00
Piotr Caban cdc842f60d advapi32/tests: Merge RegLoadKey and RegUnLoadKey tests. 2024-03-21 22:19:58 +01:00
Noah Berner 898892d5f0 advapi32/tests: Add todo_wine to tests that are currently failing. 2024-03-14 18:41:42 +01:00
Zhiyi Zhang 058bfeed1d advapi32/tests: Test creating registry keys with a NULL return key pointer. 2024-03-04 22:50:27 +01:00
Zhiyi Zhang d2045611b6 advapi32: Check NULL return key pointers when creating registry keys.
Fix Warlords Battlecry III (433280) crashes at launch.
2024-03-04 22:50:25 +01:00
Paul Gofman 6cbe072c37 kernelbase: Use KEY_WOW64_64KEY flag when 64 bit registry access is assumed. 2024-02-28 22:40:43 +01:00
Alex Henrie ce6e298a68 advapi32/tests: Use CRT allocation functions. 2024-02-23 17:13:19 +01:00
Daniel Lehman 452b59bb4f advapi32/tests: Add some more EventLog tests. 2024-01-31 11:31:51 +01:00
Daniel Lehman 8c91e484cb advapi32/tests: Reduce reallocations. 2024-01-31 11:31:51 +01:00
Bernhard Übelacker 26e383c8df server: Avoid unloading of HKU .Default registry branch.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55000
2024-01-25 20:30:53 +01:00
Alex Henrie 2b323dbad7 advapi32: Add TreeSetNamedSecurityInfoW stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56055
2024-01-18 18:08:48 +01:00
Sven Baars a1adaaca27 advapi32/tests: Skip WoW64 tests on 32-bit in test_reg_create_key.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=54613
2024-01-17 11:07:00 +01:00
Sven Baars 7565d61403 advapi32/tests: Introduce a new has_wow64 helper. 2024-01-17 11:07:00 +01:00
Francois Gouget 96da5a8a35 advapi32/tests: Fix a service stop race condition.
If some Windows services stop while testing EnumServicesStatusW()'s
resume handle support, one possibility is that the still running
services all fit in the specified buffer, invalidating the test so
there is a retry in place.
But in some cases the second call just returns fewer tests than
expected. So retry in that case too.

Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=53460
2023-11-21 22:46:57 +01:00
Alexandre Julliard 9db1bbf251 include: Use proper dllimports for eventlog functions. 2023-11-06 12:01:22 +01:00
Hans Leidekker 03a2d4851b advapi32/tests: Get rid of an unreliable eventlog test.
It can take a while before a new eventlog file is created on Windows. Rather than
waiting for it I chose to remove this test since it seems doubtful that any application
will need to access the file directly.
2023-11-02 16:50:54 +01:00
Alexandre Julliard 7ccb5df0fc makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
Sven Baars 2821016247 advapi32/tests: Fix a typo (Coverity). 2023-10-30 17:18:59 +01:00
Daniel Lehman bb88ca7056 advapi32/tests: Add ReadEventLogW tests for direction. 2023-10-27 11:33:41 -05:00
Hans Leidekker 2ad2ad035d advapi32/tests: Skip WoW64 registry tests on 32-bit. 2023-10-26 16:03:30 -05:00
Hans Leidekker 362f953748 advapi32/tests: Get rid of workarounds for old Windows versions. 2023-10-26 16:03:30 -05:00
Zebediah Figura 245bdef5b1 advapi32: Implement GetSecurityInfo(SE_WINDOW_OBJECT).
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55763
2023-10-16 18:53:48 +02:00
Zebediah Figura 1a1c1d07ee advapi32: Respect object type in SetSecurityInfo().
Do not try to treat types which are not kernel handles as kernel handles.
2023-10-16 18:53:48 +02:00
Zebediah Figura b4926e2724 advapi32: Respect object type in GetSecurityInfo().
Do not try to treat types which are not kernel handles as kernel handles.
2023-10-16 18:53:48 +02:00
Zebediah Figura 398025083d advapi32/tests: Add more tests for GetSecurityInfo(). 2023-10-16 18:53:48 +02:00
Zebediah Figura c05973d077 advapi32: Fix rewinding the last path segment in SetSecurityInfo().
In particular, handle the case where an object has no name.

In theory, this should not happen for regular files, but SetSecurityInfo() is
almost certainly not supposed to care about that [i.e. this code probably
belongs in the server, at the very least]. However, fixing that will require
much more work.

While we're at it, rewrite the code to be a little more idiomatic about its
intent.
2023-10-16 18:53:48 +02:00
Zebediah Figura 3ecedb7e14 advapi32/tests: Use StringFromGUID2(). 2023-10-16 18:53:48 +02:00
Zebediah Figura 46dfbf89d2 advapi32: GetNamedSecurityInfo() takes a const name argument.
At least in the Windows 10 SDK.
2023-10-16 18:53:48 +02:00
Francois Gouget 0e44c658b6 advapi32/tests: Don't check the content of the buffer if ReadEventLog() fails. 2023-10-13 18:26:10 +02:00
Francois Gouget b34ec64537 advapi32/tests: Avoid unneeded reallocations of the ReadEventLog() buffer.
Also we don't care about the content of the buffer so using
HeapRealloc() makes no sense.
2023-10-13 18:26:09 +02:00
Francois Gouget e0c3530a74 advapi32/tests: Add the read_write info to the failures context.
Otherwise it's impossible to know which iteration failed.
2023-10-13 18:26:07 +02:00
Francois Gouget e6b5afcbd8 advapi32/tests: Better identify OpenEventLogA() failures. 2023-10-13 18:26:07 +02:00
Daniel Lehman 9373f330e5 advapi32/tests: Skip ReadEventLog on failure to open System log.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55731
2023-10-12 10:21:56 +02:00
Daniel Lehman d2a606bc92 advapi32/tests: Add ReadEventLogA tests for EventlogStarted. 2023-10-09 11:35:08 +02:00
Daniel Lehman 428a1219fd advapi32/tests: Add ReadEventLogW tests for EventLogStarted. 2023-10-05 18:49:44 +02:00
Dmitry Timoshkov d7c5797bee wevtsvc: Remove duplicate dwControlsAccepted initialization.
dwControlsAccepted is initialized a few lines earlier.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-09-08 17:47:32 +02:00
Alex Henrie 7abcc31298 advapi32: Use CRT allocation functions. 2023-08-17 10:29:30 +02:00
Vitaly Lipatov d5a983ebec advapi32: Print name for POLICY_INFORMATION_CLASS argument. 2023-08-16 15:31:54 +02:00
Alistair Leslie-Hughes 9fd2c50434 advapi32: Remove DECLSPEC_HIDDEN usage. 2023-07-07 12:20:53 +02:00
Alexandre Julliard c8c22e1348 advapi32/tests: Avoid sizeof() in traces. 2023-07-06 20:54:30 +02:00
Zebediah Figura bf45b87a3a advapi32/tests: Add more tests for token duplication. 2023-05-08 20:02:28 +02:00
Nikolay Sivov a63612045d ntdll/tests: Add some RtlValidSecurityDescriptor() tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-05-03 16:48:45 +02:00