wevtapi: Use nameless unions/structs.

This commit is contained in:
Alexandre Julliard 2023-07-17 11:34:29 +02:00
parent 8a2dca2563
commit d75127d41a

View file

@ -19,8 +19,6 @@
#include <stdarg.h>
#define NONAMELESSUNION
#include "windef.h"
#include "winbase.h"
#include "winevt.h"
@ -63,8 +61,8 @@ BOOL WINAPI EvtGetChannelConfigProperty(EVT_HANDLE ChannelConfig,
return FALSE;
}
PropertyValueBuffer->u.StringVal = (LPWSTR)(PropertyValueBuffer + 1);
wcscpy((LPWSTR)PropertyValueBuffer->u.StringVal, log_pathW);
PropertyValueBuffer->StringVal = (LPWSTR)(PropertyValueBuffer + 1);
wcscpy((LPWSTR)PropertyValueBuffer->StringVal, log_pathW);
PropertyValueBuffer->Type = EvtVarTypeString;
return TRUE;