Replace CRT assert() with macro.
Refactoring Windows error trace.