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
Releases
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
Johnny Cai
wine
Commits
1597d735
Commit
1597d735
authored
25 years ago
by
Andreas Mohr
Committed by
Alexandre Julliard
25 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added COMPOBJ.DllEntryPoint (Acrobat3 16bit needs it).
parent
13a30bac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
if1632/compobj.spec
+1
-1
1 addition, 1 deletion
if1632/compobj.spec
ole/compobj.c
+41
-0
41 additions, 0 deletions
ole/compobj.c
with
42 additions
and
1 deletion
if1632/compobj.spec
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
ole/compobj.c
+
41
−
0
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
;
}
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