advapi32: Remove superfluous cast to self.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2020-09-22 20:52:39 +02:00 committed by Alexandre Julliard
parent 2e408a6be5
commit d6c4efec1a
1 changed files with 2 additions and 2 deletions

View File

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