1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4//
5
6//
7// ===========================================================================
8// File: comem.cpp
9//
10// ===========================================================================
11
12#include "common.h"
13
14STDAPI_(LPVOID) CoTaskMemAlloc(SIZE_T cb)
15{
16 return LocalAlloc(LMEM_FIXED, cb);
17}
18
19STDAPI_(LPVOID) CoTaskMemRealloc(LPVOID pv, SIZE_T cb)
20{
21 return LocalReAlloc(pv, cb, LMEM_MOVEABLE);
22}
23
24STDAPI_(void) CoTaskMemFree(LPVOID pv)
25{
26 LocalFree(pv);
27}
28