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
967813dc
Commit
967813dc
authored
Aug 13, 2002
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix snooping of 16-bit dlls being loaded at the same address.
parent
ff6bda89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
snoop.c
if1632/snoop.c
+10
-3
No files found.
if1632/snoop.c
View file @
967813dc
...
...
@@ -103,6 +103,9 @@ SNOOP16_RegisterDLL(NE_MODULE *pModule,LPCSTR name) {
char
*
s
;
if
(
!
TRACE_ON
(
snoop
))
return
;
TRACE
(
"hmod=%x, name=%s
\n
"
,
pModule
->
self
,
name
);
if
(
!
snr
)
{
xsnr
=
GLOBAL_Alloc
(
GMEM_ZEROINIT
,
2
*
sizeof
(
*
snr
),
0
,
WINE_LDT_FLAGS_CODE
|
WINE_LDT_FLAGS_32BIT
);
snr
=
GlobalLock16
(
xsnr
);
...
...
@@ -128,10 +131,15 @@ SNOOP16_RegisterDLL(NE_MODULE *pModule,LPCSTR name) {
}
while
(
*
dll
)
{
if
((
*
dll
)
->
hmod
==
pModule
->
self
)
return
;
/* already registered */
{
/* another dll, loaded at the same address */
GlobalUnlock16
((
*
dll
)
->
funhandle
);
GlobalFree16
((
*
dll
)
->
funhandle
);
break
;
}
dll
=
&
((
*
dll
)
->
next
);
}
*
dll
=
Heap
Alloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
SNOOP16_DLL
)
+
strlen
(
name
));
*
dll
=
Heap
ReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
*
dll
,
sizeof
(
SNOOP16_DLL
)
+
strlen
(
name
));
(
*
dll
)
->
next
=
NULL
;
(
*
dll
)
->
hmod
=
pModule
->
self
;
if
((
s
=
strrchr
(
name
,
'\\'
)))
...
...
@@ -340,4 +348,3 @@ FARPROC16 SNOOP16_GetProcAddress16(HMODULE16 hmod,DWORD ordinal,FARPROC16 origfu
return
origfun
;
}
#endif
/* !__i386__ */
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