diff options
author | George Hazan <george.hazan@gmail.com> | 2015-09-10 13:46:01 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-09-10 13:46:01 +0000 |
commit | 9e585c126abc93e335aa30e7393325e8e418449a (patch) | |
tree | d7cb37f2b30c8b005bc7d320ef03f362492a48e2 /protocols/Tox/src/stdafx.h | |
parent | 9cbcc4a1234b3ad61110eb733ed8b154f8e3ff68 (diff) |
- fix for the chaos in memory allocation;
- CComPtr used instead of home brewed macro;
- dialog lauout slightly straightened
git-svn-id: http://svn.miranda-ng.org/main/trunk@15318 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/stdafx.h')
-rw-r--r-- | protocols/Tox/src/stdafx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Tox/src/stdafx.h b/protocols/Tox/src/stdafx.h index fed628c81b..72fdb9cfd4 100644 --- a/protocols/Tox/src/stdafx.h +++ b/protocols/Tox/src/stdafx.h @@ -5,12 +5,13 @@ #include <windns.h>
#include <time.h>
#include <commctrl.h>
+#include <msapi/comptr.h>
#include <mmreg.h>
#include <MMDeviceAPI.h>
#define EXIT_ON_ERROR(hres) if (FAILED(hres)) { goto Exit; }
-#define SAFE_RELEASE(punk) if ((punk) != NULL) { (punk)->Release(); (punk) = NULL; }
+
DEFINE_PROPERTYKEY(PKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 14);
#include <vector>
|