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
574a10ef
Commit
574a10ef
authored
Jul 14, 2001
by
Uwe Bonnes
Committed by
Alexandre Julliard
Jul 14, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SNOOP_GetProcAddress: don't touch already initialized fun-entries.
parent
10109e60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
snoop.c
relay32/snoop.c
+9
-6
No files found.
relay32/snoop.c
View file @
574a10ef
...
...
@@ -194,12 +194,15 @@ SNOOP_GetProcAddress(HMODULE hmod,LPCSTR name,DWORD ordinal,FARPROC origfun) {
return
origfun
;
assert
(
ordinal
<
dll
->
nrofordinals
);
fun
=
dll
->
funs
+
ordinal
;
if
(
!
fun
->
name
)
fun
->
name
=
HEAP_strdupA
(
GetProcessHeap
(),
0
,
name
);
fun
->
lcall
=
0xe8
;
/* NOTE: origreturn struct member MUST come directly after snoopentry */
fun
->
snoopentry
=
(
char
*
)
SNOOP_Entry
-
((
char
*
)(
&
fun
->
nrofargs
));
fun
->
origfun
=
origfun
;
fun
->
nrofargs
=
-
1
;
if
(
!
fun
->
name
)
{
fun
->
name
=
HEAP_strdupA
(
GetProcessHeap
(),
0
,
name
);
fun
->
lcall
=
0xe8
;
/* NOTE: origreturn struct member MUST come directly after snoopentry */
fun
->
snoopentry
=
(
char
*
)
SNOOP_Entry
-
((
char
*
)(
&
fun
->
nrofargs
));
fun
->
origfun
=
origfun
;
fun
->
nrofargs
=
-
1
;
}
return
(
FARPROC
)
&
(
fun
->
lcall
);
}
...
...
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