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
23d4aab2
Commit
23d4aab2
authored
Apr 02, 2002
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed handling of a dll being loaded at the same address as a previous
one.
parent
b60ff098
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
snoop.c
relay32/snoop.c
+9
-3
No files found.
relay32/snoop.c
View file @
23d4aab2
...
...
@@ -146,14 +146,20 @@ SNOOP_RegisterDLL(HMODULE hmod,LPCSTR name,DWORD ordbase,DWORD nrofordinals) {
SNOOP_DLL
**
dll
=
&
(
firstdll
);
char
*
s
;
TRACE
(
"hmod=%x, name=%s, ordbase=%ld, nrofordinals=%ld
\n
"
,
hmod
,
name
,
ordbase
,
nrofordinals
);
if
(
!
TRACE_ON
(
snoop
))
return
;
while
(
*
dll
)
{
if
((
*
dll
)
->
hmod
==
hmod
)
return
;
/* already registered */
{
/* another dll, loaded at the same address */
VirtualFree
((
*
dll
)
->
funs
,
(
*
dll
)
->
nrofordinals
*
sizeof
(
SNOOP_FUN
),
MEM_RELEASE
);
break
;
}
dll
=
&
((
*
dll
)
->
next
);
}
*
dll
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
SNOOP_DLL
)
+
strlen
(
name
));
(
*
dll
)
->
next
=
NULL
;
*
dll
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
*
dll
,
sizeof
(
SNOOP_DLL
)
+
strlen
(
name
));
(
*
dll
)
->
hmod
=
hmod
;
(
*
dll
)
->
ordbase
=
ordbase
;
(
*
dll
)
->
nrofordinals
=
nrofordinals
;
...
...
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