advapi32/tests: Fix build with MSVC.

Thomas Faber thomas.faber at reactos.org
Tue Jun 13 08:54:25 CDT 2017


From: Hermès Bélusca-Maïto <hermes.belusca at sfr.fr>

Compound literals like "(GUID){0}" are a C99 feature and not supported
by VC2010.
-------------- next part --------------
From 5b180e1afb0b2199f97ee90e691c49304a40d135 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?=
 <hermes.belusca at sfr.fr>
Date: Tue, 13 Jun 2017 11:51:15 +0200
Subject: advapi32/tests: Fix build with MSVC.

Signed-off-by: Thomas Faber <thomas.faber at reactos.org>
---
 dlls/advapi32/tests/eventlog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/advapi32/tests/eventlog.c b/dlls/advapi32/tests/eventlog.c
index 838454e5b47..8c78dcf73f5 100644
--- a/dlls/advapi32/tests/eventlog.c
+++ b/dlls/advapi32/tests/eventlog.c
@@ -1209,7 +1209,7 @@ static void test_start_trace(void)
     ret = StartTraceA(&handle, sessionname, properties);
     todo_wine
     ok(ret == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %d\n", ret);
-    properties->Wnode.Guid = (GUID){0};
+    memset(&properties->Wnode.Guid, 0, sizeof(properties->Wnode.Guid));
 
     properties->LogFileNameOffset = 0;
     ret = StartTraceA(&handle, sessionname, properties);
-- 
2.12.2.windows.2



More information about the wine-patches mailing list