Francois Gouget : msvcrt: Fix compilation on systems that don' t support nameless unions.

Alexandre Julliard julliard at winehq.org
Thu Apr 28 12:18:57 CDT 2011


Module: wine
Branch: master
Commit: 4df46f69bf324b8b60392c29fb5ed94be963fab7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4df46f69bf324b8b60392c29fb5ed94be963fab7

Author: Francois Gouget <fgouget at free.fr>
Date:   Thu Apr 28 11:30:10 2011 +0200

msvcrt: Fix compilation on systems that don't support nameless unions.

---

 dlls/msvcrt/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c
index 30613ca..c9ad136 100644
--- a/dlls/msvcrt/file.c
+++ b/dlls/msvcrt/file.c
@@ -884,7 +884,7 @@ __int64 CDECL MSVCRT__lseeki64(int fd, __int64 offset, int whence)
   /* The MoleBox protection scheme expects msvcrt to use SetFilePointer only,
    * so a LARGE_INTEGER offset cannot be passed directly via SetFilePointerEx. */
   ofs.QuadPart = offset;
-  if ((ofs.LowPart = SetFilePointer(hand, ofs.LowPart, &ofs.HighPart, whence)) != INVALID_SET_FILE_POINTER ||
+  if ((ofs.u.LowPart = SetFilePointer(hand, ofs.u.LowPart, &ofs.u.HighPart, whence)) != INVALID_SET_FILE_POINTER ||
       GetLastError() == ERROR_SUCCESS)
   {
     MSVCRT_fdesc[fd].wxflag &= ~(WX_ATEOF|WX_READEOF);




More information about the wine-cvs mailing list