Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
edacd984
Commit
edacd984
authored
May 01, 2008
by
James Hawkins
Committed by
Alexandre Julliard
May 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fix a test that fails in win2k3.
parent
5f253684
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
misc.c
dlls/urlmon/tests/misc.c
+19
-1
No files found.
dlls/urlmon/tests/misc.c
View file @
edacd984
...
...
@@ -721,6 +721,8 @@ static const BYTE secid7[] = {'f','t','p',':','w','i','n','e','h','q','.','o','r
3
,
0
,
0
,
0
};
static
const
BYTE
secid10
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
':'
,
's'
,
'o'
,
'm'
,
'e'
,
'%'
,
'2'
,
'0'
,
'f'
,
'i'
,
'l'
,
'e'
,
'.'
,
'j'
,
'p'
,
'g'
,
3
,
0
,
0
,
0
};
static
const
BYTE
secid10_2
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
':'
,
's'
,
'o'
,
'm'
,
'e'
,
' '
,
'f'
,
'i'
,
'l'
,
'e'
,
'.'
,
'j'
,
'p'
,
'g'
,
3
,
0
,
0
,
0
};
static
struct
secmgr_test
{
LPCWSTR
url
;
...
...
@@ -733,7 +735,6 @@ static struct secmgr_test {
{
url1
,
0
,
S_OK
,
sizeof
(
secid1
),
secid1
,
S_OK
},
{
url2
,
100
,
0x80041001
,
0
,
NULL
,
E_INVALIDARG
},
{
url3
,
0
,
S_OK
,
sizeof
(
secid1
),
secid1
,
S_OK
},
{
url10
,
3
,
S_OK
,
sizeof
(
secid10
),
secid10
,
S_OK
},
{
url5
,
3
,
S_OK
,
sizeof
(
secid5
),
secid5
,
S_OK
},
{
url6
,
3
,
S_OK
,
sizeof
(
secid6
),
secid6
,
S_OK
},
{
url7
,
3
,
S_OK
,
sizeof
(
secid7
),
secid7
,
S_OK
}
...
...
@@ -781,6 +782,23 @@ static void test_SecurityManager(void)
}
zone
=
100
;
hres
=
IInternetSecurityManager_MapUrlToZone
(
secmgr
,
url10
,
&
zone
,
0
);
ok
(
hres
==
S_OK
,
"MapUrlToZone failed: %08x, expected S_OK
\n
"
,
hres
);
ok
(
zone
==
3
,
"zone=%d, expected 3
\n
"
,
zone
);
/* win2k3 translates %20 into a space */
size
=
sizeof
(
buf
);
memset
(
buf
,
0xf0
,
sizeof
(
buf
));
hres
=
IInternetSecurityManager_GetSecurityId
(
secmgr
,
url10
,
buf
,
&
size
,
0
);
ok
(
hres
==
S_OK
,
"GetSecurityId failed: %08x, expected S_OK
\n
"
,
hres
);
ok
(
size
==
sizeof
(
secid10
)
||
size
==
sizeof
(
secid10_2
),
/* win2k3 */
"size=%d, expected %d or %d
\n
"
,
size
,
sizeof
(
secid10
),
sizeof
(
secid10_2
));
ok
(
!
memcmp
(
buf
,
secid10
,
size
)
||
!
memcmp
(
buf
,
secid10_2
,
size
),
/* win2k3 */
"wrong secid
\n
"
);
zone
=
100
;
hres
=
IInternetSecurityManager_MapUrlToZone
(
secmgr
,
NULL
,
&
zone
,
0
);
ok
(
hres
==
E_INVALIDARG
,
"MapUrlToZone failed: %08x, expected E_INVALIDARG
\n
"
,
hres
);
ok
(
zone
==
100
||
zone
==
-
1
,
"zone=%d
\n
"
,
zone
);
...
...
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