a_villacis@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.