mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 05:22:56 +00:00
[ATL_APITEST] Add standalone CComHeapPtr project
This commit is contained in:
parent
45d33582e7
commit
09cfb2823c
3 changed files with 200 additions and 5 deletions
|
@ -1,14 +1,19 @@
|
|||
/*
|
||||
* PROJECT: ReactOS api tests
|
||||
* LICENSE: LGPLv2.1+ - See COPYING.LIB in the top level directory
|
||||
* PURPOSE: Test for CComHeapPtr
|
||||
* PROGRAMMER: Mark Jansen
|
||||
* PROJECT: ReactOS api tests
|
||||
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
|
||||
* PURPOSE: Test for CComHeapPtr
|
||||
* COPYRIGHT: Copyright 2015-2020 Mark Jansen (mark.jansen@reactos.org)
|
||||
*/
|
||||
|
||||
#ifdef HAVE_APITEST
|
||||
#include <apitest.h>
|
||||
#else
|
||||
#include "atltest.h"
|
||||
#endif
|
||||
#include <atlbase.h>
|
||||
|
||||
static PDWORD test_Alloc(DWORD value)
|
||||
static PDWORD
|
||||
test_Alloc(DWORD value)
|
||||
{
|
||||
PDWORD ptr = (PDWORD)::CoTaskMemAlloc(sizeof(DWORD));
|
||||
*ptr = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue