Ignore:
Timestamp:
Jun 7, 2002, 10:02:20 AM (23 years ago)
Author:
sandervl
Message:

resynced with latest Wine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shlwapi/shlwapi_main.c

    r7820 r8584  
    44 *  Copyright 1998 Marcus Meissner
    55 *  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
    620 */
    721
     
    923#include "winerror.h"
    1024#include "winreg.h"
    11 #include "debugtools.h"
     25#include "wine/debug.h"
    1226#define NO_SHLWAPI_STREAM
    13 #ifndef __WIN32OS2__
    1427#include "shlwapi.h"
    15 #endif
    1628
    17 DEFAULT_DEBUG_CHANNEL(shell);
     29WINE_DEFAULT_DEBUG_CHANNEL(shell);
    1830
    19 HINSTANCE shlwapi_hInstance = 0; 
     31HINSTANCE shlwapi_hInstance = 0;
    2032HMODULE SHLWAPI_hshell32 = 0;
    2133HMODULE SHLWAPI_hwinmm = 0;
     
    2335HMODULE SHLWAPI_hmpr = 0;
    2436HMODULE SHLWAPI_hmlang = 0;
     37HMODULE SHLWAPI_hversion = 0;
     38
     39DWORD SHLWAPI_ThreadRef_index = -1;
    2540
    2641/*************************************************************************
     
    3752          case DLL_PROCESS_ATTACH:
    3853            shlwapi_hInstance = hinstDLL;
     54            SHLWAPI_ThreadRef_index = TlsAlloc();
    3955            break;
    4056          case DLL_PROCESS_DETACH:
     
    4460            if (SHLWAPI_hmpr)      FreeLibrary(SHLWAPI_hmpr);
    4561            if (SHLWAPI_hmlang)    FreeLibrary(SHLWAPI_hmlang);
     62            if (SHLWAPI_hversion)  FreeLibrary(SHLWAPI_hversion);
     63            if (SHLWAPI_ThreadRef_index >= 0) TlsFree(SHLWAPI_ThreadRef_index);
    4664            break;
    4765        }
Note: See TracChangeset for help on using the changeset viewer.