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
74f583ed
Commit
74f583ed
authored
Apr 27, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DefineDosDeviceW: implemented the DDD_REMOVE_DEFINITION flag.
parent
11586214
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
volume.c
dlls/kernel/volume.c
+14
-1
No files found.
dlls/kernel/volume.c
View file @
74f583ed
...
...
@@ -936,6 +936,8 @@ BOOL WINAPI DefineDosDeviceW( DWORD flags, LPCWSTR devname, LPCWSTR targetpath )
BOOL
ret
=
FALSE
;
char
*
path
=
NULL
,
*
target
,
*
p
;
if
(
!
(
flags
&
DDD_REMOVE_DEFINITION
))
{
if
(
!
(
flags
&
DDD_RAW_TARGET_PATH
))
{
FIXME
(
"(0x%08lx,%s,%s) DDD_RAW_TARGET_PATH flag not set, not supported yet
\n
"
,
...
...
@@ -955,6 +957,8 @@ BOOL WINAPI DefineDosDeviceW( DWORD flags, LPCWSTR devname, LPCWSTR targetpath )
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
return
FALSE
;
}
}
else
target
=
NULL
;
/* first check for a DOS device */
...
...
@@ -974,13 +978,22 @@ BOOL WINAPI DefineDosDeviceW( DWORD flags, LPCWSTR devname, LPCWSTR targetpath )
if
(
path
)
{
if
(
target
)
{
TRACE
(
"creating symlink %s -> %s
\n
"
,
path
,
target
);
unlink
(
path
);
if
(
!
symlink
(
target
,
path
))
ret
=
TRUE
;
else
FILE_SetDosError
();
}
else
{
TRACE
(
"removing symlink %s
\n
"
,
path
);
if
(
!
unlink
(
path
))
ret
=
TRUE
;
else
FILE_SetDosError
();
}
HeapFree
(
GetProcessHeap
(),
0
,
path
);
}
HeapFree
(
GetProcessHeap
(),
0
,
target
);
if
(
target
)
HeapFree
(
GetProcessHeap
(),
0
,
target
);
return
ret
;
}
...
...
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