Signed-off-by: Michael Stefaniuc mstefani@winehq.org --- dlls/advapi32/service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index 846a2b8d456..8a1024ff803 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -179,12 +179,12 @@ EnumServicesStatusW( SC_HANDLE manager, DWORD type, DWORD state, ENUM_SERVICE_ST for (i = 0; i < *ret_count; i++) { lstrcpyW( p, status_ex[i].lpServiceName ); - status[i].lpServiceName = (WCHAR *)p; + status[i].lpServiceName = p; p += lstrlenW( p ) + 1; if (status_ex[i].lpDisplayName) { lstrcpyW( p, status_ex[i].lpDisplayName ); - status[i].lpDisplayName = (WCHAR *)p; + status[i].lpDisplayName = p; p += lstrlenW( p ) + 1; } else status[i].lpDisplayName = NULL;