Browse Source

winmain.c, fs_c_a_n_f(), bug fix, and cleanup "minimise"

pre-master-46
rlar 9 years ago
parent
commit
69537a7899
  1. 5
      src/winmain.c

5
src/winmain.c

@ -901,7 +901,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLi
/* Make main window and subwindows visible. /* Make main window and subwindows visible.
Size of windows allows display of 80 character line. Size of windows allows display of 80 character line.
Limit window to screen size (if only VGA). */ Limit window to screen size (if only VGA). */
if (ix < WinLineWidth) WinLineWidth = ix;
if (WinLineWidth > ix)
WinLineWidth = ix;
MoveWindow( hwMain, 0, (iyt * 2), WinLineWidth, iyt, FALSE); MoveWindow( hwMain, 0, (iyt * 2), WinLineWidth, iyt, FALSE);
ShowWindow( hwMain, nShowState); ShowWindow( hwMain, nShowState);
ShowWindow( twText, SW_SHOWNORMAL); ShowWindow( twText, SW_SHOWNORMAL);
@ -1097,7 +1098,7 @@ int fs_c_a_n_f(FILE * __stream, const char * __format, ...)
assert(FALSE); assert(FALSE);
return 0; return 0;
} }
result = fscanf( __stream, __format, args);
result = vfscanf(__stream, __format, args);
va_end(args); va_end(args);
return result; return result;
} }

Loading…
Cancel
Save