From dcef0bbf710626c6857594b8e2cbf4d1a10922cd Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Tue, 26 Jun 2007 20:55:01 +0200 Subject: [PATCH] advapi32/service: Return (more) correct needed buffersize. --- dlls/advapi32/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index 3319ca0fe73..09ab0deb4ee 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -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: