Commit 325f96b9 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

schedsvc: Fix NetrJobDel return value in case of invalid job id.

parent 31d20265
......@@ -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;
}
......
......@@ -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++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment