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
1cf4a1c0
Commit
1cf4a1c0
authored
Jul 15, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Create DOS drive links as permanent objects.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
088ababf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
volume.c
dlls/kernelbase/volume.c
+5
-8
No files found.
dlls/kernelbase/volume.c
View file @
1cf4a1c0
...
@@ -972,18 +972,13 @@ BOOL WINAPI DECLSPEC_HOTPATCH DefineDosDeviceW( DWORD flags, const WCHAR *device
...
@@ -972,18 +972,13 @@ BOOL WINAPI DECLSPEC_HOTPATCH DefineDosDeviceW( DWORD flags, const WCHAR *device
lstrcatW
(
link_name
,
device
);
lstrcatW
(
link_name
,
device
);
RtlInitUnicodeString
(
&
nt_name
,
link_name
);
RtlInitUnicodeString
(
&
nt_name
,
link_name
);
InitializeObjectAttributes
(
&
attr
,
&
nt_name
,
OBJ_CASE_INSENSITIVE
,
0
,
NULL
);
InitializeObjectAttributes
(
&
attr
,
&
nt_name
,
OBJ_CASE_INSENSITIVE
|
OBJ_PERMANENT
,
0
,
NULL
);
if
(
flags
&
DDD_REMOVE_DEFINITION
)
if
(
flags
&
DDD_REMOVE_DEFINITION
)
{
{
if
(
!
set_ntstatus
(
NtOpenSymbolicLinkObject
(
&
handle
,
0
,
&
attr
)
))
if
(
!
set_ntstatus
(
NtOpenSymbolicLinkObject
(
&
handle
,
0
,
&
attr
)
))
return
FALSE
;
return
FALSE
;
SERVER_START_REQ
(
unlink_object
)
status
=
NtMakeTemporaryObject
(
handle
);
{
req
->
handle
=
wine_server_obj_handle
(
handle
);
status
=
wine_server_call
(
req
);
}
SERVER_END_REQ
;
NtClose
(
handle
);
NtClose
(
handle
);
return
set_ntstatus
(
status
);
return
set_ntstatus
(
status
);
...
@@ -1000,7 +995,9 @@ BOOL WINAPI DECLSPEC_HOTPATCH DefineDosDeviceW( DWORD flags, const WCHAR *device
...
@@ -1000,7 +995,9 @@ BOOL WINAPI DECLSPEC_HOTPATCH DefineDosDeviceW( DWORD flags, const WCHAR *device
else
else
RtlInitUnicodeString
(
&
nt_target
,
target
);
RtlInitUnicodeString
(
&
nt_target
,
target
);
return
set_ntstatus
(
NtCreateSymbolicLinkObject
(
&
handle
,
SYMBOLIC_LINK_ALL_ACCESS
,
&
attr
,
&
nt_target
)
);
if
(
!
(
status
=
NtCreateSymbolicLinkObject
(
&
handle
,
SYMBOLIC_LINK_ALL_ACCESS
,
&
attr
,
&
nt_target
)))
NtClose
(
handle
);
return
set_ntstatus
(
status
);
}
}
...
...
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