advapi32/service: Return (more) correct needed buffersize.
This commit is contained in:
parent
169af787d2
commit
dcef0bbf71
|
@ -1815,7 +1815,7 @@ BOOL WINAPI QueryServiceConfigA( SC_HANDLE hService, LPQUERY_SERVICE_CONFIGA con
|
|||
MAP_STR( lpDisplayName );
|
||||
#undef MAP_STR
|
||||
|
||||
*needed = p - buffer;
|
||||
*needed = p - (LPSTR)config;
|
||||
ret = TRUE;
|
||||
|
||||
done:
|
||||
|
|
Loading…
Reference in New Issue