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
3043ab3e
Commit
3043ab3e
authored
Feb 03, 2020
by
Puetz Kevin A
Committed by
Alexandre Julliard
Feb 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atlbase.h: Fix some declarations on win64.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
76b6bcbf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
16 deletions
+19
-16
atl.c
dlls/atl/atl.c
+1
-1
module.c
dlls/atl/tests/module.c
+14
-11
atlbase.h
include/atlbase.h
+4
-4
No files found.
dlls/atl/atl.c
View file @
3043ab3e
...
...
@@ -213,7 +213,7 @@ HRESULT WINAPI AtlInternalQueryInterface(void* this, const _ATL_INTMAP_ENTRY* pE
while
(
pEntries
[
i
].
pFunc
!=
0
)
{
TRACE
(
"Trying entry %i (%s %
i
%p)
\n
"
,
i
,
debugstr_guid
(
pEntries
[
i
].
piid
),
TRACE
(
"Trying entry %i (%s %
lx
%p)
\n
"
,
i
,
debugstr_guid
(
pEntries
[
i
].
piid
),
pEntries
[
i
].
dw
,
pEntries
[
i
].
pFunc
);
if
(
!
pEntries
[
i
].
piid
||
IsEqualGUID
(
iid
,
pEntries
[
i
].
piid
))
...
...
dlls/atl/tests/module.c
View file @
3043ab3e
...
...
@@ -113,9 +113,9 @@ static void test_winmodule(void)
ok
(
winmod
.
m_pCreateWndList
==
create_data
+
1
,
"winmod.m_pCreateWndList != create_data
\n
"
);
}
static
DWORD
cb_val
;
static
DWORD
_PTR
cb_val
;
static
void
WINAPI
term_callback
(
DWORD
dw
)
static
void
WINAPI
term_callback
(
DWORD
_PTR
dw
)
{
cb_val
=
dw
;
}
...
...
@@ -123,33 +123,36 @@ static void WINAPI term_callback(DWORD dw)
static
void
test_term
(
void
)
{
_ATL_MODULEW
test
;
ULONG_PTR
ex
;
HRESULT
hres
;
ex
=
(
ULONG_PTR
)
-
37
;
test
.
cbSize
=
sizeof
(
_ATL_MODULEW
);
hres
=
AtlModuleInit
(
&
test
,
NULL
,
NULL
);
ok
(
hres
==
S_OK
,
"AtlModuleInit failed (0x%x).
\n
"
,
(
int
)
hres
);
ok
(
hres
==
S_OK
,
"AtlModuleInit failed (0x%x).
\n
"
,
hres
);
hres
=
AtlModuleAddTermFunc
(
&
test
,
term_callback
,
0x22
);
ok
(
hres
==
S_OK
,
"AtlModuleAddTermFunc failed (0x%x).
\n
"
,
(
int
)
hres
);
hres
=
AtlModuleAddTermFunc
(
&
test
,
term_callback
,
ex
);
ok
(
hres
==
S_OK
,
"AtlModuleAddTermFunc failed (0x%x).
\n
"
,
hres
);
cb_val
=
0xdeadbeef
;
hres
=
AtlModuleTerm
(
&
test
);
ok
(
hres
==
S_OK
,
"AtlModuleTerm failed (0x%x).
\n
"
,
(
int
)
hres
);
ok
(
cb_val
==
0x22
,
"wrong callback value (0x%x).
\n
"
,
(
int
)
cb_val
);
ok
(
hres
==
S_OK
,
"AtlModuleTerm failed (0x%x).
\n
"
,
hres
);
ok
(
cb_val
==
ex
,
"wrong callback value (0x%lx).
\n
"
,
cb_val
);
test
.
cbSize
=
FIELD_OFFSET
(
_ATL_MODULEW
,
dwAtlBuildVer
);
hres
=
AtlModuleInit
(
&
test
,
NULL
,
NULL
);
ok
(
hres
==
S_OK
,
"AtlModuleInit failed (0x%x).
\n
"
,
(
int
)
hres
);
ok
(
hres
==
S_OK
,
"AtlModuleInit failed (0x%x).
\n
"
,
hres
);
hres
=
AtlModuleAddTermFunc
(
&
test
,
term_callback
,
0x23
);
ok
(
hres
==
S_OK
,
"AtlModuleAddTermFunc failed (0x%x).
\n
"
,
(
int
)
hres
);
ok
(
hres
==
S_OK
,
"AtlModuleAddTermFunc failed (0x%x).
\n
"
,
hres
);
cb_val
=
0xdeadbeef
;
hres
=
AtlModuleTerm
(
&
test
);
ok
(
hres
==
S_OK
,
"AtlModuleTerm failed (0x%x).
\n
"
,
(
int
)
hres
);
ok
(
cb_val
==
0xdeadbeef
,
"wrong callback value (0x%
x).
\n
"
,
(
int
)
cb_val
);
ok
(
hres
==
S_OK
,
"AtlModuleTerm failed (0x%x).
\n
"
,
hres
);
ok
(
cb_val
==
0xdeadbeef
,
"wrong callback value (0x%
lx).
\n
"
,
cb_val
);
}
START_TEST
(
module
)
...
...
include/atlbase.h
View file @
3043ab3e
...
...
@@ -37,12 +37,12 @@
#endif
typedef
HRESULT
(
WINAPI
_ATL_CREATORFUNC
)(
void
*
pv
,
REFIID
riid
,
LPVOID
*
ppv
);
typedef
HRESULT
(
WINAPI
_ATL_CREATORARGFUNC
)(
void
*
pv
,
REFIID
riid
,
LPVOID
*
ppv
,
DWORD
dw
);
typedef
HRESULT
(
WINAPI
_ATL_MODULEFUNC
)(
DWORD
dw
);
typedef
HRESULT
(
WINAPI
_ATL_CREATORARGFUNC
)(
void
*
pv
,
REFIID
riid
,
LPVOID
*
ppv
,
DWORD
_PTR
dw
);
typedef
HRESULT
(
WINAPI
_ATL_MODULEFUNC
)(
DWORD
_PTR
dw
);
typedef
LPCSTR
(
WINAPI
_ATL_DESCRIPTIONFUNCA
)(
void
);
typedef
LPCWSTR
(
WINAPI
_ATL_DESCRIPTIONFUNCW
)(
void
);
typedef
const
struct
_ATL_CATMAP_ENTRY
*
(
_ATL_CATMAPFUNC
)(
void
);
typedef
void
(
WINAPI
_ATL_TERMFUNC
)(
DWORD
dw
);
typedef
void
(
WINAPI
_ATL_TERMFUNC
)(
DWORD
_PTR
dw
);
typedef
CRITICAL_SECTION
CComCriticalSection
;
...
...
@@ -234,7 +234,7 @@ typedef _ATL_MODULEW _ATL_WIN_MODULE;
typedef
struct
_ATL_INTMAP_ENTRY_TAG
{
const
IID
*
piid
;
DWORD
dw
;
DWORD
_PTR
dw
;
_ATL_CREATORARGFUNC
*
pFunc
;
}
_ATL_INTMAP_ENTRY
;
...
...
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