mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
wininet: Always create a URL cache entry.
This commit is contained in:
parent
53b1e8909f
commit
70454967f9
@ -3807,8 +3807,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
|
||||
}
|
||||
while (loop_next);
|
||||
|
||||
/* FIXME: Better check, when we have to create the cache file */
|
||||
if(bSuccess && (lpwhr->hdr.dwFlags & INTERNET_FLAG_NEED_FILE)) {
|
||||
if(bSuccess) {
|
||||
WCHAR url[INTERNET_MAX_URL_LENGTH];
|
||||
WCHAR cacheFileName[MAX_PATH+1];
|
||||
BOOL b;
|
||||
|
@ -1163,11 +1163,11 @@ static void test_http_cache(void)
|
||||
|
||||
size = sizeof(file_name);
|
||||
ret = InternetQueryOptionA(request, INTERNET_OPTION_DATAFILE_NAME, file_name, &size);
|
||||
todo_wine ok(ret, "InternetQueryOptionA(INTERNET_OPTION_DATAFILE_NAME) failed %u\n", GetLastError());
|
||||
ok(ret, "InternetQueryOptionA(INTERNET_OPTION_DATAFILE_NAME) failed %u\n", GetLastError());
|
||||
|
||||
file = CreateFile(file_name, GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
|
||||
FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
todo_wine ok(file != INVALID_HANDLE_VALUE, "Could not create file: %u\n", GetLastError());
|
||||
ok(file != INVALID_HANDLE_VALUE, "Could not create file: %u\n", GetLastError());
|
||||
CloseHandle(file);
|
||||
|
||||
ok(InternetCloseHandle(request), "Close request handle failed\n");
|
||||
|
Loading…
Reference in New Issue
Block a user