8311110: multichar warning in WinAccessBridge.cpp

Reviewed-by: djelinski, jwaters, prr
This commit is contained in:
Abhishek Kumar 2024-06-13 04:49:58 +00:00
parent 238162a3b8
commit 301bd70856

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2024, 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
@ -2773,7 +2773,7 @@ WinAccessBridge::getAccessibleTextItems(long vmID,
if (destABWindow != (HWND) 0) {
if (sendMemoryPackage(buffer, sizeof(buffer), destABWindow) == TRUE) {
memcpy(textItems, &(pkg->rTextItemsInfo), sizeof(AccessibleTextItemsInfo));
if (pkg->rTextItemsInfo.letter != '/0') {
if (pkg->rTextItemsInfo.letter != '\0') {
return TRUE;
}
}