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
4b28f0f9
Commit
4b28f0f9
authored
Oct 21, 2003
by
Ferenc Wagner
Committed by
Alexandre Julliard
Oct 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Account for unique NT4 behaviour.
Better error message.
parent
53639990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
file.c
dlls/kernel/tests/file.c
+7
-7
No files found.
dlls/kernel/tests/file.c
View file @
4b28f0f9
...
...
@@ -195,6 +195,7 @@ static void test__lcreat( void )
char
buffer
[
10000
];
WIN32_FIND_DATAA
search_results
;
char
slashname
[]
=
"testfi/"
;
int
err
;
HANDLE
find
;
filehandle
=
_lcreat
(
filename
,
0
);
...
...
@@ -262,12 +263,11 @@ static void test__lcreat( void )
ok
(
DeleteFileA
(
filename
)
!=
0
,
"DeleteFile failed (%ld)"
,
GetLastError
(
)
);
filehandle
=
_lcreat
(
slashname
,
0
);
/* illegal name */
if
(
HFILE_ERROR
!=
filehandle
||
(
GetLastError
()
!=
ERROR_INVALID_NAME
&&
GetLastError
()
!=
ERROR_PATH_NOT_FOUND
))
{
todo_wine
{
ok
(
0
,
"creating file
\"
%s
\"
should fail with error 123 or 3, (err=%ld)"
,
slashname
,
GetLastError
());
}
if
(
HFILE_ERROR
==
filehandle
)
{
err
=
GetLastError
();
ok
(
err
==
ERROR_INVALID_NAME
||
err
==
ERROR_PATH_NOT_FOUND
,
"creating file
\"
%s
\"
failed with error %d"
,
slashname
,
err
);
}
else
{
/* only NT succeeds */
_lclose
(
filehandle
);
find
=
FindFirstFileA
(
slashname
,
&
search_results
);
if
(
INVALID_HANDLE_VALUE
==
find
)
...
...
@@ -906,7 +906,7 @@ void test_FindFirstFileA()
err
=
GetLastError
();
ok
(
handle
==
INVALID_HANDLE_VALUE
,
"FindFirstFile on Root directory should Fail"
);
if
(
handle
==
INVALID_HANDLE_VALUE
)
ok
(
err
==
ERROR_FILE_NOT_FOUND
,
"Bad Error number
\n
"
);
ok
(
err
==
ERROR_FILE_NOT_FOUND
,
"Bad Error number
%d
\n
"
,
err
);
handle
=
FindFirstFileA
(
"C:
\\
*"
,
&
search_results
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"FindFirstFile on C:
\\
* should succeed"
);
ok
(
FindClose
(
handle
)
==
TRUE
,
"Failed to close handle"
);
...
...
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