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
0925d6ec
Commit
0925d6ec
authored
May 29, 2001
by
Huw D M Davies
Committed by
Alexandre Julliard
May 29, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When reading resources in NLS_LoadStringExW we should map
SUBLANG_NEUTRAL to SUBLANG_DEFAULT.
parent
738e2461
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
ole2nls.c
ole/ole2nls.c
+4
-0
No files found.
ole/ole2nls.c
View file @
0925d6ec
...
...
@@ -418,6 +418,10 @@ static INT NLS_LoadStringExW(HMODULE hModule, LANGID lang_id, UINT res_id, LPWST
int
string_num
;
int
i
;
/* Replace SUBLANG_NEUTRAL by SUBLANG_DEFAULT */
if
(
SUBLANGID
(
lang_id
)
==
SUBLANG_NEUTRAL
)
lang_id
=
MAKELANGID
(
PRIMARYLANGID
(
lang_id
),
SUBLANG_DEFAULT
);
hrsrc
=
FindResourceExW
(
hModule
,
RT_STRINGW
,
(
LPCWSTR
)((
res_id
>>
4
)
+
1
),
lang_id
);
if
(
!
hrsrc
)
return
0
;
...
...
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