8161742: [parfait] Uninitialised memory in isXTestAvailable of awt_Robot.c:65
Reviewed-by: serb, ssadetsky
This commit is contained in:
parent
cd67ab9d5b
commit
964fd1e4e9
@ -100,9 +100,9 @@ static int32_t isXTestAvailable() {
|
||||
|
||||
/* check if XTest is available */
|
||||
isXTestAvailable = XQueryExtension(awt_display, XTestExtensionName, &major_opcode, &first_event, &first_error);
|
||||
DTRACE_PRINTLN3("RobotPeer: XQueryExtension(XTEST) returns major_opcode = %d, first_event = %d, first_error = %d",
|
||||
major_opcode, first_event, first_error);
|
||||
if (isXTestAvailable) {
|
||||
DTRACE_PRINTLN3("RobotPeer: XQueryExtension(XTEST) returns major_opcode = %d, first_event = %d, first_error = %d",
|
||||
major_opcode, first_event, first_error);
|
||||
/* check if XTest version is OK */
|
||||
XTestQueryExtension(awt_display, &event_basep, &error_basep, &majorp, &minorp);
|
||||
DTRACE_PRINTLN4("RobotPeer: XTestQueryExtension returns event_basep = %d, error_basep = %d, majorp = %d, minorp = %d",
|
||||
|
@ -1021,9 +1021,9 @@ int32_t getNumButtons() {
|
||||
* before calling XTestFakeButtonEvent().
|
||||
*/
|
||||
xinputAvailable = XQueryExtension(awt_display, INAME, &major_opcode, &first_event, &first_error);
|
||||
DTRACE_PRINTLN3("RobotPeer: XQueryExtension(XINPUT) returns major_opcode = %d, first_event = %d, first_error = %d",
|
||||
major_opcode, first_event, first_error);
|
||||
if (xinputAvailable) {
|
||||
DTRACE_PRINTLN3("RobotPeer: XQueryExtension(XINPUT) returns major_opcode = %d, first_event = %d, first_error = %d",
|
||||
major_opcode, first_event, first_error);
|
||||
devices = XListInputDevices(awt_display, &numDevices);
|
||||
for (devIdx = 0; devIdx < numDevices; devIdx++) {
|
||||
aDevice = &(devices[devIdx]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user