Changeset 93


Ignore:
Timestamp:
Aug 5, 2010, 10:58:16 PM (15 years ago)
Author:
dmik
Message:

jvm/java/main: On OS/2, add the path that contains the loaded JVM.DLL to BEGINLIBPATH so that other DLLs referring to it just as JVM (instead of the full path) could also find it.

File:
1 edited

Legend:

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

    r91 r93  
    2323 * have any questions.
    2424 */
     25
     26#ifdef __WIN32OS2__
     27#define INCL_DOSMISC
     28#include <os2wrap2.h>
     29#endif
    2530
    2631#include <windows.h>
     
    225230        return JNI_FALSE;
    226231    }
     232
     233#if __WIN32OS2__
     234    /*
     235     * Make sure that other DLLs statically linked to the Java VM DLL (so that
     236     * they refer to it as 'JVM' instead of the full path) are able to find it.
     237     */
     238    strcpy(crtpath, jvmpath);
     239    char *sep = strrchr(crtpath, '\\');
     240    if (sep) {
     241        *sep = '\0';
     242        DosSetExtLIBPATH(crtpath, BEGIN_LIBPATH);
     243    }
     244#endif
    227245
    228246    /* Now get the function addresses */
Note: See TracChangeset for help on using the changeset viewer.