Skip to content
Snippets Groups Projects
Commit 65ce784f authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard
Browse files

ntdll: Introduce ntdll_get_build_dir and ntdll_get_data_dir.


To expose build and data dirs for Unix libs.

Signed-off-by: default avatarJacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 97479d3d
No related branches found
No related tags found
No related merge requests found
......@@ -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
*
......
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment