RICHED20: EM_SETCHARFORMAT must return 0, not assert, on invalid struct size (try 2)

Alexandre Julliard julliard at winehq.org
Wed Sep 26 12:39:41 CDT 2007


a_villacis at 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 at winehq.org



More information about the wine-devel mailing list