Opened 22 years ago

Closed 22 years ago

Last modified 6 years ago

#8047 closed patch

real fix for MI2 Dialog Box crash

Reported by: SF/cccp_99 Owned by: SF/khalek
Priority: normal Component: Engine: SCUMM
Version: Keywords:
Cc: Game: Monkey Island 2

Description

A new function resStrLen() gets the length of a string that can possibly have special characters starting with FF, and properly determines its length. The code was borrowed from line 646 string.cpp and slightly modified to just count characters.

Since the new gui relies on the String class, I substituted the strlen()'s in str.cpp with the new function. It's equivalent to strlen() for all regular strings, which won't have character FF anyway, right? :)

The older fixme was removed.

CCCP

Ticket imported from: #609508. Ticket imported from: patches/152.

Attachments (1)

diffs.txt (2.8 KB ) - added by SF/cccp_99 22 years ago.
The diffs for 4 modified files

Download all attachments as: .zip

Change History (5)

by SF/cccp_99, 22 years ago

Attachment: diffs.txt added

The diffs for 4 modified files

comment:1 by SF/khalek, 22 years ago

applied, please maintain two trees and use diff -urN in the future

comment:2 by SF/khalek, 22 years ago

Status: newclosed

comment:3 by fingolfin, 22 years ago

Owner: set to SF/khalek

comment:4 by digitall, 6 years ago

Component: Engine: SCUMM
Game: Monkey Island 2
Note: See TracTickets for help on using tickets.