Changed FindSegment()'s 'system' parameter from BOOL to LONG, as in