diff --git a/include/guiddef.h b/include/guiddef.h index 26b1ad7..37a7773 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 __iid = {l,w1,w2, {b1,b2,b3,b4,b5,b6,b7,b8}}; \ + return __iid; \ } \ template<> inline const GUID &__wine_uuidof() { \ return __wine_uuidof(); \