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
e50dc73b
Commit
e50dc73b
authored
Nov 04, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Preparation for -D__WINESRC__.
parent
b9e1bcb7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
20 deletions
+20
-20
misc.c
dlls/urlmon/tests/misc.c
+2
-2
protocol.c
dlls/urlmon/tests/protocol.c
+5
-5
sec_mgr.c
dlls/urlmon/tests/sec_mgr.c
+4
-4
url.c
dlls/urlmon/tests/url.c
+9
-9
No files found.
dlls/urlmon/tests/misc.c
View file @
e50dc73b
...
@@ -1783,7 +1783,7 @@ static void test_internet_features_registry(void) {
...
@@ -1783,7 +1783,7 @@ static void test_internet_features_registry(void) {
RegCloseKey
(
feature
);
RegCloseKey
(
feature
);
RegDeleteKeyA
(
feature_control
,
szFeatureBehaviorsKey
);
RegDeleteKeyA
(
feature_control
,
szFeatureBehaviorsKey
);
}
else
{
}
else
{
RegDeleteValue
(
feature
,
name
);
RegDeleteValue
A
(
feature
,
name
);
RegCloseKey
(
feature
);
RegCloseKey
(
feature
);
}
}
...
@@ -1905,7 +1905,7 @@ START_TEST(misc)
...
@@ -1905,7 +1905,7 @@ START_TEST(misc)
{
{
HMODULE
hurlmon
;
HMODULE
hurlmon
;
hurlmon
=
GetModuleHandle
(
"urlmon.dll"
);
hurlmon
=
GetModuleHandle
A
(
"urlmon.dll"
);
pCoInternetCompareUrl
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetCompareUrl"
);
pCoInternetCompareUrl
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetCompareUrl"
);
pCoInternetGetSecurityUrl
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetGetSecurityUrl"
);
pCoInternetGetSecurityUrl
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetGetSecurityUrl"
);
pCoInternetGetSession
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetGetSession"
);
pCoInternetGetSession
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetGetSession"
);
...
...
dlls/urlmon/tests/protocol.c
View file @
e50dc73b
...
@@ -3722,7 +3722,7 @@ START_TEST(protocol)
...
@@ -3722,7 +3722,7 @@ START_TEST(protocol)
{
{
HMODULE
hurlmon
;
HMODULE
hurlmon
;
hurlmon
=
GetModuleHandle
(
"urlmon.dll"
);
hurlmon
=
GetModuleHandle
A
(
"urlmon.dll"
);
pCoInternetGetSession
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetGetSession"
);
pCoInternetGetSession
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetGetSession"
);
pReleaseBindInfo
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"ReleaseBindInfo"
);
pReleaseBindInfo
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"ReleaseBindInfo"
);
pCreateUri
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CreateUri"
);
pCreateUri
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CreateUri"
);
...
@@ -3737,10 +3737,10 @@ START_TEST(protocol)
...
@@ -3737,10 +3737,10 @@ START_TEST(protocol)
OleInitialize
(
NULL
);
OleInitialize
(
NULL
);
event_complete
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
event_complete
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
event_complete2
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
event_complete2
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
event_continue
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
event_continue
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
event_continue_done
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
event_continue_done
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
thread_id
=
GetCurrentThreadId
();
thread_id
=
GetCurrentThreadId
();
test_file_protocol
();
test_file_protocol
();
...
...
dlls/urlmon/tests/sec_mgr.c
View file @
e50dc73b
...
@@ -514,7 +514,7 @@ static void test_url_action(IInternetSecurityManager *secmgr, IInternetZoneManag
...
@@ -514,7 +514,7 @@ static void test_url_action(IInternetSecurityManager *secmgr, IInternetZoneManag
return
;
return
;
}
}
wsprintf
(
buf
,
"%X"
,
action
);
wsprintf
A
(
buf
,
"%X"
,
action
);
size
=
sizeof
(
DWORD
);
size
=
sizeof
(
DWORD
);
res
=
RegQueryValueExA
(
hkey
,
buf
,
NULL
,
NULL
,
(
BYTE
*
)
&
reg_policy
,
&
size
);
res
=
RegQueryValueExA
(
hkey
,
buf
,
NULL
,
NULL
,
(
BYTE
*
)
&
reg_policy
,
&
size
);
RegCloseKey
(
hkey
);
RegCloseKey
(
hkey
);
...
@@ -843,7 +843,7 @@ static void run_child_process(void)
...
@@ -843,7 +843,7 @@ static void run_child_process(void)
char
path
[
MAX_PATH
];
char
path
[
MAX_PATH
];
char
**
argv
;
char
**
argv
;
PROCESS_INFORMATION
pi
;
PROCESS_INFORMATION
pi
;
STARTUPINFO
si
=
{
0
};
STARTUPINFO
A
si
=
{
0
};
BOOL
ret
;
BOOL
ret
;
GetModuleFileNameA
(
NULL
,
path
,
MAX_PATH
);
GetModuleFileNameA
(
NULL
,
path
,
MAX_PATH
);
...
@@ -851,7 +851,7 @@ static void run_child_process(void)
...
@@ -851,7 +851,7 @@ static void run_child_process(void)
si
.
cb
=
sizeof
(
si
);
si
.
cb
=
sizeof
(
si
);
winetest_get_mainargs
(
&
argv
);
winetest_get_mainargs
(
&
argv
);
sprintf
(
cmdline
,
"
\"
%s
\"
%s domain_tests"
,
argv
[
0
],
argv
[
1
]);
sprintf
(
cmdline
,
"
\"
%s
\"
%s domain_tests"
,
argv
[
0
],
argv
[
1
]);
ret
=
CreateProcess
(
argv
[
0
],
cmdline
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
si
,
&
pi
);
ret
=
CreateProcess
A
(
argv
[
0
],
cmdline
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
si
,
&
pi
);
ok
(
ret
,
"Failed to spawn child process: %u
\n
"
,
GetLastError
());
ok
(
ret
,
"Failed to spawn child process: %u
\n
"
,
GetLastError
());
winetest_wait_child_process
(
pi
.
hProcess
);
winetest_wait_child_process
(
pi
.
hProcess
);
CloseHandle
(
pi
.
hThread
);
CloseHandle
(
pi
.
hThread
);
...
@@ -1991,7 +1991,7 @@ START_TEST(sec_mgr)
...
@@ -1991,7 +1991,7 @@ START_TEST(sec_mgr)
int
argc
;
int
argc
;
char
**
argv
;
char
**
argv
;
hurlmon
=
GetModuleHandle
(
"urlmon.dll"
);
hurlmon
=
GetModuleHandle
A
(
"urlmon.dll"
);
pCoInternetCreateSecurityManager
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetCreateSecurityManager"
);
pCoInternetCreateSecurityManager
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetCreateSecurityManager"
);
pCoInternetCreateZoneManager
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetCreateZoneManager"
);
pCoInternetCreateZoneManager
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetCreateZoneManager"
);
pCoInternetGetSecurityUrl
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetGetSecurityUrl"
);
pCoInternetGetSecurityUrl
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CoInternetGetSecurityUrl"
);
...
...
dlls/urlmon/tests/url.c
View file @
e50dc73b
...
@@ -1977,9 +1977,9 @@ static HRESULT WINAPI statusclb_OnDataAvailable(IBindStatusCallbackEx *iface, DW
...
@@ -1977,9 +1977,9 @@ static HRESULT WINAPI statusclb_OnDataAvailable(IBindStatusCallbackEx *iface, DW
if
(
mime_type
[
0
])
{
if
(
mime_type
[
0
])
{
INT
ret
;
INT
ret
;
clipfmt
[
0
]
=
0
;
clipfmt
[
0
]
=
0
;
ret
=
GetClipboardFormatName
(
pformatetc
->
cfFormat
,
clipfmt
,
sizeof
(
clipfmt
)
-
1
);
ret
=
GetClipboardFormatName
A
(
pformatetc
->
cfFormat
,
clipfmt
,
sizeof
(
clipfmt
)
-
1
);
ok
(
ret
,
"GetClipboardFormatName failed, error %d
\n
"
,
GetLastError
());
ok
(
ret
,
"GetClipboardFormatName failed, error %d
\n
"
,
GetLastError
());
ok
(
!
l
strcmp
(
clipfmt
,
mime_type
),
"clipformat %x != mime_type,
\"
%s
\"
!=
\"
%s
\"\n
"
,
ok
(
!
strcmp
(
clipfmt
,
mime_type
),
"clipformat %x != mime_type,
\"
%s
\"
!=
\"
%s
\"\n
"
,
pformatetc
->
cfFormat
,
clipfmt
,
mime_type
);
pformatetc
->
cfFormat
,
clipfmt
,
mime_type
);
}
else
{
}
else
{
ok
(
pformatetc
->
cfFormat
==
0
,
"clipformat=%x
\n
"
,
pformatetc
->
cfFormat
);
ok
(
pformatetc
->
cfFormat
==
0
,
"clipformat=%x
\n
"
,
pformatetc
->
cfFormat
);
...
@@ -3053,9 +3053,9 @@ static void test_BindToStorage(int protocol, DWORD flags, DWORD t)
...
@@ -3053,9 +3053,9 @@ static void test_BindToStorage(int protocol, DWORD flags, DWORD t)
return
;
return
;
if
((
bindf
&
BINDF_ASYNCHRONOUS
)
&&
!
no_callback
)
{
if
((
bindf
&
BINDF_ASYNCHRONOUS
)
&&
!
no_callback
)
{
while
(
!
stopped_binding
&&
GetMessage
(
&
msg
,
NULL
,
0
,
0
))
{
while
(
!
stopped_binding
&&
GetMessage
A
(
&
msg
,
NULL
,
0
,
0
))
{
TranslateMessage
(
&
msg
);
TranslateMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
DispatchMessage
A
(
&
msg
);
}
}
}
}
...
@@ -3323,9 +3323,9 @@ static void test_BindToObject(int protocol, DWORD flags, HRESULT exhres)
...
@@ -3323,9 +3323,9 @@ static void test_BindToObject(int protocol, DWORD flags, HRESULT exhres)
IUnknown_Release
(
unk
);
IUnknown_Release
(
unk
);
while
((
bindf
&
BINDF_ASYNCHRONOUS
)
&&
while
((
bindf
&
BINDF_ASYNCHRONOUS
)
&&
!
((
!
emulate_protocol
||
stopped_binding
)
&&
stopped_obj_binding
)
&&
GetMessage
(
&
msg
,
NULL
,
0
,
0
))
{
!
((
!
emulate_protocol
||
stopped_binding
)
&&
stopped_obj_binding
)
&&
GetMessage
A
(
&
msg
,
NULL
,
0
,
0
))
{
TranslateMessage
(
&
msg
);
TranslateMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
DispatchMessage
A
(
&
msg
);
}
}
CLEAR_CALLED
(
QueryInterface_IBindStatusCallbackEx
);
CLEAR_CALLED
(
QueryInterface_IBindStatusCallbackEx
);
...
@@ -3835,7 +3835,7 @@ START_TEST(url)
...
@@ -3835,7 +3835,7 @@ START_TEST(url)
{
{
HMODULE
hurlmon
;
HMODULE
hurlmon
;
hurlmon
=
GetModuleHandle
(
"urlmon.dll"
);
hurlmon
=
GetModuleHandle
A
(
"urlmon.dll"
);
pCreateAsyncBindCtxEx
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CreateAsyncBindCtxEx"
);
pCreateAsyncBindCtxEx
=
(
void
*
)
GetProcAddress
(
hurlmon
,
"CreateAsyncBindCtxEx"
);
if
(
!
GetProcAddress
(
hurlmon
,
"CompareSecurityIds"
))
{
if
(
!
GetProcAddress
(
hurlmon
,
"CompareSecurityIds"
))
{
...
@@ -3847,8 +3847,8 @@ START_TEST(url)
...
@@ -3847,8 +3847,8 @@ START_TEST(url)
if
(
!
pCreateUri
)
if
(
!
pCreateUri
)
win_skip
(
"IUri not supported
\n
"
);
win_skip
(
"IUri not supported
\n
"
);
complete_event
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
complete_event
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
complete_event2
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
complete_event2
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
thread_id
=
GetCurrentThreadId
();
thread_id
=
GetCurrentThreadId
();
create_html_file
();
create_html_file
();
create_cache_file
();
create_cache_file
();
...
...
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