mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 20:24:09 +00:00
guiddef.h: Use static const IID instance for __uuidof.
This commit is contained in:
parent
127b502ce7
commit
e6ad25fffe
|
@ -40,7 +40,8 @@ extern "C++" {
|
||||||
#define __CRT_UUID_DECL(type,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
|
#define __CRT_UUID_DECL(type,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
|
||||||
extern "C++" { \
|
extern "C++" { \
|
||||||
template<> inline const GUID &__wine_uuidof<type>() { \
|
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*>() { \
|
template<> inline const GUID &__wine_uuidof<type*>() { \
|
||||||
return __wine_uuidof<type>(); \
|
return __wine_uuidof<type>(); \
|
||||||
|
|
Loading…
Reference in a new issue