X-Git-Url: https://sfsrealm.hopto.org/projects/gitweb.cgi?p=SFmpqapi.git;a=blobdiff_plain;f=SFUtil.cpp;fp=SFUtil.cpp;h=8df5505a95646f4b70412b5a6c347003c5b22d3a;hp=76d2228e351497b8943485382c340e84bdafc809;hb=41207b3631795f5b382518a8b575ef13c42058a1;hpb=9440724eda5b0917b8992b3bb32b502d51b3be8a diff --git a/SFUtil.cpp b/SFUtil.cpp index 76d2228..8df5505 100644 --- a/SFUtil.cpp +++ b/SFUtil.cpp @@ -60,7 +60,7 @@ Int64 SFSetFilePointer(HANDLE hFile, Int64 nDistance, UInt32 dwMoveMethod) FilePos.i32[0] = ::SetFilePointer(hFile, FilePos.i32[0], &FilePos.i32[1], dwMoveMethod); - if (FilePos.i32[0] == INVALID_SET_FILE_POINTER) { + if (FilePos.ui32[0] == INVALID_SET_FILE_POINTER) { if (::GetLastError() != NO_ERROR) return -1; } @@ -85,7 +85,7 @@ char *nextline(const char *strline) const char *strcr = strchr(strline,'\r'); const char *strlf = strchr(strline,'\n'); if (strcr==0 && strlf==0) return 0; - const char *streol; + const char *streol = strlf; if (strcr!=0 && (strcr