Another 3m fix for latest Apple tools

svn: r1650
This commit is contained in:
Matthew Flatt 2005-12-19 19:33:24 +00:00
parent 7ccd4a4a61
commit bbf31dfaa8

View File

@ -827,9 +827,11 @@ void wxApp::doMacKeyUpDown(Bool down)
GetScriptManagerVariable(smKeyScript), GetScriptManagerVariable(smKeyScript),
kCFAllocatorNull); kCFAllocatorNull);
if (str) { if (str) {
if (CFStringGetLength(str) > 0) if (CFStringGetLength(str) > 0) {
CFStringGetCharacters(str, CFRangeMake(0, 1), keys); GC_CAN_IGNORE CFRange rng;
else rng = CFRangeMake(0, 1);
CFStringGetCharacters(str, rng, keys);
} else
keys[0] = '?'; keys[0] = '?';
CFRelease(str); CFRelease(str);
} else } else