mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[LIBWINE] Return empty path when given a UNIX path
CORE-19444
This commit is contained in:
parent
6bc40d36f8
commit
e706083d50
1 changed files with 2 additions and 0 deletions
2
sdk/lib/3rdparty/libwine/path.c
vendored
2
sdk/lib/3rdparty/libwine/path.c
vendored
|
@ -61,6 +61,8 @@ WCHAR * CDECL wine_get_dos_file_name( LPCSTR str )
|
||||||
#ifdef __REACTOS__
|
#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("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);
|
ERR("File name: %s\n", str);
|
||||||
|
/* Return empty path */
|
||||||
|
return RtlAllocateHeap(GetProcessHeap(), HEAP_ZERO_MEMORY, 1 * sizeof(UNICODE_NULL));
|
||||||
#else
|
#else
|
||||||
len += 8; /* \??\unix prefix */
|
len += 8; /* \??\unix prefix */
|
||||||
if (!(buffer = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) ))) return NULL;
|
if (!(buffer = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) ))) return NULL;
|
||||||
|
|
Loading…
Reference in a new issue