|
Line 0
Link Here
|
|
|
1 |
--- src/WWW.cpp.orig 2015-01-10 18:11:22.000000000 +0100 |
| 2 |
+++ src/WWW.cpp 2015-01-10 18:21:32.000000000 +0100 |
| 3 |
@@ -206,7 +206,7 @@ void FSWeb::downloadFile(const std::stri |
| 4 |
std::string v_www_agent = WWW_AGENT; |
| 5 |
|
| 6 |
/* open the file */ |
| 7 |
- if( (v_destinationFile = fopen(v_local_file_tmp.c_str(), "wb")) == false) { |
| 8 |
+ if( (v_destinationFile = fopen(v_local_file_tmp.c_str(), "wb")) == NULL) { |
| 9 |
throw Exception("error : unable to open output file " |
| 10 |
+ v_local_file_tmp); |
| 11 |
} |
| 12 |
@@ -320,7 +320,7 @@ void FSWeb::uploadReplay(const std::stri |
| 13 |
LogInfo(std::string("Uploading replay " + p_replayFilename).c_str()); |
| 14 |
|
| 15 |
/* open the file */ |
| 16 |
- if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { |
| 17 |
+ if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { |
| 18 |
throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("UR")); |
| 19 |
} |
| 20 |
|
| 21 |
@@ -478,7 +478,7 @@ void FSWeb::sendVote(const std::string& |
| 22 |
LogInfo("Sending vote"); |
| 23 |
|
| 24 |
/* open the file */ |
| 25 |
- if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { |
| 26 |
+ if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { |
| 27 |
throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("SV")); |
| 28 |
} |
| 29 |
|
| 30 |
@@ -562,7 +562,7 @@ void FSWeb::sendReport(const std::string |
| 31 |
LogInfo("Sending report"); |
| 32 |
|
| 33 |
/* open the file */ |
| 34 |
- if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { |
| 35 |
+ if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { |
| 36 |
throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("SR")); |
| 37 |
} |
| 38 |
|
| 39 |
@@ -677,7 +677,7 @@ void FSWeb::uploadDbSync(const std::stri |
| 40 |
LogInfo(std::string("Uploading dbsync " + p_dbSyncFilename + " to " + p_url_to_transfert).c_str()); |
| 41 |
|
| 42 |
/* open the file */ |
| 43 |
- if( (v_destinationFile = fopen(p_answerFile.c_str(), "wb")) == false) { |
| 44 |
+ if( (v_destinationFile = fopen(p_answerFile.c_str(), "wb")) == NULL) { |
| 45 |
throw Exception("error : unable to open output file " + p_answerFile); |
| 46 |
} |
| 47 |
|