Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c13d88ba
Commit
c13d88ba
authored
Mar 21, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement RtlGetLocaleFileMappingAddress().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4258f982
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
locale.c
dlls/ntdll/locale.c
+23
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-0
winternl.h
include/winternl.h
+1
-0
No files found.
dlls/ntdll/locale.c
View file @
c13d88ba
...
...
@@ -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
)
...
...
dlls/ntdll/ntdll.spec
View file @
c13d88ba
...
...
@@ -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
...
...
include/winternl.h
View file @
c13d88ba
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment