12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 |
* General Public License for more details. |
* General Public License for more details. |
|
* |
|
|
* You should have received a copy of the GNU General Public License |
|
|
* along with WinPT; if not, write to the Free Software Foundation, |
|
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
15 |
*/ |
*/ |
16 |
|
|
17 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
21 |
#include <shlobj.h> |
#include <shlobj.h> |
22 |
|
|
23 |
|
|
24 |
void |
void |
25 |
_SHFree (void *p) |
_SHFree (void *p) |
26 |
{ |
{ |
27 |
IMalloc *pm; |
IMalloc *pm; |
28 |
|
|
29 |
SHGetMalloc (&pm); |
SHGetMalloc (&pm); |
30 |
if (pm) { |
if (pm != NULL) { |
31 |
pm->lpVtbl->Free (pm,p); |
pm->lpVtbl->Free (pm, p); |
32 |
pm->lpVtbl->Release (pm); |
pm->lpVtbl->Release (pm); |
33 |
} |
} |
34 |
} |
} |