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
a28433a2
Commit
a28433a2
authored
Jan 27, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Fix test failures on Win98/WinMe by using more A-functions.
parent
ad52ae67
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
internet.c
dlls/wininet/tests/internet.c
+18
-11
No files found.
dlls/wininet/tests/internet.c
View file @
a28433a2
...
@@ -40,6 +40,16 @@ static BOOL (WINAPI *pIsDomainLegalCookieDomainW)(LPCWSTR, LPCWSTR);
...
@@ -40,6 +40,16 @@ static BOOL (WINAPI *pIsDomainLegalCookieDomainW)(LPCWSTR, LPCWSTR);
static
DWORD
(
WINAPI
*
pPrivacyGetZonePreferenceW
)(
DWORD
,
DWORD
,
LPDWORD
,
LPWSTR
,
LPDWORD
);
static
DWORD
(
WINAPI
*
pPrivacyGetZonePreferenceW
)(
DWORD
,
DWORD
,
LPDWORD
,
LPWSTR
,
LPDWORD
);
static
DWORD
(
WINAPI
*
pPrivacySetZonePreferenceW
)(
DWORD
,
DWORD
,
DWORD
,
LPCWSTR
);
static
DWORD
(
WINAPI
*
pPrivacySetZonePreferenceW
)(
DWORD
,
DWORD
,
DWORD
,
LPCWSTR
);
/* Win9x and WinMe don't have lstrcmpW */
static
int
strcmp_ww
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
)
{
DWORD
len1
=
lstrlenW
(
str1
);
DWORD
len2
=
lstrlenW
(
str2
);
if
(
len1
!=
len2
)
return
1
;
return
memcmp
(
str1
,
str2
,
len1
*
sizeof
(
WCHAR
));
}
/* ############################### */
/* ############################### */
static
void
test_InternetCanonicalizeUrlA
(
void
)
static
void
test_InternetCanonicalizeUrlA
(
void
)
...
@@ -466,7 +476,7 @@ static void test_null(void)
...
@@ -466,7 +476,7 @@ static void test_null(void)
ok
(
sz
==
1
+
lstrlenW
(
buffer
)
||
sz
==
lstrlenW
(
buffer
),
"sz wrong %d
\n
"
,
sz
);
ok
(
sz
==
1
+
lstrlenW
(
buffer
)
||
sz
==
lstrlenW
(
buffer
),
"sz wrong %d
\n
"
,
sz
);
/* before XP SP2, buffer is "server; server" */
/* before XP SP2, buffer is "server; server" */
ok
(
!
lstrcmpW
(
szExpect
,
buffer
)
||
!
lstrcmpW
(
szServer
,
buffer
),
"cookie data wrong
\n
"
);
ok
(
!
strcmp_ww
(
szExpect
,
buffer
)
||
!
strcmp_ww
(
szServer
,
buffer
),
"cookie data wrong
\n
"
);
sz
=
sizeof
(
buffer
);
sz
=
sizeof
(
buffer
);
r
=
InternetQueryOptionA
(
NULL
,
INTERNET_OPTION_CONNECTED_STATE
,
buffer
,
&
sz
);
r
=
InternetQueryOptionA
(
NULL
,
INTERNET_OPTION_CONNECTED_STATE
,
buffer
,
&
sz
);
...
@@ -855,17 +865,14 @@ static void r_verifyProxyEnable(LONG l, DWORD exp)
...
@@ -855,17 +865,14 @@ static void r_verifyProxyEnable(LONG l, DWORD exp)
HKEY
hkey
;
HKEY
hkey
;
DWORD
type
,
val
,
size
=
sizeof
(
DWORD
);
DWORD
type
,
val
,
size
=
sizeof
(
DWORD
);
LONG
ret
;
LONG
ret
;
static
const
WCHAR
szInternetSettings
[]
=
static
const
CHAR
szInternetSettings
[]
=
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Internet Settings"
;
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
static
const
CHAR
szProxyEnable
[]
=
"ProxyEnable"
;
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'\\'
,
'I'
,
'n'
,
't'
,
'e'
,
'r'
,
'n'
,
'e'
,
't'
,
' '
,
'S'
,
'e'
,
't'
,
't'
,
'i'
,
'n'
,
'g'
,
's'
,
0
};
static
const
WCHAR
szProxyEnable
[]
=
{
'P'
,
'r'
,
'o'
,
'x'
,
'y'
,
'E'
,
'n'
,
'a'
,
'b'
,
'l'
,
'e'
,
0
};
ret
=
RegOpenKey
W
(
HKEY_CURRENT_USER
,
szInternetSettings
,
&
hkey
);
ret
=
RegOpenKey
A
(
HKEY_CURRENT_USER
,
szInternetSettings
,
&
hkey
);
ok_
(
__FILE__
,
l
)
(
!
ret
,
"RegOpenKey
W
failed: 0x%08x
\n
"
,
ret
);
ok_
(
__FILE__
,
l
)
(
!
ret
,
"RegOpenKey
A
failed: 0x%08x
\n
"
,
ret
);
ret
=
RegQueryValueEx
W
(
hkey
,
szProxyEnable
,
0
,
&
type
,
(
BYTE
*
)
&
val
,
&
size
);
ret
=
RegQueryValueEx
A
(
hkey
,
szProxyEnable
,
0
,
&
type
,
(
BYTE
*
)
&
val
,
&
size
);
ok_
(
__FILE__
,
l
)
(
!
ret
,
"RegQueryValueEx
W
failed: 0x%08x
\n
"
,
ret
);
ok_
(
__FILE__
,
l
)
(
!
ret
,
"RegQueryValueEx
A
failed: 0x%08x
\n
"
,
ret
);
ok_
(
__FILE__
,
l
)
(
type
==
REG_DWORD
,
"Expected regtype to be REG_DWORD, was: %d
\n
"
,
type
);
ok_
(
__FILE__
,
l
)
(
type
==
REG_DWORD
,
"Expected regtype to be REG_DWORD, was: %d
\n
"
,
type
);
ok_
(
__FILE__
,
l
)
(
val
==
exp
,
"Expected ProxyEnabled to be %d, got: %d
\n
"
,
exp
,
val
);
ok_
(
__FILE__
,
l
)
(
val
==
exp
,
"Expected ProxyEnabled to be %d, got: %d
\n
"
,
exp
,
val
);
...
@@ -919,7 +926,7 @@ static void test_Option_PerConnectionOption(void)
...
@@ -919,7 +926,7 @@ static void test_Option_PerConnectionOption(void)
ret
=
InternetQueryOptionW
(
NULL
,
INTERNET_OPTION_PER_CONNECTION_OPTION
,
ret
=
InternetQueryOptionW
(
NULL
,
INTERNET_OPTION_PER_CONNECTION_OPTION
,
&
list
,
&
size
);
&
list
,
&
size
);
ok
(
ret
==
TRUE
,
"InternetQueryOption should've succeeded
\n
"
);
ok
(
ret
==
TRUE
,
"InternetQueryOption should've succeeded
\n
"
);
ok
(
!
lstrcmpW
(
list
.
pOptions
[
0
].
Value
.
pszValue
,
proxy_srvW
),
ok
(
!
strcmp_ww
(
list
.
pOptions
[
0
].
Value
.
pszValue
,
proxy_srvW
),
"Retrieved proxy server should've been %s, was: %s
\n
"
,
"Retrieved proxy server should've been %s, was: %s
\n
"
,
wine_dbgstr_w
(
proxy_srvW
),
wine_dbgstr_w
(
list
.
pOptions
[
0
].
Value
.
pszValue
));
wine_dbgstr_w
(
proxy_srvW
),
wine_dbgstr_w
(
list
.
pOptions
[
0
].
Value
.
pszValue
));
ok
(
list
.
pOptions
[
1
].
Value
.
dwValue
==
PROXY_TYPE_PROXY
,
ok
(
list
.
pOptions
[
1
].
Value
.
dwValue
==
PROXY_TYPE_PROXY
,
...
...
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