/[svn]/libgig/trunk/src/RIFF.cpp
ViewVC logotype

Diff of /libgig/trunk/src/RIFF.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1050 by schoenebeck, Fri Mar 2 01:04:45 2007 UTC revision 1093 by schoenebeck, Sun Mar 11 17:44:31 2007 UTC
# Line 1155  namespace RIFF { Line 1155  namespace RIFF {
1155       *       *
1156       * Removes the sub chunk given by \a pSubChunk from this list and frees       * Removes the sub chunk given by \a pSubChunk from this list and frees
1157       * it completely from RAM. The given chunk can either be a normal sub       * it completely from RAM. The given chunk can either be a normal sub
1158       * chunk or a list sub chunk. You should call File::Save() to make this       * chunk or a list sub chunk. In case the given chunk is a list chunk,
1159       * change persistent at any time.       * all its subchunks (if any) will be removed recursively as well. You
1160         * should call File::Save() to make this change persistent at any time.
1161       *       *
1162       * @param pSubChunk - sub chunk or sub list chunk to be removed       * @param pSubChunk - sub chunk or sub list chunk to be removed
1163       */       */
# Line 1688  namespace RIFF { Line 1689  namespace RIFF {
1689      }      }
1690      #elif defined(WIN32)      #elif defined(WIN32)
1691      unsigned long File::__GetFileSize(HANDLE hFile) {      unsigned long File::__GetFileSize(HANDLE hFile) {
1692          LARGE_INTEGER size;          DWORD dwSize = ::GetFileSize(hFile, NULL /*32bit*/);
1693          GetFileSizeEx(hFile, &size);          if (dwSize == INVALID_FILE_SIZE)
1694          return size.LowPart;              throw Exception("Windows FS error: could not determine file size");
1695            return dwSize;
1696      }      }
1697      #else // standard C functions      #else // standard C functions
1698      unsigned long File::__GetFileSize(FILE* hFile) {      unsigned long File::__GetFileSize(FILE* hFile) {

Legend:
Removed from v.1050  
changed lines
  Added in v.1093

  ViewVC Help
Powered by ViewVC