8012925: [parfait] Missing return value in jdk/src/macosx/native/sun/awt/AWTEvent.m
authortbell
Mon, 08 Jul 2013 07:20:44 -0700
changeset 18599 213883c7fab6
parent 18473 0a85476a0b9c
child 18600 5b24b75e2710
8012925: [parfait] Missing return value in jdk/src/macosx/native/sun/awt/AWTEvent.m Reviewed-by: katleman, leonidr Contributed-by: petr.pchelko@oracle.com
jdk/src/macosx/native/sun/awt/AWTEvent.m
--- a/jdk/src/macosx/native/sun/awt/AWTEvent.m	Wed Jul 05 19:02:09 2017 +0200
+++ b/jdk/src/macosx/native/sun/awt/AWTEvent.m	Mon Jul 08 07:20:44 2013 -0700
@@ -382,7 +382,7 @@
 {
     TISInputSourceRef currentKeyboard = TISCopyCurrentKeyboardInputSource();
     CFDataRef uchr = (CFDataRef)TISGetInputSourceProperty(currentKeyboard, kTISPropertyUnicodeKeyLayoutData);
-    if (uchr == nil) { return; }
+    if (uchr == nil) { return 0; }
     const UCKeyboardLayout *keyboardLayout = (const UCKeyboardLayout*)CFDataGetBytePtr(uchr);
     // Carbon modifiers should be used instead of NSEvent modifiers
     UInt32 modifierKeyState = (GetCurrentEventKeyModifiers() >> 8) & 0xFF;