Commit e50dc73b authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

urlmon/tests: Preparation for -D__WINESRC__.

parent b9e1bcb7
...@@ -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); RegDeleteValueA(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 = GetModuleHandleA("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");
......
...@@ -3722,7 +3722,7 @@ START_TEST(protocol) ...@@ -3722,7 +3722,7 @@ START_TEST(protocol)
{ {
HMODULE hurlmon; HMODULE hurlmon;
hurlmon = GetModuleHandle("urlmon.dll"); hurlmon = GetModuleHandleA("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 = CreateEventW(NULL, FALSE, FALSE, NULL);
event_complete2 = CreateEvent(NULL, FALSE, FALSE, NULL); event_complete2 = CreateEventW(NULL, FALSE, FALSE, NULL);
event_continue = CreateEvent(NULL, FALSE, FALSE, NULL); event_continue = CreateEventW(NULL, FALSE, FALSE, NULL);
event_continue_done = CreateEvent(NULL, FALSE, FALSE, NULL); event_continue_done = CreateEventW(NULL, FALSE, FALSE, NULL);
thread_id = GetCurrentThreadId(); thread_id = GetCurrentThreadId();
test_file_protocol(); test_file_protocol();
......
...@@ -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); wsprintfA(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 }; STARTUPINFOA 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 = CreateProcessA(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 = GetModuleHandleA("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");
......
...@@ -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 = GetClipboardFormatNameA(pformatetc->cfFormat, clipfmt, sizeof(clipfmt)-1);
ok(ret, "GetClipboardFormatName failed, error %d\n", GetLastError()); ok(ret, "GetClipboardFormatName failed, error %d\n", GetLastError());
ok(!lstrcmp(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 && GetMessageA(&msg,NULL,0,0)) {
TranslateMessage(&msg); TranslateMessage(&msg);
DispatchMessage(&msg); DispatchMessageA(&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) && GetMessageA(&msg,NULL,0,0)) {
TranslateMessage(&msg); TranslateMessage(&msg);
DispatchMessage(&msg); DispatchMessageA(&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 = GetModuleHandleA("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 = CreateEventW(NULL, FALSE, FALSE, NULL);
complete_event2 = CreateEvent(NULL, FALSE, FALSE, NULL); complete_event2 = CreateEventW(NULL, FALSE, FALSE, NULL);
thread_id = GetCurrentThreadId(); thread_id = GetCurrentThreadId();
create_html_file(); create_html_file();
create_cache_file(); create_cache_file();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment