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
a4ef56e1
Commit
a4ef56e1
authored
Mar 11, 2024
by
Jinoh Kang
Committed by
Alexandre Julliard
Mar 20, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Check for DELETE access in NtMakeTemporaryObject().
parent
0b472874
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
om.c
dlls/ntdll/tests/om.c
+0
-1
handle.c
server/handle.c
+2
-1
No files found.
dlls/ntdll/tests/om.c
View file @
a4ef56e1
...
...
@@ -3321,7 +3321,6 @@ static void test_object_permanence(void)
ok
(
!!
(
obi
.
GrantedAccess
&
DELETE
),
"expected DELETE access in %08lx
\n
"
,
obi
.
GrantedAccess
);
status
=
NtMakeTemporaryObject
(
handle
);
todo_wine_if
(
test
->
make_temp_status
==
STATUS_ACCESS_DENIED
)
ok
(
status
==
test
->
make_temp_status
,
"NtMakeTemporaryObject returned %08lx
\n
"
,
status
);
if
(
!
NT_ERROR
(
status
))
is_permanent
=
FALSE
;
}
...
...
server/handle.c
View file @
a4ef56e1
...
...
@@ -887,9 +887,10 @@ DECL_HANDLER(get_system_handles)
DECL_HANDLER
(
set_object_permanence
)
{
const
unsigned
int
access
=
req
->
permanent
?
0
:
DELETE
;
struct
object
*
obj
;
if
(
!
(
obj
=
get_handle_obj
(
current
->
process
,
req
->
handle
,
0
,
NULL
)))
return
;
if
(
!
(
obj
=
get_handle_obj
(
current
->
process
,
req
->
handle
,
access
,
NULL
)))
return
;
if
(
req
->
permanent
&&
!
obj
->
is_permanent
)
{
...
...
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