changeset 11742:59f5a29dd47e

8153149: Uninitialised memory in WinAccessBridge.cpp:1128 Summary: remove extraneous initializer Reviewed-by: prr, serb Contributed-by: peter.brunet@oracle.com
author ptbrunet
date Wed, 13 Jul 2016 15:21:08 -0500
parents e8c918aa42dd
children 37b61c31e766
files src/windows/native/sun/bridge/WinAccessBridge.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/bridge/WinAccessBridge.cpp	Tue Jul 12 21:55:57 2016 +0300
+++ b/src/windows/native/sun/bridge/WinAccessBridge.cpp	Wed Jul 13 15:21:08 2016 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -1125,7 +1125,7 @@
 
     PrintDebugString("WinAccessBridge::getAccessibleContextWithFocus(%p, %X, )", window, vmID);
     // find vmID, etc. from HWND; ask that VM for the AC w/Focus
-        HWND pkgVMID = (HWND)ABLongToHandle( pkg->rVMID ) ;
+    HWND pkgVMID;
     if (getAccessibleContextFromHWND(window, (long *)&(pkgVMID), &(pkg->rAccessibleContext)) == TRUE) {
         HWND destABWindow = javaVMs->findAccessBridgeWindow((long)pkgVMID);     // ineffecient [[[FIXME]]]
         if (sendMemoryPackage(buffer, sizeof(buffer), destABWindow) == TRUE) {