/[winpt]/trunk/Src/wptMisc.c
ViewVC logotype

Annotation of /trunk/Src/wptMisc.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 273 - (hide annotations)
Fri Dec 8 10:22:17 2006 UTC (18 years, 2 months ago) by twoaday
File MIME type: text/plain
File size: 1043 byte(s)


1 twoaday 273 /* 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     * You should have received a copy of the GNU General Public License
17     * along with WinPT; if not, write to the Free Software Foundation,
18     * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19     */
20    
21     #ifdef HAVE_CONFIG_H
22     #include <config.h>
23     #endif
24    
25     #include <shlobj.h>
26    
27    
28     void
29     _SHFree (void *p)
30     {
31     IMalloc *pm;
32    
33     SHGetMalloc (&pm);
34     if (pm) {
35     pm->lpVtbl->Free (pm,p);
36     pm->lpVtbl->Release (pm);
37     }
38     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26