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
325f96b9
Commit
325f96b9
authored
Apr 25, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schedsvc: Fix NetrJobDel return value in case of invalid job id.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
31d20265
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
atsvc.c
dlls/schedsvc/atsvc.c
+2
-2
atsvcapi.c
dlls/schedsvc/tests/atsvcapi.c
+3
-0
No files found.
dlls/schedsvc/atsvc.c
View file @
325f96b9
...
...
@@ -589,7 +589,7 @@ DWORD __cdecl NetrJobAdd(ATSVC_HANDLE server_name, AT_INFO *info, DWORD *jobid)
DWORD
__cdecl
NetrJobDel
(
ATSVC_HANDLE
server_name
,
DWORD
min_jobid
,
DWORD
max_jobid
)
{
DWORD
jobid
,
ret
=
ERROR_FILE
_NOT_FOUND
;
DWORD
jobid
,
ret
=
APE_AT_ID
_NOT_FOUND
;
TRACE
(
"%s,%u,%u
\n
"
,
debugstr_w
(
server_name
),
min_jobid
,
max_jobid
);
...
...
@@ -602,7 +602,7 @@ DWORD __cdecl NetrJobDel(ATSVC_HANDLE server_name, DWORD min_jobid, DWORD max_jo
if
(
!
job
)
{
TRACE
(
"job %u not found
\n
"
,
jobid
);
ret
=
ERROR_FILE
_NOT_FOUND
;
ret
=
APE_AT_ID
_NOT_FOUND
;
break
;
}
...
...
dlls/schedsvc/tests/atsvcapi.c
View file @
325f96b9
...
...
@@ -108,6 +108,9 @@ START_TEST(atsvcapi)
ret
=
NetrJobGetInfo
(
server_name
,
0xdeadbeef
,
&
info2
);
ok
(
ret
==
APE_AT_ID_NOT_FOUND
||
broken
(
1
)
/* vista and w2008 return rubbish here */
,
"wrong error %u
\n
"
,
ret
);
ret
=
NetrJobDel
(
server_name
,
0xdeadbeef
,
0xdeadbeef
);
ok
(
ret
==
APE_AT_ID_NOT_FOUND
,
"wrong error %u
\n
"
,
ret
);
try_count
=
5
;
for
(
try
=
1
;
try
<=
try_count
;
try
++
)
...
...
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