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
d71a6037
Commit
d71a6037
authored
Jan 28, 2009
by
Dan Kegel
Committed by
Alexandre Julliard
Jan 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedos: Get File Attributes must fail for files with names ending in slash.
parent
cdb0497d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
int21.c
dlls/winedos/int21.c
+8
-1
No files found.
dlls/winedos/int21.c
View file @
d71a6037
...
...
@@ -2028,12 +2028,19 @@ static BOOL INT21_FileAttributes( CONTEXT86 *context,
FILETIME
filetime
;
DWORD
result
;
WORD
date
,
time
;
int
len
;
switch
(
subfunction
)
{
case
0x00
:
/* GET FILE ATTRIBUTES */
TRACE
(
"GET FILE ATTRIBUTES for %s
\n
"
,
fileA
);
MultiByteToWideChar
(
CP_OEMCP
,
0
,
fileA
,
-
1
,
fileW
,
MAX_PATH
);
len
=
MultiByteToWideChar
(
CP_OEMCP
,
0
,
fileA
,
-
1
,
fileW
,
MAX_PATH
);
/* Winbench 96 Disk Test fails if we don't complain
* about a filename that ends in \
*/
if
(
!
len
||
(
fileW
[
len
-
1
]
==
'/'
)
||
(
fileW
[
len
-
1
]
==
'\\'
))
return
FALSE
;
result
=
GetFileAttributesW
(
fileW
);
if
(
result
==
INVALID_FILE_ATTRIBUTES
)
...
...
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