Diff of /corelib/PWSfile.cpp [6635e0] .. [558161]  Maximize  Restore

  Switch to side-by-side view

--- a/corelib/PWSfile.cpp
+++ b/corelib/PWSfile.cpp
@@ -82,6 +82,17 @@
 PWSfile::~PWSfile()
 {
   Close(); // idempotent
+}
+
+void PWSfile::FOpen()
+{
+  TCHAR* m = (m_rw == Read) ? _T("rb") : _T("wb");
+  // calls right variant of m_fd = fopen(m_filename);
+#if _MSC_VER >= 1400
+  _tfopen_s(&m_fd, (LPCTSTR) m_filename, m);
+#else
+  m_fd = _tfopen((LPCTSTR) m_filename, m);
+#endif
 }