Changeset 1574 for trunk/src


Ignore:
Timestamp:
Nov 3, 1999, 8:34:40 PM (26 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comdlg32/cdlg32.cpp

    r1556 r1574  
    1 /* $Id: cdlg32.cpp,v 1.2 1999-11-02 20:37:42 sandervl Exp $ */
     1/* $Id: cdlg32.cpp,v 1.3 1999-11-03 19:34:40 sandervl Exp $ */
    22/*
    33 *  Common Dialog Boxes interface (32 bit)
     
    3030HINSTANCE       COMCTL32_hInstance = 0;
    3131HINSTANCE       SHELL32_hInstance = 0;
     32HINSTANCE       SHLWAPI_hInstance = 0;
    3233
    3334/* DPA */
     
    105106                COMCTL32_hInstance = LoadLibraryA("COMCTL32.DLL");     
    106107                SHELL32_hInstance = LoadLibraryA("SHELL32.DLL");
    107                
    108                 if (!COMCTL32_hInstance || !SHELL32_hInstance)
     108                SHLWAPI_hInstance = LoadLibraryA("SHLWAPI.DLL");
     109               
     110                if (!COMCTL32_hInstance || !SHELL32_hInstance || !SHLWAPI_hInstance)
    109111                {
    110112                        ERR("loading of comctl32 or shell32 or shlwapi failed\n");
     
    149151
    150152                /* PATH */
    151                 *(VOID **)&COMDLG32_PathMatchSpecW = (void*)GetProcAddress(SHELL32_hInstance,"PathMatchSpecW");
    152                 *(VOID **)&COMDLG32_PathIsRootA = (void*)GetProcAddress(SHELL32_hInstance,"PathIsRootA");
    153                 *(VOID **)&COMDLG32_PathRemoveFileSpecA = (void*)GetProcAddress(SHELL32_hInstance,"PathRemoveFileSpecA");
    154                 *(VOID **)&COMDLG32_PathFindFilenameA = (void*)GetProcAddress(SHELL32_hInstance,"PathFindFileNameA");
    155                 *(VOID **)&COMDLG32_PathAddBackslashA = (void*)GetProcAddress(SHELL32_hInstance,"PathAddBackslashA");
     153                *(VOID **)&COMDLG32_PathMatchSpecW = (void*)GetProcAddress(SHLWAPI_hInstance,"PathMatchSpecW");
     154                *(VOID **)&COMDLG32_PathIsRootA = (void*)GetProcAddress(SHLWAPI_hInstance,"PathIsRootA");
     155                *(VOID **)&COMDLG32_PathRemoveFileSpecA = (void*)GetProcAddress(SHLWAPI_hInstance,"PathRemoveFileSpecA");
     156                *(VOID **)&COMDLG32_PathFindFilenameA = (void*)GetProcAddress(SHLWAPI_hInstance,"PathFindFileNameA");
     157                *(VOID **)&COMDLG32_PathAddBackslashA = (void*)GetProcAddress(SHLWAPI_hInstance,"PathAddBackslashA");
    156158                break;
    157159
     
    165167                FreeLibrary(COMCTL32_hInstance);
    166168                FreeLibrary(SHELL32_hInstance);
     169                FreeLibrary(SHLWAPI_hInstance);
    167170                break;
    168171        }
Note: See TracChangeset for help on using the changeset viewer.