Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
23d4aab2
Commit
23d4aab2
authored
23 years ago
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
23 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed handling of a dll being loaded at the same address as a previous
one.
parent
b60ff098
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
relay32/snoop.c
+9
-3
9 additions, 3 deletions
relay32/snoop.c
with
9 additions
and
3 deletions
relay32/snoop.c
+
9
−
3
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment