]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/file.cpp
explicit scrollbar style flags needed
[wxWidgets.git] / src / common / file.cpp
index 283d91002f8618110a8f7f12d5f81782c5bf49c7..cf35fd14864a9783b145cb033537bf240d7c812f 100644 (file)
@@ -414,10 +414,10 @@ size_t wxFile::Write(const void *pBuf, size_t nCount)
     wxCHECK( (pBuf != NULL) && IsOpened(), 0 );
 
 #ifdef __WXWINCE__
-    DWORD bytesRead = 0;
+    DWORD bytesWritten = 0;
     int iRc = 0;
-    if (WriteFile((HANDLE) m_fd, pBuf, (DWORD) nCount, & bytesRead, NULL))
-        iRc = bytesRead;
+    if (WriteFile((HANDLE) m_fd, pBuf, (DWORD) nCount, & bytesWritten, NULL))
+        iRc = bytesWritten;
     else
         iRc = -1;
 #elif defined(__MWERKS__)