--- old/src/java.desktop/windows/native/libawt/windows/awt_Desktop.cpp 2018-03-15 22:00:32.000000000 -0700 +++ new/src/java.desktop/windows/native/libawt/windows/awt_Desktop.cpp 2018-03-15 22:00:32.000000000 -0700 @@ -92,7 +92,7 @@ JNU_ReleaseStringPlatformChars(env, fileOrUri_j, fileOrUri_c); JNU_ReleaseStringPlatformChars(env, verb_j, verb_c); - if ((int)retval <= 32) { + if ((int)((intptr_t)retval) <= 32) { // ShellExecute failed. LPTSTR buffer = NULL; int len = ::FormatMessage(