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
40cfa7a6
Commit
40cfa7a6
authored
Apr 14, 2010
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Apr 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: CoInternetGetSecurityUrl is not present on W95B.
parent
43e9bb5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
sec_mgr.c
dlls/urlmon/tests/sec_mgr.c
+14
-2
No files found.
dlls/urlmon/tests/sec_mgr.c
View file @
40cfa7a6
...
@@ -35,6 +35,8 @@
...
@@ -35,6 +35,8 @@
#include "initguid.h"
#include "initguid.h"
static
HRESULT
(
WINAPI
*
pCoInternetGetSecurityUrl
)(
LPCWSTR
,
LPWSTR
*
,
PSUACTION
,
DWORD
);
static
const
WCHAR
url1
[]
=
{
'r'
,
'e'
,
's'
,
':'
,
'/'
,
'/'
,
'm'
,
's'
,
'h'
,
't'
,
'm'
,
'l'
,
'.'
,
'd'
,
'l'
,
'l'
,
static
const
WCHAR
url1
[]
=
{
'r'
,
'e'
,
's'
,
':'
,
'/'
,
'/'
,
'm'
,
's'
,
'h'
,
't'
,
'm'
,
'l'
,
'.'
,
'd'
,
'l'
,
'l'
,
'/'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
'.'
,
'h'
,
't'
,
'm'
,
0
};
'/'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
'.'
,
'h'
,
't'
,
'm'
,
0
};
static
const
WCHAR
url2
[]
=
{
'i'
,
'n'
,
'd'
,
'e'
,
'x'
,
'.'
,
'h'
,
't'
,
'm'
,
0
};
static
const
WCHAR
url2
[]
=
{
'i'
,
'n'
,
'd'
,
'e'
,
'x'
,
'.'
,
'h'
,
't'
,
'm'
,
0
};
...
@@ -654,8 +656,13 @@ static void test_InternetGetSecurityUrl(void)
...
@@ -654,8 +656,13 @@ static void test_InternetGetSecurityUrl(void)
DWORD
i
;
DWORD
i
;
HRESULT
hres
;
HRESULT
hres
;
if
(
!
pCoInternetGetSecurityUrl
)
{
win_skip
(
"CoInternetGetSecurityUrl not found
\n
"
);
return
;
}
for
(
i
=
0
;
i
<
sizeof
(
in
)
/
sizeof
(
WCHAR
*
);
i
++
)
{
for
(
i
=
0
;
i
<
sizeof
(
in
)
/
sizeof
(
WCHAR
*
);
i
++
)
{
hres
=
CoInternetGetSecurityUrl
(
in
[
i
],
&
sec
,
PSU_DEFAULT
,
0
);
hres
=
p
CoInternetGetSecurityUrl
(
in
[
i
],
&
sec
,
PSU_DEFAULT
,
0
);
ok
(
hres
==
S_OK
,
"(%d) CoInternetGetSecurityUrl returned: %08x
\n
"
,
i
,
hres
);
ok
(
hres
==
S_OK
,
"(%d) CoInternetGetSecurityUrl returned: %08x
\n
"
,
i
,
hres
);
if
(
hres
==
S_OK
)
{
if
(
hres
==
S_OK
)
{
ok
(
!
strcmp_w
(
sec
,
out_default
[
i
]),
"(%d) Got %s, expected %s
\n
"
,
ok
(
!
strcmp_w
(
sec
,
out_default
[
i
]),
"(%d) Got %s, expected %s
\n
"
,
...
@@ -663,7 +670,7 @@ static void test_InternetGetSecurityUrl(void)
...
@@ -663,7 +670,7 @@ static void test_InternetGetSecurityUrl(void)
CoTaskMemFree
(
sec
);
CoTaskMemFree
(
sec
);
}
}
hres
=
CoInternetGetSecurityUrl
(
in
[
i
],
&
sec
,
PSU_SECURITY_URL_ONLY
,
0
);
hres
=
p
CoInternetGetSecurityUrl
(
in
[
i
],
&
sec
,
PSU_SECURITY_URL_ONLY
,
0
);
ok
(
hres
==
S_OK
,
"(%d) CoInternetGetSecurityUrl returned: %08x
\n
"
,
i
,
hres
);
ok
(
hres
==
S_OK
,
"(%d) CoInternetGetSecurityUrl returned: %08x
\n
"
,
i
,
hres
);
if
(
hres
==
S_OK
)
{
if
(
hres
==
S_OK
)
{
ok
(
!
strcmp_w
(
sec
,
out_securl
[
i
]),
"(%d) Got %s, expected %s
\n
"
,
ok
(
!
strcmp_w
(
sec
,
out_securl
[
i
]),
"(%d) Got %s, expected %s
\n
"
,
...
@@ -676,8 +683,13 @@ static void test_InternetGetSecurityUrl(void)
...
@@ -676,8 +683,13 @@ static void test_InternetGetSecurityUrl(void)
START_TEST
(
sec_mgr
)
START_TEST
(
sec_mgr
)
{
{
HMODULE
hurlmon
;
OleInitialize
(
NULL
);
OleInitialize
(
NULL
);
hurlmon
=
GetModuleHandle
(
"urlmon.dll"
);
pCoInternetGetSecurityUrl
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetGetSecurityUrl"
);
test_InternetGetSecurityUrl
();
test_InternetGetSecurityUrl
();
test_SecurityManager
();
test_SecurityManager
();
test_polices
();
test_polices
();
...
...
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