Dmitry Timoshkov : ntdll/tests: Add a bunch of tests for creating kernel objects with the names containing '\0'.

Alexandre Julliard julliard at winehq.org
Tue Aug 2 14:55:42 CDT 2022


Module: wine
Branch: master
Commit: 9d9b564e4b9d533fa700f402e6be8ba91c132bce
URL:    https://gitlab.winehq.org/wine/wine/-/commit/9d9b564e4b9d533fa700f402e6be8ba91c132bce

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Thu Jul 28 17:22:27 2022 +0300

ntdll/tests: Add a bunch of tests for creating kernel objects with the names containing '\0'.

As the tests show after creating a kernel object with name "wine_test\0"
it's possible to only open it as "wine_test\0", an attempt opening it
as "wine_test" fails with STATUS_OBJECT_NAME_NOT_FOUND, and vice versa.
Also the tests show that "wine\0test" is a valid kernel object name.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/tests/om.c | 350 +++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 349 insertions(+), 1 deletion(-)




More information about the wine-cvs mailing list