8198897: Compilation errors in jdk.accessibility with VS 2017
Reviewed-by: serb, kaddepalli
This commit is contained in:
parent
5016a4dd96
commit
89776a373c
@ -1526,7 +1526,8 @@ BOOL UpdateMessageNumber () {
|
|||||||
size_t messageNumber = g_MessageHistory.GetCurrentMessageIndex() + 1;
|
size_t messageNumber = g_MessageHistory.GetCurrentMessageIndex() + 1;
|
||||||
char text [32] = {0};
|
char text [32] = {0};
|
||||||
if ( 0 != messageCount ) {
|
if ( 0 != messageCount ) {
|
||||||
::_snprintf(text, sizeof(text), "%d of %d", messageNumber, messageCount);
|
::_snprintf(text, sizeof(text), "%d of %d", (int)messageNumber,
|
||||||
|
(int) messageCount);
|
||||||
}
|
}
|
||||||
return ::SetWindowText(dlgItem, text);
|
return ::SetWindowText(dlgItem, text);
|
||||||
}
|
}
|
||||||
|
@ -527,7 +527,7 @@ void Jaccesswalker::addComponentNodes(long vmID, AccessibleContext context,
|
|||||||
tvi.mask = TVIF_PARAM | TVIF_TEXT;
|
tvi.mask = TVIF_PARAM | TVIF_TEXT;
|
||||||
tvi.pszText = (char *) s; // Accessible name and role
|
tvi.pszText = (char *) s; // Accessible name and role
|
||||||
tvi.cchTextMax = (int)strlen(s);
|
tvi.cchTextMax = (int)strlen(s);
|
||||||
tvi.lParam = (long) newNode; // Accessibility information
|
tvi.lParam = (LPARAM) newNode; // Accessibility information
|
||||||
|
|
||||||
TVINSERTSTRUCT tvis;
|
TVINSERTSTRUCT tvis;
|
||||||
tvis.hParent = treeNodeParent;
|
tvis.hParent = treeNodeParent;
|
||||||
@ -544,13 +544,13 @@ void Jaccesswalker::addComponentNodes(long vmID, AccessibleContext context,
|
|||||||
char s[LINE_BUFSIZE];
|
char s[LINE_BUFSIZE];
|
||||||
sprintf( s,
|
sprintf( s,
|
||||||
"ERROR calling GetAccessibleContextInfo; vmID = %X, context = %p",
|
"ERROR calling GetAccessibleContextInfo; vmID = %X, context = %p",
|
||||||
vmID, context );
|
vmID, (void*)context );
|
||||||
|
|
||||||
TVITEM tvi;
|
TVITEM tvi;
|
||||||
tvi.mask = TVIF_PARAM | TVIF_TEXT; // text and lParam are only valid parts
|
tvi.mask = TVIF_PARAM | TVIF_TEXT; // text and lParam are only valid parts
|
||||||
tvi.pszText = (char *) s;
|
tvi.pszText = (char *) s;
|
||||||
tvi.cchTextMax = (int)strlen(s);
|
tvi.cchTextMax = (int)strlen(s);
|
||||||
tvi.lParam = (long) newNode;
|
tvi.lParam = (LPARAM) newNode;
|
||||||
|
|
||||||
TVINSERTSTRUCT tvis;
|
TVINSERTSTRUCT tvis;
|
||||||
tvis.hParent = treeNodeParent;
|
tvis.hParent = treeNodeParent;
|
||||||
|
Loading…
Reference in New Issue
Block a user