Ignore:
Timestamp:
May 16, 2000, 10:00:13 PM (25 years ago)
Author:
sandervl
Message:

import directly from dlls; not dynamically -> fixes crash due to recent shlwapi changes

File:
1 edited

Legend:

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

    r1785 r3544  
    1 /* $Id: cdlg32.cpp,v 1.4 1999-11-20 16:00:14 achimha Exp $ */
     1/* $Id: cdlg32.cpp,v 1.5 2000-05-16 20:00:13 sandervl Exp $ */
    22/*
    33 *  Common Dialog Boxes interface (32 bit)
     
    2929
    3030HINSTANCE       COMCTL32_hInstance = 0;
     31
     32#ifndef __WIN32OS2__
    3133HINSTANCE       SHELL32_hInstance = 0;
    3234HINSTANCE       SHLWAPI_hInstance = 0;
     
    6668BOOL (WINAPI *COMDLG32_PathMatchSpecW)(LPCWSTR x, LPCWSTR y);
    6769LPSTR (WINAPI *COMDLG32_PathAddBackslashA)(LPSTR path);
     70#endif
    6871
    6972/***********************************************************************
     
    104107                }
    105108
     109#ifndef __WIN32OS2__
    106110                COMCTL32_hInstance = LoadLibraryA("COMCTL32.DLL");     
    107111                SHELL32_hInstance = LoadLibraryA("SHELL32.DLL");
     
    156160                *(VOID **)&COMDLG32_PathFindFilenameA = (void*)GetProcAddress(SHLWAPI_hInstance,"PathFindFileNameA");
    157161                *(VOID **)&COMDLG32_PathAddBackslashA = (void*)GetProcAddress(SHLWAPI_hInstance,"PathAddBackslashA");
     162#endif
    158163                break;
    159164
     
    165170
    166171                }
     172#ifndef __WIN32OS2__
    167173                FreeLibrary(COMCTL32_hInstance);
    168174                FreeLibrary(SHELL32_hInstance);
    169175                FreeLibrary(SHLWAPI_hInstance);
     176#endif
    170177                break;
    171178        }
Note: See TracChangeset for help on using the changeset viewer.