mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 12:18:13 +00:00
Better stub for QueryServiceConfigW
svn path=/trunk/; revision=19036
This commit is contained in:
parent
e42173c8fd
commit
301aa7523d
|
@ -909,8 +909,17 @@ QueryServiceConfigW(
|
||||||
LPDWORD pcbBytesNeeded)
|
LPDWORD pcbBytesNeeded)
|
||||||
{
|
{
|
||||||
DPRINT1("QueryServiceConfigW is unimplemented\n");
|
DPRINT1("QueryServiceConfigW is unimplemented\n");
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
if (lpServiceConfig && cbBufSize >= sizeof(QUERY_SERVICE_CONFIGW))
|
||||||
return FALSE;
|
{
|
||||||
|
memset(lpServiceConfig, 0, *pcbBytesNeeded);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*pcbBytesNeeded = sizeof(QUERY_SERVICE_CONFIGW);
|
||||||
|
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue