Problem: When Vim is built with debug mode, gvim causes an assertion
error and stops working when running on Visual Studio
Debugger.
Solution: Stop calling _set_fmode() if not needed (Ken Takata).
closes: #20181
Signed-off-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
vim_free(wm);
#if defined(DEBUG) && _MSC_VER >= 1400
- _set_fmode(oldMode);
+ if (oldMode != 0)
+ _set_fmode(oldMode);
#endif
return f;
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 462,
/**/
461,
/**/