Commit c13d88ba authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Implement RtlGetLocaleFileMappingAddress().

parent 4258f982
......@@ -702,6 +702,29 @@ void WINAPI RtlResetRtlTranslations( const NLSTABLEINFO *info )
/**************************************************************************
* RtlGetLocaleFileMappingAddress (NTDLL.@)
*/
NTSTATUS WINAPI RtlGetLocaleFileMappingAddress( void **ptr, LCID *lcid, LARGE_INTEGER *size )
{
static void *cached_ptr;
static LCID cached_lcid;
if (!cached_ptr)
{
void *addr;
NTSTATUS status = NtInitializeNlsFiles( &addr, &cached_lcid, size );
if (status) return status;
if (InterlockedCompareExchangePointer( &cached_ptr, addr, NULL ))
NtUnmapViewOfSection( GetCurrentProcess(), addr );
}
*ptr = cached_ptr;
*lcid = cached_lcid;
return STATUS_SUCCESS;
}
/**************************************************************************
* RtlAnsiCharToUnicodeChar (NTDLL.@)
*/
WCHAR WINAPI RtlAnsiCharToUnicodeChar( char **ansi )
......
......@@ -726,6 +726,7 @@
# @ stub RtlGetLengthWithoutLastFullDosOrNtPathElement
# Yes, Microsoft really misspelled this one!
# @ stub RtlGetLengthWithoutTrailingPathSeperators
@ stdcall RtlGetLocaleFileMappingAddress(ptr ptr ptr)
@ stdcall RtlGetLongestNtPathLength()
@ stdcall -syscall -arch=win32 RtlGetNativeSystemInformation(long ptr long ptr) NtWow64GetNativeSystemInformation
@ stdcall -syscall -arch=win64 RtlGetNativeSystemInformation(long ptr long ptr) NtQuerySystemInformation
......
......@@ -4346,6 +4346,7 @@ NTSYSAPI ULONG WINAPI RtlGetFullPathName_U(PCWSTR,ULONG,PWSTR,PWSTR*);
NTSYSAPI NTSTATUS WINAPI RtlGetGroupSecurityDescriptor(PSECURITY_DESCRIPTOR,PSID *,PBOOLEAN);
NTSYSAPI NTSTATUS WINAPI RtlGetLastNtStatus(void);
NTSYSAPI DWORD WINAPI RtlGetLastWin32Error(void);
NTSYSAPI NTSTATUS WINAPI RtlGetLocaleFileMappingAddress(void**,LCID*,LARGE_INTEGER*);
NTSYSAPI DWORD WINAPI RtlGetLongestNtPathLength(void);
NTSYSAPI ULONG WINAPI RtlGetNtGlobalFlags(void);
NTSYSAPI BOOLEAN WINAPI RtlGetNtProductType(LPDWORD);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment