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
af0ede42
Commit
af0ede42
authored
Apr 10, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schedsvc/tests: Add a test for NULL task name passed to SchRpcRegisterTask.
parent
ea248186
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
schedsvc.c
dlls/schedsvc/schedsvc.c
+6
-0
Makefile.in
dlls/schedsvc/tests/Makefile.in
+1
-1
rpcapi.c
dlls/schedsvc/tests/rpcapi.c
+16
-0
No files found.
dlls/schedsvc/schedsvc.c
View file @
af0ede42
...
...
@@ -180,6 +180,12 @@ HRESULT __cdecl SchRpcRegisterTask(const WCHAR *path, const WCHAR *xml, DWORD fl
/* FIXME: assume that validation is performed on the client side */
if
(
flags
&
TASK_VALIDATE_ONLY
)
return
S_OK
;
if
(
!
path
)
{
FIXME
(
"NULL name is not supported
\n
"
);
return
E_INVALIDARG
;
}
full_name
=
get_full_name
(
path
,
&
relative_path
);
if
(
!
full_name
)
return
E_OUTOFMEMORY
;
...
...
dlls/schedsvc/tests/Makefile.in
View file @
af0ede42
TESTDLL
=
schedsvc.dll
IMPORTS
=
rpcrt4
IMPORTS
=
rpcrt4
ole32
C_SRCS
=
\
rpcapi.c
...
...
dlls/schedsvc/tests/rpcapi.c
View file @
af0ede42
...
...
@@ -99,6 +99,7 @@ START_TEST(rpcapi)
TASK_NAMES
names
;
unsigned
char
*
binding_str
;
PTOP_LEVEL_EXCEPTION_FILTER
old_exception_filter
;
IID
iid
;
hr
=
RpcStringBindingComposeA
(
NULL
,
ncalrpc
,
NULL
,
NULL
,
NULL
,
&
binding_str
);
ok
(
hr
==
RPC_S_OK
,
"RpcStringBindingCompose error %#x
\n
"
,
hr
);
...
...
@@ -517,6 +518,21 @@ todo_wine
hr
=
SchRpcDelete
(
Wine
,
0
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
path
=
NULL
;
info
=
NULL
;
hr
=
SchRpcRegisterTask
(
NULL
,
xmlW
,
TASK_CREATE
,
NULL
,
TASK_LOGON_NONE
,
0
,
NULL
,
&
path
,
&
info
);
todo_wine
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
ok
(
!
info
,
"expected NULL, info %p
\n
"
,
info
);
if
(
hr
==
S_OK
)
{
hr
=
IIDFromString
(
path
,
&
iid
);
ok
(
hr
==
S_OK
,
"IIDFromString(%s) error %#x
\n
"
,
wine_dbgstr_w
(
path
),
hr
);
hr
=
SchRpcDelete
(
path
,
0
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
MIDL_user_free
(
path
);
}
hr
=
RpcBindingFree
(
&
rpc_handle
);
ok
(
hr
==
RPC_S_OK
,
"RpcBindingFree error %#x
\n
"
,
hr
);
}
...
...
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