1 |
/* wptMisc.c - Misc function that needs to be in pure C |
2 |
* Copyright (C) 2006 Timo Schulz |
3 |
* |
4 |
* This file is part of WinPT. |
5 |
* |
6 |
* WinPT is free software; you can redistribute it and/or |
7 |
* modify it under the terms of the GNU General Public License |
8 |
* as published by the Free Software Foundation; either version 2 |
9 |
* of the License, or (at your option) any later version. |
10 |
* |
11 |
* WinPT is distributed in the hope that it will be useful, |
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 |
* General Public License for more details. |
15 |
*/ |
16 |
|
17 |
#ifdef HAVE_CONFIG_H |
18 |
#include <config.h> |
19 |
#endif |
20 |
|
21 |
#include <shlobj.h> |
22 |
|
23 |
|
24 |
void |
25 |
_SHFree (void *p) |
26 |
{ |
27 |
IMalloc *pm; |
28 |
|
29 |
SHGetMalloc (&pm); |
30 |
if (pm != NULL) { |
31 |
pm->lpVtbl->Free (pm, p); |
32 |
pm->lpVtbl->Release (pm); |
33 |
} |
34 |
} |