Changed: Use absolute path

This commit is contained in:
kervala 2016-02-02 19:50:04 +01:00
parent 850ea0d211
commit d6fd38a8aa

View file

@ -719,7 +719,7 @@ void CPatchManager::stopPatchThread()
// **************************************************************************** // ****************************************************************************
void CPatchManager::deleteBatchFile() void CPatchManager::deleteBatchFile()
{ {
deleteFile(UpdateBatchFilename, false, false); deleteFile(ClientRootPath + UpdateBatchFilename, false, false);
} }
// **************************************************************************** // ****************************************************************************
@ -952,7 +952,7 @@ void CPatchManager::executeBatchFile()
else else
{ {
// error occurs during the launch // error occurs during the launch
string str = toString("Can't execute '%s': code=%d %s (error code 30)", UpdateBatchFilename.c_str(), errno, strerror(errno)); string str = toString("Can't execute '%s': code=%d %s (error code 30)", batchFilename.c_str(), errno, strerror(errno));
throw Exception (str); throw Exception (str);
} }
} }