mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
Better stub for QueryServiceConfigW
svn path=/trunk/; revision=19036
This commit is contained in:
@@ -909,8 +909,17 @@ QueryServiceConfigW(
|
||||
LPDWORD pcbBytesNeeded)
|
||||
{
|
||||
DPRINT1("QueryServiceConfigW is unimplemented\n");
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return FALSE;
|
||||
if (lpServiceConfig && cbBufSize >= sizeof(QUERY_SERVICE_CONFIGW))
|
||||
{
|
||||
memset(lpServiceConfig, 0, *pcbBytesNeeded);
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
*pcbBytesNeeded = sizeof(QUERY_SERVICE_CONFIGW);
|
||||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user