Changeset 8584 for trunk/src/shlwapi/shlwapi_main.c
- Timestamp:
- Jun 7, 2002, 10:02:20 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shlwapi/shlwapi_main.c
r7820 r8584 4 4 * Copyright 1998 Marcus Meissner 5 5 * Copyright 1998 Juergen Schmied (jsch) 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2.1 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this library; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 6 20 */ 7 21 … … 9 23 #include "winerror.h" 10 24 #include "winreg.h" 11 #include " debugtools.h"25 #include "wine/debug.h" 12 26 #define NO_SHLWAPI_STREAM 13 #ifndef __WIN32OS2__14 27 #include "shlwapi.h" 15 #endif16 28 17 DEFAULT_DEBUG_CHANNEL(shell);29 WINE_DEFAULT_DEBUG_CHANNEL(shell); 18 30 19 HINSTANCE shlwapi_hInstance = 0; 31 HINSTANCE shlwapi_hInstance = 0; 20 32 HMODULE SHLWAPI_hshell32 = 0; 21 33 HMODULE SHLWAPI_hwinmm = 0; … … 23 35 HMODULE SHLWAPI_hmpr = 0; 24 36 HMODULE SHLWAPI_hmlang = 0; 37 HMODULE SHLWAPI_hversion = 0; 38 39 DWORD SHLWAPI_ThreadRef_index = -1; 25 40 26 41 /************************************************************************* … … 37 52 case DLL_PROCESS_ATTACH: 38 53 shlwapi_hInstance = hinstDLL; 54 SHLWAPI_ThreadRef_index = TlsAlloc(); 39 55 break; 40 56 case DLL_PROCESS_DETACH: … … 44 60 if (SHLWAPI_hmpr) FreeLibrary(SHLWAPI_hmpr); 45 61 if (SHLWAPI_hmlang) FreeLibrary(SHLWAPI_hmlang); 62 if (SHLWAPI_hversion) FreeLibrary(SHLWAPI_hversion); 63 if (SHLWAPI_ThreadRef_index >= 0) TlsFree(SHLWAPI_ThreadRef_index); 46 64 break; 47 65 }
Note:
See TracChangeset
for help on using the changeset viewer.