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
44e874ab
Commit
44e874ab
authored
Aug 19, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw/tests: Use the global wine_dbgstr_w instead of a local variant.
parent
2ce5dba4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+2
-11
No files found.
dlls/shdocvw/tests/webbrowser.c
View file @
44e874ab
...
...
@@ -139,15 +139,6 @@ static IWebBrowser2 *wb;
static
HWND
container_hwnd
,
shell_embedding_hwnd
;
static
BOOL
is_downloading
=
FALSE
;
static
const
char
*
debugstr_w
(
LPCWSTR
str
)
{
static
char
buf
[
1024
];
if
(
!
str
)
return
"(null)"
;
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
buf
,
sizeof
(
buf
),
NULL
,
NULL
);
return
buf
;
}
static
const
char
*
debugstr_guid
(
REFIID
riid
)
{
static
char
buf
[
50
];
...
...
@@ -174,7 +165,7 @@ static void _test_LocationURL(unsigned line, IUnknown *unk, LPCWSTR exurl)
hres
=
IWebBrowser2_get_LocationURL
(
wb
,
&
url
);
ok_
(
__FILE__
,
line
)
(
hres
==
(
*
exurl
?
S_OK
:
S_FALSE
),
"get_LocationURL failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
!
lstrcmpW
(
url
,
exurl
),
"unexpected URL: %s
\n
"
,
debu
gstr_w
(
url
));
ok_
(
__FILE__
,
line
)
(
!
lstrcmpW
(
url
,
exurl
),
"unexpected URL: %s
\n
"
,
wine_db
gstr_w
(
url
));
SysFreeString
(
url
);
IWebBrowser2_Release
(
wb
);
...
...
@@ -496,7 +487,7 @@ static void test_OnBeforeNavigate(const VARIANT *disp, const VARIANT *url, const
V_VT
(
V_VARIANTREF
(
url
)));
ok
(
V_BSTR
(
V_VARIANTREF
(
url
))
!=
NULL
,
"V_BSTR(V_VARIANTREF(url)) == NULL
\n
"
);
ok
(
!
lstrcmpW
(
V_BSTR
(
V_VARIANTREF
(
url
)),
about_blankW
),
"unexpected url %s
\n
"
,
debu
gstr_w
(
V_BSTR
(
V_VARIANTREF
(
url
))));
wine_db
gstr_w
(
V_BSTR
(
V_VARIANTREF
(
url
))));
}
ok
(
V_VT
(
flags
)
==
(
VT_BYREF
|
VT_VARIANT
),
"V_VT(flags)=%x, expected VT_BYREF|VT_VARIANT
\n
"
,
...
...
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