Changeset 117


Ignore:
Timestamp:
Aug 27, 2010, 12:25:02 AM (15 years ago)
Author:
dmik
Message:

jdk: Fixed: java[w].exe overwrote BEGINLIBPATH which broke loading of many DLLs in LIBPATHSTRICT=T mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/src/windows/bin/java_md.c

    r93 r117  
    236236     * they refer to it as 'JVM' instead of the full path) are able to find it.
    237237     */
    238     strcpy(crtpath, jvmpath);
    239     char *sep = strrchr(crtpath, '\\');
     238    char *jvmdir = (char *)malloc(strlen(jvmpath) + 1 + 32);
     239    strcpy(jvmdir, jvmpath);
     240    char *sep = strrchr(jvmdir, '\\');
    240241    if (sep) {
    241242        *sep = '\0';
    242         DosSetExtLIBPATH(crtpath, BEGIN_LIBPATH);
    243     }
     243        strcpy(sep, ";%BEGINLIBPATH%");
     244        DosSetExtLIBPATH(jvmdir, BEGIN_LIBPATH);
     245    }
     246    free(jvmdir);
    244247#endif
    245248
Note: See TracChangeset for help on using the changeset viewer.