aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extension/curlmanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/extension/curlmanager.cpp b/extension/curlmanager.cpp
index 973d133..6a64c10 100644
--- a/extension/curlmanager.cpp
+++ b/extension/curlmanager.cpp
@@ -19,13 +19,15 @@ struct data_t {
size_t nmemb;
size_t return_value;
};
-
+#include <io.h>
/* Write Function */
static size_t curl_write_function_default(void *ptr, size_t bytes, size_t nmemb, void *stream)
{
FILE *file = (FILE *)stream;
#ifdef WIN32
- if(file->_file >= 3)
+ //if(file->_file >= 3)
+
+ if ( _filelength(_fileno(file)) >= 3 )
#else
if(file->_fileno >= 3)
#endif