Re: RICHED20: EM_SETCHARFORMAT must return 0, not assert, on invalid struct size (try 2)
26 Sep
2007
26 Sep
'07
5:39 p.m.
a_villacis(a)palosanto.com writes:
I considered doing this at first, but ME_ToCF2W is used in three other places beside handling EM_SETCHARFORMAT (all in style.c), and those places might get a null-pointer exception instead of an assert if something went wrong.
A null-pointer exception serves the same purpose as an assert, and they both result in a debugger backtrace, so there's no reason to add more asserts here. -- Alexandre Julliard julliard(a)winehq.org
6651
Age (days ago)
6651
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard