Jacek Caban : ntdll: Introduce ntdll_get_build_dir and ntdll_get_data_dir.
Module: wine Branch: master Commit: 65ce784ffacf3fb20440b635e5bd4f5de1058a79 URL: https://source.winehq.org/git/wine.git/?a=commit;h=65ce784ffacf3fb20440b635e... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Oct 6 16:19:05 2021 +0200 ntdll: Introduce ntdll_get_build_dir and ntdll_get_data_dir. To expose build and data dirs for Unix libs. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/unix/env.c | 18 ++++++++++++++++++ include/wine/unixlib.h | 2 ++ 2 files changed, 20 insertions(+) diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c index ae1afb2797b..92ae04d90a5 100644 --- a/dlls/ntdll/unix/env.c +++ b/dlls/ntdll/unix/env.c @@ -783,6 +783,24 @@ int ntdll_wcstoumbs( const WCHAR *src, DWORD srclen, char *dst, DWORD dstlen, BO } +/*********************************************************************** + * ntdll_get_build_dir + */ +const char *ntdll_get_build_dir(void) +{ + return build_dir; +} + + +/*********************************************************************** + * ntdll_get_data_dir + */ +const char *ntdll_get_data_dir(void) +{ + return data_dir; +} + + /*********************************************************************** * build_envp * diff --git a/include/wine/unixlib.h b/include/wine/unixlib.h index 072401a0714..4abc3172192 100644 --- a/include/wine/unixlib.h +++ b/include/wine/unixlib.h @@ -27,6 +27,8 @@ typedef UINT64 unixlib_handle_t; extern NTSTATUS WINAPI __wine_unix_call( unixlib_handle_t handle, unsigned int code, void *args ); /* some useful helpers from ntdll */ +extern const char *ntdll_get_build_dir(void); +extern const char *ntdll_get_data_dir(void); extern DWORD ntdll_umbstowcs( const char *src, DWORD srclen, WCHAR *dst, DWORD dstlen ); extern int ntdll_wcstoumbs( const WCHAR *src, DWORD srclen, char *dst, DWORD dstlen, BOOL strict ); extern NTSTATUS ntdll_init_syscalls( ULONG id, SYSTEM_SERVICE_TABLE *table, void **dispatcher );
participants (1)
-
Alexandre Julliard