mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 15:05:54 +00:00
[advapi32]
return the required buffer size in case a temp buffer is used fixes services tab in msconfig svn path=/trunk/; revision=59085
This commit is contained in:
parent
c57a3c88a0
commit
d15cea5934
1 changed files with 2 additions and 0 deletions
|
@ -2123,6 +2123,7 @@ QueryServiceConfig2A(SC_HANDLE hService,
|
|||
if (bUseTempBuffer == TRUE)
|
||||
{
|
||||
TRACE("RQueryServiceConfig2A() returns ERROR_INSUFFICIENT_BUFFER\n");
|
||||
*pcbBytesNeeded = dwBufferSize;
|
||||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -2240,6 +2241,7 @@ QueryServiceConfig2W(SC_HANDLE hService,
|
|||
if (bUseTempBuffer == TRUE)
|
||||
{
|
||||
TRACE("RQueryServiceConfig2W() returns ERROR_INSUFFICIENT_BUFFER\n");
|
||||
*pcbBytesNeeded = dwBufferSize;
|
||||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue