src/solaris/classes/sun/awt/X11/MotifDnDDropTargetProtocol.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2013, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2014, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 116,126 **** * CARD16 num_drop_sites B16; * CARD16 pad2 B16; * CARD32 heap_offset B32; * } xmDragReceiverInfoStruct; */ ! if (status == (int)XConstants.Success && wpg.getData() != 0 && wpg.getActualType() != 0 && wpg.getActualFormat() == 8 && wpg.getNumberOfItems() >= MotifDnDConstants.MOTIF_RECEIVER_INFO_SIZE) { overriden = true; --- 116,126 ---- * CARD16 num_drop_sites B16; * CARD16 pad2 B16; * CARD32 heap_offset B32; * } xmDragReceiverInfoStruct; */ ! if (status == XConstants.Success && wpg.getData() != 0 && wpg.getActualType() != 0 && wpg.getActualFormat() == 8 && wpg.getNumberOfItems() >= MotifDnDConstants.MOTIF_RECEIVER_INFO_SIZE) { overriden = true;
*** 218,228 **** * CARD16 num_drop_sites B16; * CARD16 pad2 B16; * CARD32 heap_offset B32; * } xmDragReceiverInfoStruct; */ ! if (status == (int)XConstants.Success && wpg.getData() != 0 && wpg.getActualType() != 0 && wpg.getActualFormat() == 8 && wpg.getNumberOfItems() >= MotifDnDConstants.MOTIF_RECEIVER_INFO_SIZE) { int dataSize = MotifDnDConstants.MOTIF_RECEIVER_INFO_SIZE; --- 218,228 ---- * CARD16 num_drop_sites B16; * CARD16 pad2 B16; * CARD32 heap_offset B32; * } xmDragReceiverInfoStruct; */ ! if (status == XConstants.Success && wpg.getData() != 0 && wpg.getActualType() != 0 && wpg.getActualFormat() == 8 && wpg.getNumberOfItems() >= MotifDnDConstants.MOTIF_RECEIVER_INFO_SIZE) { int dataSize = MotifDnDConstants.MOTIF_RECEIVER_INFO_SIZE;
*** 290,300 **** * CARD16 num_drop_sites B16; * CARD16 pad2 B16; * CARD32 heap_offset B32; * } xmDragReceiverInfoStruct; */ ! if (status == (int)XConstants.Success && wpg.getData() != 0 && wpg.getActualType() != 0 && wpg.getActualFormat() == 8 && wpg.getNumberOfItems() >= MotifDnDConstants.MOTIF_RECEIVER_INFO_SIZE) { overriden = true; --- 290,300 ---- * CARD16 num_drop_sites B16; * CARD16 pad2 B16; * CARD32 heap_offset B32; * } xmDragReceiverInfoStruct; */ ! if (status == XConstants.Success && wpg.getData() != 0 && wpg.getActualType() != 0 && wpg.getActualFormat() == 8 && wpg.getNumberOfItems() >= MotifDnDConstants.MOTIF_RECEIVER_INFO_SIZE) { overriden = true;
*** 325,335 **** XConstants.AnyPropertyType); try { int status = wpg.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance()); ! if (status == (int)XConstants.Success && wpg.getData() != 0 && wpg.getActualType() != 0 && wpg.getActualFormat() == 8 && wpg.getNumberOfItems() >= MotifDnDConstants.MOTIF_RECEIVER_INFO_SIZE) { return true; } else { --- 325,335 ---- XConstants.AnyPropertyType); try { int status = wpg.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance()); ! if (status == XConstants.Success && wpg.getData() != 0 && wpg.getActualType() != 0 && wpg.getActualFormat() == 8 && wpg.getNumberOfItems() >= MotifDnDConstants.MOTIF_RECEIVER_INFO_SIZE) { return true; } else {