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
6704cd80
Commit
6704cd80
authored
Sep 19, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Fix test failures on Win9x/WinMe by using more A-functions.
parent
ccaeb3ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
url.c
dlls/urlmon/tests/url.c
+10
-7
No files found.
dlls/urlmon/tests/url.c
View file @
6704cd80
...
...
@@ -176,7 +176,7 @@ static const WCHAR wszIndexHtml[] = {'i','n','d','e','x','.','h','t','m','l',0};
static
const
WCHAR
cache_fileW
[]
=
{
'c'
,
':'
,
'\\'
,
'c'
,
'a'
,
'c'
,
'h'
,
'e'
,
'.'
,
'h'
,
't'
,
'm'
,
0
};
static
const
CHAR
dwl_htmlA
[]
=
"dwl.html"
;
static
const
WCHAR
dwl_htmlW
[]
=
{
'd'
,
'w'
,
'l'
,
'.'
,
'h'
,
't'
,
'm'
,
'l'
,
0
};
static
const
WCHAR
test_txtW
[]
=
{
't'
,
'e'
,
's'
,
't'
,
'.'
,
't'
,
'x'
,
't'
,
0
}
;
static
const
CHAR
test_txtA
[]
=
"test.txt"
;
static
const
WCHAR
emptyW
[]
=
{
0
};
static
BOOL
stopped_binding
=
FALSE
,
stopped_obj_binding
=
FALSE
,
emulate_protocol
=
FALSE
,
...
...
@@ -2831,11 +2831,11 @@ static void create_file(void)
static
void
create_cache_file
(
void
)
{
char
buf
[
6500
];
char
buf
[
6500
]
,
curdir
[
MAX_PATH
]
;
HANDLE
file
;
DWORD
size
;
file
=
CreateFile
W
(
test_txtW
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
file
=
CreateFile
A
(
test_txtA
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"CreateFile failed
\n
"
);
if
(
file
==
INVALID_HANDLE_VALUE
)
...
...
@@ -2845,9 +2845,12 @@ static void create_cache_file(void)
WriteFile
(
file
,
buf
,
sizeof
(
buf
),
&
size
,
NULL
);
CloseHandle
(
file
);
size
=
GetCurrentDirectoryW
(
MAX_PATH
,
cache_file_name
);
cache_file_name
[
size
]
=
'\\'
;
memcpy
(
cache_file_name
+
size
+
1
,
test_txtW
,
sizeof
(
test_txtW
));
memset
(
curdir
,
0
,
sizeof
(
curdir
));
GetCurrentDirectoryA
(
MAX_PATH
,
curdir
);
lstrcatA
(
curdir
,
"
\\
"
);
lstrcatA
(
curdir
,
test_txtA
);
MultiByteToWideChar
(
CP_ACP
,
0
,
curdir
,
-
1
,
cache_file_name
,
MAX_PATH
);
}
static
void
test_ReportResult
(
HRESULT
exhres
)
...
...
@@ -3114,7 +3117,7 @@ START_TEST(url)
}
DeleteFileA
(
wszIndexHtmlA
);
DeleteFile
W
(
test_txtW
);
DeleteFile
A
(
test_txtA
);
CloseHandle
(
complete_event
);
CloseHandle
(
complete_event2
);
CoUninitialize
();
...
...
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