Changeset 467


Ignore:
Timestamp:
Jan 18, 2011, 6:59:39 PM (10 years ago)
Author:
dmik
Message:

launcher: Retain the previous BEGINLIBPATH setting since loading lucide.dll may fail otherwise if some of its prerequisites (like libc063.dll) are located in a path from that previous setting and LIBPATHSTRICT=T mode is used (fixes ticket:219).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/gui/lcd.c

    r367 r467  
    5252    int result = 1;
    5353    char *last_slash;
    54     CHAR modName[ CCHMAXPATH ] = { 0 };
     54    CHAR modName[ CCHMAXPATH + 15 /*";%BEGINLIBPATH%"*/ ] = { 0 };
    5555    HMODULE hmod = NULLHANDLE;
    5656    APIRET rc = 0;
     
    6565    // fill lucide dir
    6666    strcpy( lucideDir, argv[0] );
    67     if ( ( last_slash = strrchr( lucideDir, '\\' ) ) == NULL ) {
     67    if ( ( last_slash = strrchr( lucideDir, '\\' ) ) == NULL )
     68    {
    6869        return 1;
    6970    }
    70     else {
     71    else
     72    {
    7173        *last_slash = 0;
    7274    }
     75    // retain the previous BEGINLIBPATH setting
     76    strcat(lucideDir, ";%BEGINLIBPATH%");
    7377
    7478    // set beginlibpath
Note: See TracChangeset for help on using the changeset viewer.