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
1597d735
Commit
1597d735
authored
Jun 22, 1999
by
Andreas Mohr
Committed by
Alexandre Julliard
Jun 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added COMPOBJ.DllEntryPoint (Acrobat3 16bit needs it).
parent
13a30bac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletion
+42
-1
compobj.spec
if1632/compobj.spec
+1
-1
compobj.c
ole/compobj.c
+41
-0
No files found.
if1632/compobj.spec
View file @
1597d735
...
...
@@ -115,7 +115,7 @@ type win16
113 stub ?SETATGROW@CARRAYFVALUE@@RECHHPEX@Z
114 stub ?SETSIZE@CARRAYFVALUE@@RECHHH@Z
115 pascal CoGetState(ptr) CoGetState16
116
stub DLLENTRYPOINT
116
pascal DllEntryPoint(long word word word long word) COMPOBJ_DllEntryPoint
117 stub ?RELEASE@CSTDMALLOC@@VEAKXZ
118 stub ?ALLOC@CSTDMALLOC@@VEAPEXK@Z
119 stub SHRRELEASE
...
...
ole/compobj.c
View file @
1597d735
...
...
@@ -122,6 +122,10 @@ static COM_ExternalLock* COM_ExternalLockLocate(
*
* TODO: Most of these things will have to be made thread-safe.
*/
HINSTANCE16
COMPOBJ_hInstance
=
0
;
HINSTANCE
COMPOBJ_hInstance32
=
0
;
static
int
COMPOBJ_Attach
=
0
;
LPMALLOC16
currentMalloc16
=
NULL
;
LPMALLOC
currentMalloc32
=
NULL
;
...
...
@@ -1982,3 +1986,40 @@ static void COM_ExternalLockDelete(
}
while
(
current
!=
EL_END_OF_LIST
);
}
}
/***********************************************************************
* COMPOBJ_DllEntryPoint [COMPOBJ.entry]
*
* Initialization code for the COMPOBJ DLL
*
* RETURNS:
*/
BOOL
WINAPI
COMPOBJ_DllEntryPoint
(
DWORD
Reason
,
HINSTANCE16
hInst
,
WORD
ds
,
WORD
HeapSize
,
DWORD
res1
,
WORD
res2
)
{
TRACE
(
ole
,
"(%08lx, %04x, %04x, %04x, %08lx, %04x)
\n
"
,
Reason
,
hInst
,
ds
,
HeapSize
,
res1
,
res2
);
switch
(
Reason
)
{
case
DLL_PROCESS_ATTACH
:
COMPOBJ_Attach
++
;
if
(
COMPOBJ_hInstance
)
{
ERR
(
ole
,
"compobj.dll instantiated twice!
\n
"
);
/*
* We should return FALSE here, but that will break
* most apps that use CreateProcess because we do
* not yet support seperate address-spaces.
*/
return
TRUE
;
}
COMPOBJ_hInstance
=
hInst
;
break
;
case
DLL_PROCESS_DETACH
:
if
(
!--
COMPOBJ_Attach
)
COMPOBJ_hInstance
=
0
;
break
;
}
return
TRUE
;
}
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