Alexandre Julliard : wevtapi: Use nameless unions/structs.
Module: wine Branch: master Commit: d75127d41acea6b3f1ff4fd59aab50e4507ffb3c URL: https://gitlab.winehq.org/wine/wine/-/commit/d75127d41acea6b3f1ff4fd59aab50e... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jul 17 11:34:29 2023 +0200 wevtapi: Use nameless unions/structs. --- dlls/wevtapi/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/wevtapi/main.c b/dlls/wevtapi/main.c index f0db41ebf88..cd8e7239178 100644 --- a/dlls/wevtapi/main.c +++ b/dlls/wevtapi/main.c @@ -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;
participants (1)
-
Alexandre Julliard