From e6ad25fffe1b7567048f948676dd1197fa6fc49d Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 31 Jul 2012 10:37:03 +0200 Subject: [PATCH] guiddef.h: Use static const IID instance for __uuidof. --- include/guiddef.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/guiddef.h b/include/guiddef.h index 26b1ad7b3af..b7de1b19760 100644 --- a/include/guiddef.h +++ b/include/guiddef.h @@ -40,7 +40,8 @@ extern "C++" { #define __CRT_UUID_DECL(type,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ extern "C++" { \ template<> inline const GUID &__wine_uuidof() { \ - return (const IID){l,w1,w2, {b1,b2,b3,b4,b5,b6,b7,b8}}; \ + static const IID __uuid_inst = {l,w1,w2, {b1,b2,b3,b4,b5,b6,b7,b8}}; \ + return __uuid_inst; \ } \ template<> inline const GUID &__wine_uuidof() { \ return __wine_uuidof(); \ -- 2.11.4.GIT