8227684: jpackage must handle win32 mangled names in jli.dll
Submitted-by: rlichten
Reviewed-by: kcr
--- a/src/jdk.jpackage/share/native/libapplauncher/Library.h Thu Jul 25 15:47:00 2019 -0400
+++ b/src/jdk.jpackage/share/native/libapplauncher/Library.h Thu Jul 25 17:07:08 2019 -0400
@@ -43,7 +43,13 @@
using namespace std;
// Private typedef for function pointer casting
+
+#if defined(_WIN32) && !defined(_WIN64)
+#define LAUNCH_FUNC "_JLI_Launch@56"
+#else
#define LAUNCH_FUNC "JLI_Launch"
+#endif
+
typedef int (JNICALL *JAVA_CREATE)(int argc, char ** argv,
int jargc, const char** jargv,