jdk/src/jdk.accessibility/windows/native/jaccesswalker/jaccesswalker.cpp
changeset 37566 4c58d14962c1
parent 34411 b46324665539
equal deleted inserted replaced
37565:0dfeacdb10bc 37566:4c58d14962c1
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   541                               newNode, hwnd, treeNodeItem, treeWnd);
   541                               newNode, hwnd, treeNodeItem, treeWnd);
   542         }
   542         }
   543     } else {
   543     } else {
   544         char s[LINE_BUFSIZE];
   544         char s[LINE_BUFSIZE];
   545         sprintf( s,
   545         sprintf( s,
   546             "ERROR calling GetAccessibleContextInfo; vmID = %X, context = %X",
   546             "ERROR calling GetAccessibleContextInfo; vmID = %X, context = %p",
   547             vmID, context );
   547             vmID, context );
   548 
   548 
   549         TVITEM tvi;
   549         TVITEM tvi;
   550         tvi.mask = TVIF_PARAM | TVIF_TEXT;  // text and lParam are only valid parts
   550         tvi.mask = TVIF_PARAM | TVIF_TEXT;  // text and lParam are only valid parts
   551         tvi.pszText = (char *) s;
   551         tvi.pszText = (char *) s;