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
e39a96c5
Commit
e39a96c5
authored
Feb 06, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fix zone tests.
parent
719bfaf4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
sec_mgr.c
dlls/urlmon/sec_mgr.c
+2
-0
misc.c
dlls/urlmon/tests/misc.c
+5
-1
No files found.
dlls/urlmon/sec_mgr.c
View file @
e39a96c5
...
@@ -68,6 +68,8 @@ static HRESULT map_url_to_zone(LPCWSTR url, DWORD *zone)
...
@@ -68,6 +68,8 @@ static HRESULT map_url_to_zone(LPCWSTR url, DWORD *zone)
'P'
,
'r'
,
'o'
,
't'
,
'o'
,
'c'
,
'o'
,
'l'
,
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
's'
,
0
};
'P'
,
'r'
,
'o'
,
't'
,
'o'
,
'c'
,
'o'
,
'l'
,
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
's'
,
0
};
static
const
WCHAR
wszFile
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
wszFile
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
0
};
*
zone
=
-
1
;
hres
=
CoInternetParseUrl
(
url
,
PARSE_SCHEMA
,
0
,
schema
,
sizeof
(
schema
)
/
sizeof
(
WCHAR
),
&
size
,
0
);
hres
=
CoInternetParseUrl
(
url
,
PARSE_SCHEMA
,
0
,
schema
,
sizeof
(
schema
)
/
sizeof
(
WCHAR
),
&
size
,
0
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
hres
;
return
hres
;
...
...
dlls/urlmon/tests/misc.c
View file @
e39a96c5
...
@@ -539,7 +539,7 @@ static void test_FindMimeFromData(void)
...
@@ -539,7 +539,7 @@ static void test_FindMimeFromData(void)
ok
(
!
lstrcmpW
(
mime
,
mime_tests
[
i
].
mime
),
"[%d] wrong mime
\n
"
,
i
);
ok
(
!
lstrcmpW
(
mime
,
mime_tests
[
i
].
mime
),
"[%d] wrong mime
\n
"
,
i
);
CoTaskMemFree
(
mime
);
CoTaskMemFree
(
mime
);
}
else
{
}
else
{
ok
(
hres
==
E_FAIL
,
"
FindMimeFromData failed: %08x, expected E_FAIL
\n
"
,
hres
);
ok
(
hres
==
E_FAIL
,
"
[%d] FindMimeFromData failed: %08x, expected E_FAIL
\n
"
,
i
,
hres
);
ok
(
mime
==
(
LPWSTR
)
0xf0f0f0f0
,
"[%d] mime != 0xf0f0f0f0
\n
"
,
i
);
ok
(
mime
==
(
LPWSTR
)
0xf0f0f0f0
,
"[%d] mime != 0xf0f0f0f0
\n
"
,
i
);
}
}
...
@@ -664,8 +664,11 @@ static void test_SecurityManager(void)
...
@@ -664,8 +664,11 @@ static void test_SecurityManager(void)
ok
(
hres
==
secmgr_tests
[
i
].
zone_hres
,
ok
(
hres
==
secmgr_tests
[
i
].
zone_hres
,
"[%d] MapUrlToZone failed: %08x, expected %08x
\n
"
,
"[%d] MapUrlToZone failed: %08x, expected %08x
\n
"
,
i
,
hres
,
secmgr_tests
[
i
].
zone_hres
);
i
,
hres
,
secmgr_tests
[
i
].
zone_hres
);
if
(
SUCCEEDED
(
hres
))
ok
(
zone
==
secmgr_tests
[
i
].
zone
,
"[%d] zone=%d, expected %d
\n
"
,
i
,
zone
,
ok
(
zone
==
secmgr_tests
[
i
].
zone
,
"[%d] zone=%d, expected %d
\n
"
,
i
,
zone
,
secmgr_tests
[
i
].
zone
);
secmgr_tests
[
i
].
zone
);
else
ok
(
zone
==
secmgr_tests
[
i
].
zone
||
zone
==
-
1
,
"[%d] zone=%d
\n
"
,
i
,
zone
);
size
=
sizeof
(
buf
);
size
=
sizeof
(
buf
);
memset
(
buf
,
0xf0
,
sizeof
(
buf
));
memset
(
buf
,
0xf0
,
sizeof
(
buf
));
...
@@ -684,6 +687,7 @@ static void test_SecurityManager(void)
...
@@ -684,6 +687,7 @@ static void test_SecurityManager(void)
zone
=
100
;
zone
=
100
;
hres
=
IInternetSecurityManager_MapUrlToZone
(
secmgr
,
NULL
,
&
zone
,
0
);
hres
=
IInternetSecurityManager_MapUrlToZone
(
secmgr
,
NULL
,
&
zone
,
0
);
ok
(
hres
==
E_INVALIDARG
,
"MapUrlToZone failed: %08x, expected E_INVALIDARG
\n
"
,
hres
);
ok
(
hres
==
E_INVALIDARG
,
"MapUrlToZone failed: %08x, expected E_INVALIDARG
\n
"
,
hres
);
ok
(
zone
==
100
,
"zone=%d
\n
"
,
zone
);
size
=
sizeof
(
buf
);
size
=
sizeof
(
buf
);
hres
=
IInternetSecurityManager_GetSecurityId
(
secmgr
,
NULL
,
buf
,
&
size
,
0
);
hres
=
IInternetSecurityManager_GetSecurityId
(
secmgr
,
NULL
,
buf
,
&
size
,
0
);
...
...
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