Buggy code:
int strikeoutThickness ; int justify ; int psla ; int fallbackFont ; void free ( ) { } public String toString ( ) { } } public TextLayout ( Device device ) { } RECT addClipRect ( TextLayout . StyleItem run , RECT clipRect , RECT rect , int selectionStart , int selectionEnd ) { } void breakRun ( TextLayout . StyleItem run ) { } void checkLayout ( ) { } void computeRuns ( GC gc ) { if ( ( runs ) != null ) return ; int hDC = ( gc != null ) ? gc . handle : device . internal_new_GC ( null ) ; int srcHdc = OS . CreateCompatibleDC ( hDC ) ; allRuns = itemize ( ) ; for ( int i = 0 ; i < ( ( allRuns . length ) - 1 ) ; i ++ ) { TextLayout . StyleItem run = allRuns [ i ] ; OS . SelectObject ( srcHdc , getItemFont ( run ) ) ; shape ( srcHdc , run ) ; } SCRIPT_LOGATTR logAttr = new SCRIPT_LOGATTR ( ) ; SCRIPT_PROPERTIES properties = new SCRIPT_PROPERTIES ( ) ; int lineWidth = indent ; int lineStart = 0 ; int lineCount = 1 ; for ( int i = 0 ; i < ( ( allRuns . length ) - 1 ) ; i ++ ) { TextLayout . StyleItem run = allRuns [ i ] ; if ( ( ( tabs ) != null ) && ( run . tab ) ) { int tabsLength = tabs . length ; int j ; for ( j = 0 ; j < tabsLength ; j ++ ) { if ( ( tabs [ j ] ) > lineWidth ) { run . width = ( tabs [ j ] ) - lineWidth ; break ; } } if ( j == tabsLength ) { int tabX = tabs [ ( tabsLength - 1 ) ] ; int lastTabWidth = ( tabsLength > 1 ) ? ( tabs [ ( tabsLength - 1 ) ] ) - ( tabs [ ( tabsLength - 2 ) ] ) : tabs [ 0 ] ; if ( lastTabWidth > 0 ) { while ( tabX <= lineWidth ) tabX += lastTabWidth ; run . width = tabX - lineWidth ; } } int length = run . length ; if ( length > 1 ) { int stop = ( j + length ) - 1 ; if ( stop < tabsLength ) { run . width += ( tabs [ stop ] ) - ( tabs [ j ] ) ; } else { if ( j < tabsLength ) { run . width += ( tabs [ ( tabsLength - 1 ) ] ) - ( tabs [ j ] ) ; length -= ( tabsLength - 1 ) - j ; } int lastTabWidth = ( tabsLength > 1 ) ? ( tabs [ ( tabsLength - 1 ) ] ) - ( tabs [ ( tabsLength - 2 ) ] ) : tabs [ 0 ] ; run . width += lastTabWidth * ( length - 1 ) ; } } } <START_BUG> if ( ( ( ( wrapWidth ) != ( - 1 ) ) && ( ( lineWidth + ( run . width ) ) > ( wrapWidth ) ) ) && ( ! ( run . tab ) ) ) { <END_BUG> int start = 0 ; int [ ] piDx = new int [ run . length ] ; if ( ( ( run . style ) != null ) && ( ( run . style . metrics ) != null ) ) { piDx [ 0 ] = run . width ; } else { OS . ScriptGetLogicalWidths ( run . analysis , run . length , run . glyphCount , run . advances , run . clusters , run . visAttrs , piDx ) ; } int width = 0 ; int maxWidth = ( wrapWidth ) - lineWidth ; while ( ( width + ( piDx [ start ] ) ) < maxWidth ) { width += piDx [ ( start ++ ) ] ; } int firstStart = start ; int firstIndice = i ; while ( i >= lineStart ) { breakRun ( run ) ; while ( start >= 0 ) { OS . MoveMemory ( logAttr , ( ( run . psla ) + ( start * ( SCRIPT_LOGATTR . sizeof ) ) ) , sizeof ) ; if ( ( logAttr . fSoftBreak ) || ( logAttr . fWhiteSpace ) ) break ; start -- ; } if ( ( ( start == 0 ) && ( i != lineStart ) ) && ( ! ( run . tab ) ) ) { if ( ( logAttr . fSoftBreak ) && ( ! ( logAttr . fWhiteSpace ) ) ) { OS . MoveMemory ( properties , device . scripts [ run . analysis . eScript ] , SCRIPT_PROPERTIES . sizeof ) ; int langID = properties . langid ; TextLayout . StyleItem pRun = allRuns [ ( i - 1 ) ] ; OS . MoveMemory ( properties , device . scripts [ pRun . analysis . eScript ] , SCRIPT_PROPERTIES . sizeof ) ; if ( ( ( ( properties . langid ) == langID ) || ( langID == ( OS . LANG_NEUTRAL ) ) ) || ( ( properties . langid ) == ( OS . LANG_NEUTRAL ) ) ) { breakRun ( pRun ) ; OS . MoveMemory ( logAttr , ( ( pRun . psla ) + ( ( ( pRun . length ) - 1 ) * ( SCRIPT_LOGATTR . sizeof ) ) ) , sizeof ) ; if ( ! ( logAttr . fWhiteSpace ) ) start = - 1 ; } } }

Fix:
if ( ( ( ( ( wrapWidth ) != ( - 1 ) ) && ( ( lineWidth + ( run . width ) ) > ( wrapWidth ) ) ) && ( ! ( run . tab ) ) ) && ( ! ( run . lineBreak ) ) ) {