[pkg-wine-party] [SCM] Debian Wine packaging branch, wheezy, updated. wine-1.4-7-302-gb61b690
Alexandre Julliard
julliard at winehq.org
Sun Jun 17 20:02:01 UTC 2012
The following commit has been merged in the wheezy branch:
commit da2d40fd08599d0e371c472ea1d2a797b11b52d9
Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date: Mon Mar 12 21:14:04 2012 +0900
msvcrt: Add support for fflush to clear an input buffer.
(cherry picked from commit 1a01893c746beff8b41b7ad9c78df47ced89a012)
diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c
index c15e33f..7fbe07e 100644
--- a/dlls/msvcrt/file.c
+++ b/dlls/msvcrt/file.c
@@ -792,6 +792,13 @@ int CDECL MSVCRT_fflush(MSVCRT_FILE* file)
MSVCRT__unlock_file(file);
return res;
+ } else if(file->_flag & MSVCRT__IOREAD) {
+ MSVCRT__lock_file(file);
+ file->_cnt = 0;
+ file->_ptr = file->_base;
+ MSVCRT__unlock_file(file);
+
+ return 0;
}
return 0;
}
--
Debian Wine packaging
More information about the pkg-wine-party
mailing list