Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9a61495c
Commit
9a61495c
authored
Jan 31, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Jan 31, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added GetResDirEntryA for use by the VERSION code.
parent
ccdbcd6e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
pe_image.h
include/pe_image.h
+1
-0
pe_resource.c
loader/pe_resource.c
+18
-0
No files found.
include/pe_image.h
View file @
9a61495c
...
...
@@ -46,6 +46,7 @@ struct _THDB; /* forward definition */
extern
void
PE_InitTls
(
struct
_THDB
*
);
extern
void
PE_InitDLL
(
struct
_wine_modref
*
wm
,
DWORD
type
,
LPVOID
lpReserved
);
extern
PIMAGE_RESOURCE_DIRECTORY
GetResDirEntryA
(
PIMAGE_RESOURCE_DIRECTORY
,
LPCSTR
,
DWORD
,
BOOL32
);
extern
PIMAGE_RESOURCE_DIRECTORY
GetResDirEntryW
(
PIMAGE_RESOURCE_DIRECTORY
,
LPCWSTR
,
DWORD
,
BOOL32
);
typedef
DWORD
(
CALLBACK
*
DLLENTRYPROC32
)(
HMODULE32
,
DWORD
,
LPVOID
);
...
...
loader/pe_resource.c
View file @
9a61495c
...
...
@@ -98,6 +98,24 @@ PIMAGE_RESOURCE_DIRECTORY GetResDirEntryW(PIMAGE_RESOURCE_DIRECTORY resdirptr,
}
/**********************************************************************
* GetResDirEntryA
*/
PIMAGE_RESOURCE_DIRECTORY
GetResDirEntryA
(
PIMAGE_RESOURCE_DIRECTORY
resdirptr
,
LPCSTR
name
,
DWORD
root
,
BOOL32
allowdefault
)
{
PIMAGE_RESOURCE_DIRECTORY
retv
;
LPWSTR
nameW
=
HIWORD
(
name
)
?
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
name
)
:
(
LPWSTR
)
name
;
retv
=
GetResDirEntryW
(
resdirptr
,
nameW
,
root
,
allowdefault
);
if
(
HIWORD
(
name
)
)
HeapFree
(
GetProcessHeap
(),
0
,
nameW
);
return
retv
;
}
/**********************************************************************
* PE_FindResourceEx32W
*/
HANDLE32
PE_FindResourceEx32W
(
...
...
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