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
c10dc03e
Commit
c10dc03e
authored
Mar 03, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packager/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d3735faa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
Makefile.in
dlls/packager/tests/Makefile.in
+0
-1
oleobj.c
dlls/packager/tests/oleobj.c
+12
-12
No files found.
dlls/packager/tests/Makefile.in
View file @
c10dc03e
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
packager.dll
IMPORTS
=
ole32
...
...
dlls/packager/tests/oleobj.c
View file @
c10dc03e
...
...
@@ -418,7 +418,7 @@ static void test_packager(void)
hr
=
CoCreateInstance
(
&
CLSID_Package
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IOleObject
,
(
void
**
)
&
oleobj
);
ok
(
hr
==
S_OK
||
hr
==
REGDB_E_CLASSNOTREG
,
"CoCreateInstance(CLSID_Package) failed: %08x
\n
"
,
hr
);
hr
==
REGDB_E_CLASSNOTREG
,
"CoCreateInstance(CLSID_Package) failed: %08
l
x
\n
"
,
hr
);
if
(
hr
==
S_OK
){
IOleObject_Release
(
oleobj
);
/* older OSes store temporary files in obscure locations, so don't run
...
...
@@ -429,28 +429,28 @@ static void test_packager(void)
hr
=
CoCreateInstance
(
&
CLSID_Package_Alt
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IOleObject
,
(
void
**
)
&
oleobj
);
ok
(
hr
==
S_OK
,
"CoCreateInstance(CLSID_Package_Alt) failed: %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"CoCreateInstance(CLSID_Package_Alt) failed: %08
l
x
\n
"
,
hr
);
hr
=
IOleObject_SetClientSite
(
oleobj
,
NULL
);
ok
(
hr
==
S_OK
,
"SetClientSite failed: %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"SetClientSite failed: %08
l
x
\n
"
,
hr
);
hr
=
IOleObject_SetClientSite
(
oleobj
,
&
clientsite
);
ok
(
hr
==
S_OK
,
"SetClientSite failed: %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"SetClientSite failed: %08
l
x
\n
"
,
hr
);
hr
=
IOleObject_GetMiscStatus
(
oleobj
,
DVASPECT_CONTENT
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"GetMiscStatus failed: %08x
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"GetMiscStatus failed: %08
l
x
\n
"
,
hr
);
hr
=
IOleObject_GetMiscStatus
(
oleobj
,
DVASPECT_CONTENT
,
&
status
);
ok
(
hr
==
S_OK
,
"GetMiscStatus failed: %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"GetMiscStatus failed: %08
l
x
\n
"
,
hr
);
ok
(
status
==
OLEMISC_ONLYICONIC
||
status
==
OLEMISC_CANTLINKINSIDE
/* winxp */
,
"Got wrong DVASPECT_CONTENT status: 0x%x
\n
"
,
status
);
"Got wrong DVASPECT_CONTENT status: 0x%
l
x
\n
"
,
status
);
hr
=
IOleObject_QueryInterface
(
oleobj
,
&
IID_IPersistStorage
,
(
void
**
)
&
persist
);
ok
(
hr
==
S_OK
,
"QueryInterface(IPersistStorage) failed: %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"QueryInterface(IPersistStorage) failed: %08
l
x
\n
"
,
hr
);
hr
=
IPersistStorage_Load
(
persist
,
&
stg
);
ok
(
hr
==
S_OK
,
"Load failed: %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Load failed: %08
l
x
\n
"
,
hr
);
if
(
extended
){
len
=
GetTempPathW
(
ARRAY_SIZE
(
filename
),
filename
);
...
...
@@ -458,19 +458,19 @@ static void test_packager(void)
file
=
CreateFileW
(
filename
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"Couldn't find temporary file %s: %u
\n
"
,
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"Couldn't find temporary file %s: %
l
u
\n
"
,
wine_dbgstr_w
(
filename
),
GetLastError
());
br
=
ReadFile
(
file
,
contents
,
sizeof
(
contents
),
&
bytes_read
,
NULL
);
ok
(
br
==
TRUE
,
"ReadFile failed
\n
"
);
ok
(
bytes_read
==
10
,
"Got wrong file size: %u
\n
"
,
bytes_read
);
ok
(
bytes_read
==
10
,
"Got wrong file size: %
l
u
\n
"
,
bytes_read
);
ok
(
!
memcmp
(
contents
,
"some text
\n
"
,
10
),
"Got wrong file contents
\n
"
);
CloseHandle
(
file
);
}
hr
=
IOleObject_Close
(
oleobj
,
OLECLOSE_NOSAVE
);
ok
(
hr
==
S_OK
,
"Close failed: %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Close failed: %08
l
x
\n
"
,
hr
);
if
(
extended
){
file
=
CreateFileW
(
filename
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
...
...
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