From: Wei Xie <xiewei(a)uniontech.com> Added test cases for DefineDosDeviceW function to verify proper handling of raw target paths and definition removal. The new tests check: 1. Creating a DOS device with DDD_RAW_TARGET_PATH flag 2. Proper removal of the DOS device definition These tests ensure correct behavior of device path mapping functionality in Windows compatibility layer. Signed-off-by: Wei Xie <xiewei(a)uniontech.com> --- dlls/kernel32/tests/volume.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/kernel32/tests/volume.c b/dlls/kernel32/tests/volume.c index e331b373206..70a810f8f16 100644 --- a/dlls/kernel32/tests/volume.c +++ b/dlls/kernel32/tests/volume.c @@ -188,6 +188,12 @@ static void test_dos_devices(void) ret = QueryDosDeviceA( drivestr, buf, sizeof(buf) ); ok(!ret, "expected failure\n"); ok(GetLastError() == ERROR_FILE_NOT_FOUND, "got error %lu\n", GetLastError()); + + ret = DefineDosDeviceW ( DDD_RAW_TARGET_PATH, L"C:/windows/", L"\\Device\\C:/windows/" ); + ok(ret, "got error %lu\n", GetLastError()); + + ret = DefineDosDeviceW(DDD_REMOVE_DEFINITION, L"C:/windows/", NULL); + ok(ret, "failed to remove C:/windows/, error %lu\n", GetLastError()); } static void test_FindFirstVolume(void) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8041