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
5e72f7b2
Commit
5e72f7b2
authored
Jun 03, 2009
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jun 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rundll32: Load the 16-bit kernel32 exports by ordinal.
parent
584175be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rundll32.c
programs/rundll32/rundll32.c
+2
-2
No files found.
programs/rundll32/rundll32.c
View file @
5e72f7b2
...
@@ -88,7 +88,7 @@ static HINSTANCE16 load_dll16( LPCWSTR dll )
...
@@ -88,7 +88,7 @@ static HINSTANCE16 load_dll16( LPCWSTR dll )
DWORD
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
dll
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
DWORD
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
dll
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
char
*
dllA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
char
*
dllA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
dll
,
-
1
,
dllA
,
len
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
dll
,
-
1
,
dllA
,
len
,
NULL
,
NULL
);
pLoadLibrary16
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"kernel32.dll"
),
"LoadLibrary16"
);
pLoadLibrary16
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"kernel32.dll"
),
(
LPCSTR
)
35
);
if
(
pLoadLibrary16
)
ret
=
pLoadLibrary16
(
dllA
);
if
(
pLoadLibrary16
)
ret
=
pLoadLibrary16
(
dllA
);
HeapFree
(
GetProcessHeap
(),
0
,
dllA
);
HeapFree
(
GetProcessHeap
(),
0
,
dllA
);
return
ret
;
return
ret
;
...
@@ -100,7 +100,7 @@ static FARPROC16 get_entry_point16( HINSTANCE16 inst, LPCWSTR entry )
...
@@ -100,7 +100,7 @@ static FARPROC16 get_entry_point16( HINSTANCE16 inst, LPCWSTR entry )
DWORD
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
entry
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
DWORD
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
entry
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
char
*
entryA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
char
*
entryA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
entry
,
-
1
,
entryA
,
len
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
entry
,
-
1
,
entryA
,
len
,
NULL
,
NULL
);
pGetProcAddress16
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"kernel32.dll"
),
"GetProcAddress16"
);
pGetProcAddress16
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"kernel32.dll"
),
(
LPCSTR
)
37
);
if
(
pGetProcAddress16
)
ret
=
pGetProcAddress16
(
inst
,
entryA
);
if
(
pGetProcAddress16
)
ret
=
pGetProcAddress16
(
inst
,
entryA
);
HeapFree
(
GetProcessHeap
(),
0
,
entryA
);
HeapFree
(
GetProcessHeap
(),
0
,
entryA
);
return
ret
;
return
ret
;
...
...
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