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
38fa8576
Commit
38fa8576
authored
Jun 04, 2003
by
Jukka Heinonen
Committed by
Alexandre Julliard
Jun 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Timer routines must check for NULL timer name.
parent
4ea0b700
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sync.c
dlls/ntdll/sync.c
+4
-4
No files found.
dlls/ntdll/sync.c
View file @
38fa8576
...
...
@@ -297,6 +297,7 @@ NTSTATUS WINAPI NtCreateTimer(OUT HANDLE *handle,
IN
const
OBJECT_ATTRIBUTES
*
oa
OPTIONAL
,
IN
TIMER_TYPE
timer_type
)
{
DWORD
len
=
(
oa
&&
oa
->
ObjectName
)
?
oa
->
ObjectName
->
Length
:
0
;
NTSTATUS
status
;
if
(
timer_type
!=
NotificationTimer
&&
timer_type
!=
SynchronizationTimer
)
...
...
@@ -306,8 +307,7 @@ NTSTATUS WINAPI NtCreateTimer(OUT HANDLE *handle,
{
req
->
manual
=
(
timer_type
==
NotificationTimer
)
?
TRUE
:
FALSE
;
req
->
inherit
=
oa
&&
(
oa
->
Attributes
&
OBJ_INHERIT
);
if
(
oa
&&
oa
->
ObjectName
->
Length
)
wine_server_add_data
(
req
,
oa
->
ObjectName
->
Buffer
,
oa
->
ObjectName
->
Length
);
if
(
len
)
wine_server_add_data
(
req
,
oa
->
ObjectName
->
Buffer
,
len
);
status
=
wine_server_call
(
req
);
*
handle
=
reply
->
handle
;
}
...
...
@@ -324,6 +324,7 @@ NTSTATUS WINAPI NtOpenTimer(OUT PHANDLE handle,
IN
ACCESS_MASK
access
,
IN
const
OBJECT_ATTRIBUTES
*
oa
)
{
DWORD
len
=
(
oa
&&
oa
->
ObjectName
)
?
oa
->
ObjectName
->
Length
:
0
;
NTSTATUS
status
;
if
(
oa
&&
oa
->
Length
>=
MAX_PATH
*
sizeof
(
WCHAR
))
...
...
@@ -333,8 +334,7 @@ NTSTATUS WINAPI NtOpenTimer(OUT PHANDLE handle,
{
req
->
access
=
access
;
req
->
inherit
=
oa
&&
(
oa
->
Attributes
&
OBJ_INHERIT
);
if
(
oa
&&
oa
->
ObjectName
->
Length
)
wine_server_add_data
(
req
,
oa
->
ObjectName
->
Buffer
,
oa
->
ObjectName
->
Length
);
if
(
len
)
wine_server_add_data
(
req
,
oa
->
ObjectName
->
Buffer
,
len
);
status
=
wine_server_call
(
req
);
*
handle
=
reply
->
handle
;
}
...
...
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