Skip to content

Commit

Permalink
experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
aliakseis committed Apr 4, 2021
1 parent 46524bf commit d0dcad9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Player/PlayerDoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,7 @@ BOOL CPlayerDoc::OnSaveDocument(LPCTSTR lpszPathName)
CString strParams;
if (isFullFrameRange())
{
TCHAR pszPath[MAX_PATH] = { 0 };
GetModuleFileName(NULL, pszPath, ARRAYSIZE(pszPath));
PathRemoveFileSpec(pszPath);
PathAppend(pszPath, _T("HttpDownload.exe"));
strFile = pszPath;
strFile = _T("HttpDownload.exe");
strParams = source + _T(" \"") + lpszPathName + _T('"');
}
else
Expand Down Expand Up @@ -446,7 +442,10 @@ BOOL CPlayerDoc::OnSaveDocument(LPCTSTR lpszPathName)
strParams += lpszPathName;
strParams += _T('"');
}
const auto result = ShellExecute(NULL, NULL, strFile, strParams, NULL, SW_MINIMIZE);
TCHAR pszPath[MAX_PATH] = { 0 };
GetModuleFileName(NULL, pszPath, ARRAYSIZE(pszPath));
PathRemoveFileSpec(pszPath);
const auto result = ShellExecute(NULL, NULL, strFile, strParams, pszPath, SW_MINIMIZE);
return int(result) > 32;
}

Expand Down

0 comments on commit d0dcad9

Please sign in to comment.