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
bb3c164f
Commit
bb3c164f
authored
May 05, 2000
by
Stephane Lussier
Committed by
Alexandre Julliard
May 05, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If we do not find a resource for both (primary lang|sub lang), we try
just (primary lang) before using the default.
parent
1e0dfb59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
pe_resource.c
loader/pe_resource.c
+8
-0
No files found.
loader/pe_resource.c
View file @
bb3c164f
...
...
@@ -14,6 +14,7 @@
#include <sys/types.h>
#include "wine/winestring.h"
#include "windef.h"
#include "winnls.h"
#include "pe_image.h"
#include "module.h"
#include "heap.h"
...
...
@@ -135,6 +136,13 @@ HANDLE PE_FindResourceExW(
if
((
resdirptr
=
GetResDirEntryW
(
resdirptr
,
name
,
root
,
FALSE
))
==
NULL
)
return
0
;
result
=
(
HANDLE
)
GetResDirEntryW
(
resdirptr
,
(
LPCWSTR
)(
UINT
)
lang
,
root
,
FALSE
);
/* Try with only the primary language set */
if
(
!
result
)
{
lang
=
MAKELANGID
(
PRIMARYLANGID
(
lang
),
SUBLANG_DEFAULT
);
result
=
(
HANDLE
)
GetResDirEntryW
(
resdirptr
,
(
LPCWSTR
)(
UINT
)
lang
,
root
,
FALSE
);
}
/* Try LANG_NEUTRAL, too */
if
(
!
result
)
return
(
HANDLE
)
GetResDirEntryW
(
resdirptr
,
(
LPCWSTR
)
0
,
root
,
TRUE
);
...
...
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