Skip to content

Commit

Permalink
Removed tchar include
Browse files Browse the repository at this point in the history
  • Loading branch information
nzeemin committed Apr 7, 2024
1 parent 17bc3ac commit 96ba916
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/Debug
/Release
/x64
/.vs
/*.ncb
/*.suo
*.user
Expand Down
4 changes: 2 additions & 2 deletions BKImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ bool CBKImage::ExtractFile(BKDirDataItem *fr)
}
}

if ((AFS.file = _tfopen((m_strStorePath / AFS.strName).c_str(), _T("w+b"))) != nullptr)
if ((AFS.file = _wfopen((m_strStorePath / AFS.strName).c_str(), L"w+b")) != nullptr)
{
const int nLen = fr->nSize;
auto Buffer = std::vector<uint8_t>(m_pFloppyImage->EvenSizeByBlock(nLen));
Expand Down Expand Up @@ -1161,7 +1161,7 @@ ADDOP_RESULT CBKImage::AddFile(const fs::path& findFile)
memset(pBuffer, 0, nBufferSize);
AnalyseFileStruct AFS;

if ((AFS.file = _tfopen(findFile.c_str(), _T("rb"))) != nullptr)
if ((AFS.file = _wfopen(findFile.c_str(), L"rb")) != nullptr)
{
AFS.strName = findFile.stem();
AFS.strExt = findFile.extension();
Expand Down
2 changes: 0 additions & 2 deletions pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

namespace fs = std::filesystem;

#include <tchar.h>

#ifdef _DEBUG
#include <cassert>
#define ASSERT assert
Expand Down

0 comments on commit 96ba916

Please sign in to comment.