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
225c6d2c
Commit
225c6d2c
authored
Jun 17, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for non-existent directory in INT21_SetCurrentDirectory to
return a proper error when the directory is not on the current drive.
parent
1d9672ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
int21.c
dlls/winedos/int21.c
+8
-0
No files found.
dlls/winedos/int21.c
View file @
225c6d2c
...
...
@@ -790,6 +790,7 @@ static BOOL INT21_SetCurrentDirectory( CONTEXT86 *context )
{
WCHAR
dirW
[
MAX_PATH
];
WCHAR
env_var
[
4
];
DWORD
attr
;
char
*
dirA
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Edx
);
BYTE
drive
=
INT21_GetCurrentDrive
();
BOOL
result
;
...
...
@@ -799,6 +800,13 @@ static BOOL INT21_SetCurrentDirectory( CONTEXT86 *context )
MultiByteToWideChar
(
CP_OEMCP
,
0
,
dirA
,
-
1
,
dirW
,
MAX_PATH
);
if
(
!
GetFullPathNameW
(
dirW
,
MAX_PATH
,
dirW
,
NULL
))
return
FALSE
;
attr
=
GetFileAttributesW
(
dirW
);
if
(
attr
==
INVALID_FILE_ATTRIBUTES
||
!
(
attr
&
FILE_ATTRIBUTE_DIRECTORY
))
{
SetLastError
(
ERROR_PATH_NOT_FOUND
);
return
FALSE
;
}
env_var
[
0
]
=
'='
;
env_var
[
1
]
=
dirW
[
0
];
env_var
[
2
]
=
':'
;
...
...
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