cedric pushed a commit to branch master.

commit 464c58a1c99d49927f14ed0e5ca2811f4401542c
Author: Cedric Bail <[email protected]>
Date:   Thu Aug 8 17:17:58 2013 +0900

    eina: another fix for windows build.
---
 src/lib/eina/eina_file_win32.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/lib/eina/eina_file_win32.c b/src/lib/eina/eina_file_win32.c
index 6b4e247..04c8db4 100644
--- a/src/lib/eina/eina_file_win32.c
+++ b/src/lib/eina/eina_file_win32.c
@@ -729,6 +729,7 @@ eina_file_refresh(Eina_File *file)
    WIN32_FILE_ATTRIBUTE_DATA fad;
    ULARGE_INTEGER length;
    ULARGE_INTEGER mtime;
+   Eina_Bool r = EINA_FALSE;
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(file, EINA_FALSE);
 
@@ -744,12 +745,12 @@ eina_file_refresh(Eina_File *file)
 
    if (file->length != length.QuadPart)
      {
-        eina_file_flush(file, file_stat.st_size);
+        eina_file_flush(file, length.QuadPart);
         r = EINA_TRUE;
      }
 
-   n->length = length.QuadPart;
-   n->mtime = mtime.QuadPart;
+   file->length = length.QuadPart;
+   file->mtime = mtime.QuadPart;
 
    return r;
 }

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to