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
f3dbf490
Commit
f3dbf490
authored
Oct 07, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Win64 printf format warning fixes.
parent
009996e7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
21 deletions
+20
-21
Makefile.in
dlls/mshtml/tests/Makefile.in
+0
-1
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+0
-0
misc.c
dlls/mshtml/tests/misc.c
+20
-20
protocol.c
dlls/mshtml/tests/protocol.c
+0
-0
No files found.
dlls/mshtml/tests/Makefile.in
View file @
f3dbf490
...
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
TESTDLL
=
mshtml.dll
IMPORTS
=
ole32 user32 urlmon advapi32 kernel32
EXTRALIBS
=
-luuid
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
CTESTS
=
\
htmldoc.c
\
...
...
dlls/mshtml/tests/htmldoc.c
View file @
f3dbf490
This diff is collapsed.
Click to expand it.
dlls/mshtml/tests/misc.c
View file @
f3dbf490
...
...
@@ -37,7 +37,7 @@ static void test_HTMLLoadOptions(void)
hres
=
CoCreateInstance
(
&
CLSID_HTMLLoadOptions
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IHtmlLoadOptions
,
(
void
**
)
&
loadopts
);
ok
(
hres
==
S_OK
,
"creating HTMLLoadOptions failed: %08
l
x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"creating HTMLLoadOptions failed: %08x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
...
...
@@ -45,64 +45,64 @@ static void test_HTMLLoadOptions(void)
size
=
0xdeadbeef
;
memset
(
buf
,
0xdd
,
sizeof
(
buf
));
hres
=
IHtmlLoadOptions_QueryOption
(
loadopts
,
i
,
NULL
,
&
size
);
ok
(
hres
==
S_OK
,
"QueryOption failed: %08
l
x
\n
"
,
hres
);
ok
(
size
==
0
,
"size = %
l
d
\n
"
,
size
);
ok
(
hres
==
S_OK
,
"QueryOption failed: %08x
\n
"
,
hres
);
ok
(
size
==
0
,
"size = %d
\n
"
,
size
);
ok
(
buf
[
0
]
==
0xdd
,
"buf changed
\n
"
);
}
size
=
0xdeadbeef
;
hres
=
IHtmlLoadOptions_QueryOption
(
loadopts
,
HTMLLOADOPTION_CODEPAGE
,
NULL
,
&
size
);
ok
(
hres
==
S_OK
,
"QueryOption failed: %08
l
x
\n
"
,
hres
);
ok
(
size
==
0
,
"size = %
l
d
\n
"
,
size
);
ok
(
hres
==
S_OK
,
"QueryOption failed: %08x
\n
"
,
hres
);
ok
(
size
==
0
,
"size = %d
\n
"
,
size
);
hres
=
IHtmlLoadOptions_SetOption
(
loadopts
,
HTMLLOADOPTION_CODEPAGE
,
&
data
,
sizeof
(
data
));
ok
(
hres
==
S_OK
,
"SetOption failed: %08
l
x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"SetOption failed: %08x
\n
"
,
hres
);
size
=
sizeof
(
data
);
memset
(
buf
,
0xdd
,
sizeof
(
buf
));
hres
=
IHtmlLoadOptions_QueryOption
(
loadopts
,
HTMLLOADOPTION_CODEPAGE
,
buf
,
&
size
);
ok
(
hres
==
S_OK
,
"QueryOption failed: %08
l
x
\n
"
,
hres
);
ok
(
size
==
sizeof
(
data
),
"size = %
l
d
\n
"
,
size
);
ok
(
hres
==
S_OK
,
"QueryOption failed: %08x
\n
"
,
hres
);
ok
(
size
==
sizeof
(
data
),
"size = %d
\n
"
,
size
);
ok
(
*
(
DWORD
*
)
buf
==
data
,
"unexpected buf
\n
"
);
size
=
sizeof
(
data
)
-
1
;
memset
(
buf
,
0xdd
,
sizeof
(
buf
));
hres
=
IHtmlLoadOptions_QueryOption
(
loadopts
,
HTMLLOADOPTION_CODEPAGE
,
buf
,
&
size
);
ok
(
hres
==
E_FAIL
,
"QueryOption failed: %08
l
x
\n
"
,
hres
);
ok
(
size
==
sizeof
(
data
),
"size = %
l
d
\n
"
,
size
);
ok
(
hres
==
E_FAIL
,
"QueryOption failed: %08x
\n
"
,
hres
);
ok
(
size
==
sizeof
(
data
),
"size = %d
\n
"
,
size
);
ok
(
buf
[
0
]
==
0xdd
,
"buf changed
\n
"
);
data
=
100
;
hres
=
IHtmlLoadOptions_SetOption
(
loadopts
,
HTMLLOADOPTION_CODEPAGE
,
&
data
,
0
);
ok
(
hres
==
S_OK
,
"SetOption failed: %08
l
x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"SetOption failed: %08x
\n
"
,
hres
);
size
=
0xdeadbeef
;
memset
(
buf
,
0xdd
,
sizeof
(
buf
));
hres
=
IHtmlLoadOptions_QueryOption
(
loadopts
,
HTMLLOADOPTION_CODEPAGE
,
buf
,
&
size
);
ok
(
hres
==
S_OK
,
"QueryOption failed: %08
l
x
\n
"
,
hres
);
ok
(
size
==
0
,
"size = %
l
d
\n
"
,
size
);
ok
(
hres
==
S_OK
,
"QueryOption failed: %08x
\n
"
,
hres
);
ok
(
size
==
0
,
"size = %d
\n
"
,
size
);
ok
(
buf
[
0
]
==
0xdd
,
"buf changed
\n
"
);
hres
=
IHtmlLoadOptions_SetOption
(
loadopts
,
HTMLLOADOPTION_CODEPAGE
,
NULL
,
0
);
ok
(
hres
==
S_OK
,
"SetOption failed: %08
l
x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"SetOption failed: %08x
\n
"
,
hres
);
hres
=
IHtmlLoadOptions_SetOption
(
loadopts
,
1000
,
&
data
,
sizeof
(
data
));
ok
(
hres
==
S_OK
,
"SetOption failed: %08
l
x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"SetOption failed: %08x
\n
"
,
hres
);
size
=
sizeof
(
data
);
memset
(
buf
,
0xdd
,
sizeof
(
buf
));
hres
=
IHtmlLoadOptions_QueryOption
(
loadopts
,
1000
,
buf
,
&
size
);
ok
(
hres
==
S_OK
,
"QueryOption failed: %08
l
x
\n
"
,
hres
);
ok
(
size
==
sizeof
(
data
),
"size = %
l
d
\n
"
,
size
);
ok
(
hres
==
S_OK
,
"QueryOption failed: %08x
\n
"
,
hres
);
ok
(
size
==
sizeof
(
data
),
"size = %d
\n
"
,
size
);
ok
(
*
(
DWORD
*
)
buf
==
data
,
"unexpected buf
\n
"
);
hres
=
IHtmlLoadOptions_SetOption
(
loadopts
,
1000
,
buf
,
sizeof
(
buf
));
ok
(
hres
==
S_OK
,
"SetOption failed: %08
l
x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"SetOption failed: %08x
\n
"
,
hres
);
size
=
0xdeadbeef
;
hres
=
IHtmlLoadOptions_QueryOption
(
loadopts
,
1000
,
buf
,
&
size
);
ok
(
hres
==
S_OK
,
"QueryOption failed: %08
l
x
\n
"
,
hres
);
ok
(
size
==
sizeof
(
buf
),
"size = %
l
d
\n
"
,
size
);
ok
(
hres
==
S_OK
,
"QueryOption failed: %08x
\n
"
,
hres
);
ok
(
size
==
sizeof
(
buf
),
"size = %d
\n
"
,
size
);
IHtmlLoadOptions_Release
(
loadopts
);
}
...
...
dlls/mshtml/tests/protocol.c
View file @
f3dbf490
This diff is collapsed.
Click to expand it.
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