changeset 10739:ffc525c332e2

8137114: native launcher not finding cfg-file Reviewed-by: kcr
author vdrozdov
date Fri, 08 Dec 2017 16:41:13 -0800
parents cf93d081a173
children 0011c8aee5fe
files modules/jdk.packager/src/main/native/library/common/GenericPlatform.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/jdk.packager/src/main/native/library/common/GenericPlatform.cpp	Fri Dec 08 12:05:00 2017 -0800
+++ b/modules/jdk.packager/src/main/native/library/common/GenericPlatform.cpp	Fri Dec 08 16:41:13 2017 -0800
@@ -155,7 +155,9 @@
 TString GenericPlatform::GetAppName() {
     TString result = GetModuleFileName();
     result = FilePath::ExtractFileName(result);
+#if defined(WINDOWS)
     result = FilePath::ChangeFileExt(result, _T(""));
+#endif
     return result;
 }
 #endif //WINDOWS || LINUX