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
f28155de
Commit
f28155de
authored
Jun 04, 2004
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Jun 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In Win9x, {Create,Remove}Directory returns ERROR_PATH_NOT_FOUND when
given directories containing '*' or '?'.
parent
b395a0c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
directory.c
dlls/kernel/tests/directory.c
+10
-6
No files found.
dlls/kernel/tests/directory.c
View file @
f28155de
...
@@ -195,14 +195,16 @@ static void test_CreateDirectoryA(void)
...
@@ -195,14 +195,16 @@ static void test_CreateDirectoryA(void)
lstrcatA
(
tmpdir
,
"?"
);
lstrcatA
(
tmpdir
,
"?"
);
ret
=
CreateDirectoryA
(
tmpdir
,
NULL
);
ret
=
CreateDirectoryA
(
tmpdir
,
NULL
);
ok
(
ret
==
FALSE
&&
GetLastError
()
==
ERROR_INVALID_NAME
,
ok
(
ret
==
FALSE
&&
(
GetLastError
()
==
ERROR_INVALID_NAME
||
GetLastError
()
==
ERROR_PATH_NOT_FOUND
),
"CreateDirectoryA with ? wildcard name should fail, ret=%s error=%ld
\n
"
,
"CreateDirectoryA with ? wildcard name should fail, ret=%s error=%ld
\n
"
,
ret
?
" True"
:
"False"
,
GetLastError
());
ret
?
" True"
:
"False"
,
GetLastError
());
ret
=
RemoveDirectoryA
(
tmpdir
);
ret
=
RemoveDirectoryA
(
tmpdir
);
tmpdir
[
lstrlenA
(
tmpdir
)
-
1
]
=
'*'
;
tmpdir
[
lstrlenA
(
tmpdir
)
-
1
]
=
'*'
;
ret
=
CreateDirectoryA
(
tmpdir
,
NULL
);
ret
=
CreateDirectoryA
(
tmpdir
,
NULL
);
ok
(
ret
==
FALSE
&&
GetLastError
()
==
ERROR_INVALID_NAME
,
ok
(
ret
==
FALSE
&&
(
GetLastError
()
==
ERROR_INVALID_NAME
||
GetLastError
()
==
ERROR_PATH_NOT_FOUND
),
"CreateDirectoryA with * wildcard name should fail, ret=%s error=%ld
\n
"
,
"CreateDirectoryA with * wildcard name should fail, ret=%s error=%ld
\n
"
,
ret
?
" True"
:
"False"
,
GetLastError
());
ret
?
" True"
:
"False"
,
GetLastError
());
ret
=
RemoveDirectoryA
(
tmpdir
);
ret
=
RemoveDirectoryA
(
tmpdir
);
...
@@ -284,14 +286,16 @@ static void test_RemoveDirectoryA(void)
...
@@ -284,14 +286,16 @@ static void test_RemoveDirectoryA(void)
lstrcatA
(
tmpdir
,
"?"
);
lstrcatA
(
tmpdir
,
"?"
);
ret
=
RemoveDirectoryA
(
tmpdir
);
ret
=
RemoveDirectoryA
(
tmpdir
);
ok
(
ret
==
FALSE
&&
GetLastError
()
==
ERROR_INVALID_NAME
,
ok
(
ret
==
FALSE
&&
(
GetLastError
()
==
ERROR_INVALID_NAME
||
"RemoveDirectoryA with ? wildcard name should fail with error 183, ret=%s error=%ld
\n
"
,
GetLastError
()
==
ERROR_PATH_NOT_FOUND
),
"RemoveDirectoryA with ? wildcard name should fail, ret=%s error=%ld
\n
"
,
ret
?
" True"
:
"False"
,
GetLastError
());
ret
?
" True"
:
"False"
,
GetLastError
());
tmpdir
[
lstrlenA
(
tmpdir
)
-
1
]
=
'*'
;
tmpdir
[
lstrlenA
(
tmpdir
)
-
1
]
=
'*'
;
ret
=
RemoveDirectoryA
(
tmpdir
);
ret
=
RemoveDirectoryA
(
tmpdir
);
ok
(
ret
==
FALSE
&&
GetLastError
()
==
ERROR_INVALID_NAME
,
ok
(
ret
==
FALSE
&&
(
GetLastError
()
==
ERROR_INVALID_NAME
||
"RemoveDirectoryA with * wildcard name should fail with error 183, ret=%s error=%ld
\n
"
,
GetLastError
()
==
ERROR_PATH_NOT_FOUND
),
"RemoveDirectoryA with * wildcard name should fail, ret=%s error=%ld
\n
"
,
ret
?
" True"
:
"False"
,
GetLastError
());
ret
?
" True"
:
"False"
,
GetLastError
());
}
}
...
...
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