mirror of
https://github.com/wine-mirror/wine
synced 2024-07-08 20:06:18 +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) \
|
||||
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>(); \
|
||||
|
|
Loading…
Reference in New Issue
Block a user