Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
282cc71a
Commit
282cc71a
authored
Sep 12, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Make some functions hookable.
parent
fdac5e57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
module.c
dlls/kernel32/module.c
+5
-5
process.c
dlls/kernel32/process.c
+8
-8
No files found.
dlls/kernel32/module.c
View file @
282cc71a
...
...
@@ -919,7 +919,7 @@ done:
* ignore the parameter because it would be extremely difficult to
* integrate this with different types of module representations.
*/
HMODULE
WINAPI
LoadLibraryExA
(
LPCSTR
libname
,
HANDLE
hfile
,
DWORD
flags
)
HMODULE
WINAPI
DECLSPEC_HOTPATCH
LoadLibraryExA
(
LPCSTR
libname
,
HANDLE
hfile
,
DWORD
flags
)
{
WCHAR
*
libnameW
;
...
...
@@ -932,7 +932,7 @@ HMODULE WINAPI LoadLibraryExA(LPCSTR libname, HANDLE hfile, DWORD flags)
*
* Unicode version of LoadLibraryExA.
*/
HMODULE
WINAPI
LoadLibraryExW
(
LPCWSTR
libnameW
,
HANDLE
hfile
,
DWORD
flags
)
HMODULE
WINAPI
DECLSPEC_HOTPATCH
LoadLibraryExW
(
LPCWSTR
libnameW
,
HANDLE
hfile
,
DWORD
flags
)
{
UNICODE_STRING
wstr
;
HMODULE
res
;
...
...
@@ -974,7 +974,7 @@ HMODULE WINAPI LoadLibraryExW(LPCWSTR libnameW, HANDLE hfile, DWORD flags)
* NOTES
* See LoadLibraryExA().
*/
HMODULE
WINAPI
LoadLibraryA
(
LPCSTR
libname
)
HMODULE
WINAPI
DECLSPEC_HOTPATCH
LoadLibraryA
(
LPCSTR
libname
)
{
return
LoadLibraryExA
(
libname
,
0
,
0
);
}
...
...
@@ -984,7 +984,7 @@ HMODULE WINAPI LoadLibraryA(LPCSTR libname)
*
* Unicode version of LoadLibraryA.
*/
HMODULE
WINAPI
LoadLibraryW
(
LPCWSTR
libnameW
)
HMODULE
WINAPI
DECLSPEC_HOTPATCH
LoadLibraryW
(
LPCWSTR
libnameW
)
{
return
LoadLibraryExW
(
libnameW
,
0
,
0
);
}
...
...
@@ -1001,7 +1001,7 @@ HMODULE WINAPI LoadLibraryW(LPCWSTR libnameW)
* Success: TRUE. The dll is removed if it is not still in use.
* Failure: FALSE. Use GetLastError() to determine the cause.
*/
BOOL
WINAPI
FreeLibrary
(
HINSTANCE
hLibModule
)
BOOL
WINAPI
DECLSPEC_HOTPATCH
FreeLibrary
(
HINSTANCE
hLibModule
)
{
BOOL
retv
=
FALSE
;
NTSTATUS
nts
;
...
...
dlls/kernel32/process.c
View file @
282cc71a
...
...
@@ -1895,10 +1895,10 @@ static LPWSTR get_file_name( LPCWSTR appname, LPWSTR cmdline, LPWSTR buffer,
/**********************************************************************
* CreateProcessA (KERNEL32.@)
*/
BOOL
WINAPI
CreateProcessA
(
LPCSTR
app_name
,
LPSTR
cmd_line
,
LPSECURITY_ATTRIBUTES
process_attr
,
LPSECURITY_ATTRIBUTES
thread_attr
,
BOOL
inherit
,
DWORD
flags
,
LPVOID
env
,
LPCSTR
cur_dir
,
LPSTARTUPINFOA
startup_info
,
LPPROCESS_INFORMATION
info
)
BOOL
WINAPI
DECLSPEC_HOTPATCH
CreateProcessA
(
LPCSTR
app_name
,
LPSTR
cmd_line
,
LPSECURITY_ATTRIBUTES
process_attr
,
LPSECURITY_ATTRIBUTES
thread_attr
,
BOOL
inherit
,
DWORD
flags
,
LPVOID
env
,
LPCSTR
cur_dir
,
LPSTARTUPINFOA
startup_info
,
LPPROCESS_INFORMATION
info
)
{
BOOL
ret
=
FALSE
;
WCHAR
*
app_nameW
=
NULL
,
*
cmd_lineW
=
NULL
,
*
cur_dirW
=
NULL
;
...
...
@@ -1937,10 +1937,10 @@ done:
/**********************************************************************
* CreateProcessW (KERNEL32.@)
*/
BOOL
WINAPI
CreateProcessW
(
LPCWSTR
app_name
,
LPWSTR
cmd_line
,
LPSECURITY_ATTRIBUTES
process_attr
,
LPSECURITY_ATTRIBUTES
thread_attr
,
BOOL
inherit
,
DWORD
flags
,
LPVOID
env
,
LPCWSTR
cur_dir
,
LPSTARTUPINFOW
startup_info
,
LPPROCESS_INFORMATION
info
)
BOOL
WINAPI
DECLSPEC_HOTPATCH
CreateProcessW
(
LPCWSTR
app_name
,
LPWSTR
cmd_line
,
LPSECURITY_ATTRIBUTES
process_attr
,
LPSECURITY_ATTRIBUTES
thread_attr
,
BOOL
inherit
,
DWORD
flags
,
LPVOID
env
,
LPCWSTR
cur_dir
,
LPSTARTUPINFOW
startup_info
,
LPPROCESS_INFORMATION
info
)
{
BOOL
retv
=
FALSE
;
HANDLE
hFile
=
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