diff options
author | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2014-06-01 06:09:56 +0200 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2014-06-01 06:09:56 +0200 |
commit | 082fb091f1a0cab9d00e82de54fee32b6a1c0c7b (patch) | |
tree | a3e73e4d8b2279c3221a297ac770c96ef92175e2 /heimdall/source/DownloadPitAction.cpp | |
parent | Fixed file transfer sequence bug (diff) | |
download | Heimdall-082fb091f1a0cab9d00e82de54fee32b6a1c0c7b.tar Heimdall-082fb091f1a0cab9d00e82de54fee32b6a1c0c7b.tar.gz Heimdall-082fb091f1a0cab9d00e82de54fee32b6a1c0c7b.tar.bz2 Heimdall-082fb091f1a0cab9d00e82de54fee32b6a1c0c7b.tar.lz Heimdall-082fb091f1a0cab9d00e82de54fee32b6a1c0c7b.tar.xz Heimdall-082fb091f1a0cab9d00e82de54fee32b6a1c0c7b.tar.zst Heimdall-082fb091f1a0cab9d00e82de54fee32b6a1c0c7b.zip |
Diffstat (limited to '')
-rw-r--r-- | heimdall/source/DownloadPitAction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/heimdall/source/DownloadPitAction.cpp b/heimdall/source/DownloadPitAction.cpp index 000844e..841afd2 100644 --- a/heimdall/source/DownloadPitAction.cpp +++ b/heimdall/source/DownloadPitAction.cpp @@ -120,7 +120,7 @@ int DownloadPitAction::Execute(int argc, char **argv) // Open output file const char *outputFilename = outputArgument->GetValue().c_str(); - FILE *outputPitFile = fopen(outputFilename, "wb"); + FILE *outputPitFile = FileOpen(outputFilename, "wb"); if (!outputPitFile) { @@ -135,7 +135,7 @@ int DownloadPitAction::Execute(int argc, char **argv) if (bridgeManager->Initialise(resume) != BridgeManager::kInitialiseSucceeded || !bridgeManager->BeginSession()) { - fclose(outputPitFile); + FileClose(outputPitFile); delete bridgeManager; return (1); @@ -164,7 +164,7 @@ int DownloadPitAction::Execute(int argc, char **argv) delete bridgeManager; - fclose(outputPitFile); + FileClose(outputPitFile); delete [] pitBuffer; return (success ? 0 : 1); |