Module: wine Branch: master Commit: e6ad25fffe1b7567048f948676dd1197fa6fc49d URL: http://source.winehq.org/git/wine.git/?a=commit;h=e6ad25fffe1b7567048f948676...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Jul 31 10:37:03 2012 +0200
guiddef.h: Use static const IID instance for __uuidof.
---
include/guiddef.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/include/guiddef.h b/include/guiddef.h index 26b1ad7..b7de1b1 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<type>() { \ - 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<type*>() { \ return __wine_uuidof<type>(); \