Skip to content

Commit

Permalink
fix m_szMcdxExe
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Feb 13, 2018
1 parent 0cf6d30 commit 140883a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RisohEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3548,7 +3548,7 @@ BOOL MMainWnd::CompileMessageTable(HWND hwnd, const std::wstring& strWide)
wsprintfW(szCmdLine,
L"\"%s\" -o \"%s\" -J rc -O res \"%s\"",
m_szMcdxExe, szPath3, szPath1);
// MessageBoxW(hwnd, szCmdLine, NULL, 0);
//MessageBoxW(hwnd, szCmdLine, NULL, 0);

MProcessMaker pmaker;
pmaker.SetShowWindow(SW_HIDE);
Expand Down Expand Up @@ -3903,15 +3903,15 @@ INT MMainWnd::CheckData(VOID)
WCHAR szPath[MAX_PATH];
GetModuleFileNameW(NULL, szPath, _countof(szPath));
lstrcpyW(wcsrchr(szPath, L'\\'), L"\\mcdx.exe");
if (::GetFileAttributesW(m_szUpxExe) != INVALID_FILE_ATTRIBUTES)
if (::GetFileAttributesW(szPath) != INVALID_FILE_ATTRIBUTES)
{
lstrcpynW(m_szMcdxExe, szPath, _countof(m_szMcdxExe));
}
else
{
lstrcpyW(m_szMcdxExe, m_szDataFolder);
lstrcatW(m_szMcdxExe, L"\\bin\\mcdx.exe");
if (::GetFileAttributesW(m_szUpxExe) == INVALID_FILE_ATTRIBUTES)
if (::GetFileAttributesW(m_szMcdxExe) == INVALID_FILE_ATTRIBUTES)
{
ErrorBoxDx(TEXT("ERROR: No mcdx.exe found."));
return -6; // failure
Expand Down

0 comments on commit 140883a

Please sign in to comment.