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
27a20044
Commit
27a20044
authored
Mar 26, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed GetDriveType16 return value for non-existent drives.
Fixed bug in OpenFile16 introduced by previous change.
parent
906be1dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
file16.c
dlls/kernel/file16.c
+3
-2
No files found.
dlls/kernel/file16.c
View file @
27a20044
...
...
@@ -123,7 +123,7 @@ HFILE16 WINAPI OpenFile16( LPCSTR name, OFSTRUCT *ofs, UINT16 mode )
HANDLE
handle
;
FILETIME
filetime
;
WORD
filedatetime
[
2
];
char
*
p
,
*
filename
;
c
onst
c
har
*
p
,
*
filename
;
if
(
!
ofs
)
return
HFILE_ERROR
;
...
...
@@ -183,7 +183,7 @@ HFILE16 WINAPI OpenFile16( LPCSTR name, OFSTRUCT *ofs, UINT16 mode )
{
/* If OF_SEARCH is set, ignore the given path */
filename
=
ofs
->
szPathN
ame
;
filename
=
n
ame
;
if
((
mode
&
OF_SEARCH
)
&&
!
(
mode
&
OF_REOPEN
))
{
/* First try the file name as is */
...
...
@@ -476,6 +476,7 @@ UINT16 WINAPI GetDriveType16( UINT16 drive ) /* [in] number (NOT letter) of driv
root
[
2
]
=
0
;
type
=
GetDriveTypeW
(
root
);
if
(
type
==
DRIVE_CDROM
)
type
=
DRIVE_REMOTE
;
else
if
(
type
==
DRIVE_NO_ROOT_DIR
)
type
=
DRIVE_UNKNOWN
;
return
type
;
}
...
...
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