mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 18:59:09 +00:00
Fix an access violation in failed age patches
This commit is contained in:
@ -269,10 +269,6 @@ void plResPatcher::Finish(bool success)
|
|||||||
{
|
{
|
||||||
while (fRequests.size())
|
while (fRequests.size())
|
||||||
fRequests.pop();
|
fRequests.pop();
|
||||||
if (fProgress) {
|
|
||||||
delete fProgress;
|
|
||||||
fProgress = nil;
|
|
||||||
}
|
|
||||||
|
|
||||||
fPatching = false;
|
fPatching = false;
|
||||||
if (success)
|
if (success)
|
||||||
@ -280,16 +276,14 @@ void plResPatcher::Finish(bool success)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
PatcherLog(kHeader, "--- Patch Killed by Error ---");
|
PatcherLog(kHeader, "--- Patch Killed by Error ---");
|
||||||
fProgress->SetAborting();
|
if (fProgress)
|
||||||
|
fProgress->SetAborting();
|
||||||
}
|
}
|
||||||
|
delete fProgress; fProgress = nil;
|
||||||
|
|
||||||
plResPatcherMsg* pMsg = new plResPatcherMsg(success, sLastError);
|
plResPatcherMsg* pMsg = new plResPatcherMsg(success, sLastError);
|
||||||
|
delete[] sLastError; sLastError = nil;
|
||||||
pMsg->Send(); // whoosh... off it goes
|
pMsg->Send(); // whoosh... off it goes
|
||||||
if (sLastError)
|
|
||||||
{
|
|
||||||
delete[] sLastError;
|
|
||||||
sLastError = nil;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void plResPatcher::RequestFile(const wchar_t* srvName, const wchar_t* cliName)
|
void plResPatcher::RequestFile(const wchar_t* srvName, const wchar_t* cliName)
|
||||||
|
Reference in New Issue
Block a user