https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e706083d5027c592c75b0cc5783aa321189ceff6
commit e706083d5027c592c75b0cc5783aa321189ceff6 Author: Jérôme Gardou <jerome.gar...@reactos.org> AuthorDate: Tue Feb 13 22:51:02 2024 +0100 Commit: Jérôme Gardou <zefk...@users.noreply.github.com> CommitDate: Tue Feb 20 08:56:53 2024 +0100 [LIBWINE] Return empty path when given a UNIX path CORE-19444 --- sdk/lib/3rdparty/libwine/path.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/lib/3rdparty/libwine/path.c b/sdk/lib/3rdparty/libwine/path.c index d8f11bdafc5..8c620024e11 100644 --- a/sdk/lib/3rdparty/libwine/path.c +++ b/sdk/lib/3rdparty/libwine/path.c @@ -61,6 +61,8 @@ WCHAR * CDECL wine_get_dos_file_name( LPCSTR str ) #ifdef __REACTOS__ ERR("Got absolute UNIX path name in function wine_get_dos_file_name. This is not UNIX. Please fix the caller!\n"); ERR("File name: %s\n", str); + /* Return empty path */ + return RtlAllocateHeap(GetProcessHeap(), HEAP_ZERO_MEMORY, 1 * sizeof(UNICODE_NULL)); #else len += 8; /* \??\unix prefix */ if (!(buffer = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) ))) return NULL;