advapi32/service: Return (more) correct needed buffersize.

This commit is contained in:
Paul Vriens 2007-06-26 20:55:01 +02:00 committed by Alexandre Julliard
parent 169af787d2
commit dcef0bbf71
1 changed files with 1 additions and 1 deletions

View File

@ -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: