Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9306cc52
Commit
9306cc52
authored
Aug 24, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
Aug 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version 1 atl modules only have a structure size of 100 and no
functions to call.
parent
b5c02815
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
atl_main.c
dlls/atl/atl_main.c
+13
-3
No files found.
dlls/atl/atl_main.c
View file @
9306cc52
...
...
@@ -49,14 +49,24 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return
TRUE
;
}
#define ATLVer1Size 100
HRESULT
WINAPI
AtlModuleInit
(
_ATL_MODULEA
*
pM
,
_ATL_OBJMAP_ENTRYA
*
p
,
HINSTANCE
h
)
{
INT
i
;
UINT
size
;
FIXME
(
"SEMI-STUB (%p %p %p)
\n
"
,
pM
,
p
,
h
);
memset
(
pM
,
0
,
sizeof
(
_ATL_MODULEA
));
pM
->
cbSize
=
sizeof
(
_ATL_MODULEA
);
size
=
pM
->
cbSize
;
if
(
size
!=
sizeof
(
_ATL_MODULEA
)
&&
size
!=
ATLVer1Size
)
{
FIXME
(
"Unknown structure version (size %i)
\n
"
,
size
);
return
E_INVALIDARG
;
}
memset
(
pM
,
0
,
pM
->
cbSize
);
pM
->
cbSize
=
size
;
pM
->
m_hInst
=
h
;
pM
->
m_hInstResource
=
h
;
pM
->
m_hInstTypeLib
=
h
;
...
...
@@ -65,7 +75,7 @@ HRESULT WINAPI AtlModuleInit(_ATL_MODULEA* pM, _ATL_OBJMAP_ENTRYA* p, HINSTANCE
/* call mains */
i
=
0
;
if
(
pM
->
m_pObjMap
!=
NULL
)
if
(
pM
->
m_pObjMap
!=
NULL
&&
size
>
ATLVer1Size
)
{
while
(
pM
->
m_pObjMap
[
i
].
pclsid
!=
NULL
)
{
...
...
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