Piotr Caban : wininet: Store correct urlcache file size.
Alexandre Julliard
julliard at winehq.org
Fri Apr 13 11:03:22 CDT 2012
Module: wine
Branch: master
Commit: fdf2e15b807e5a35e6ab42375d457a1bff88ab05
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fdf2e15b807e5a35e6ab42375d457a1bff88ab05
Author: Piotr Caban <piotr at codeweavers.com>
Date: Fri Apr 13 17:17:39 2012 +0200
wininet: Store correct urlcache file size.
---
dlls/wininet/urlcache.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c
index 8f433ba..81b9fda 100644
--- a/dlls/wininet/urlcache.c
+++ b/dlls/wininet/urlcache.c
@@ -420,6 +420,7 @@ static DWORD URLCacheContainer_OpenIndex(URLCACHECONTAINER * pContainer, DWORD b
{
dwError = GetLastError();
}
+ dwFileSize = new_file_size;
CloseHandle(hMapping);
}
else
@@ -438,8 +439,8 @@ static DWORD URLCacheContainer_OpenIndex(URLCACHECONTAINER * pContainer, DWORD b
}
- pContainer->file_size = new_file_size;
- wsprintfW(wszFilePath, wszMappingFormat, pContainer->path, wszIndex, new_file_size);
+ pContainer->file_size = dwFileSize;
+ wsprintfW(wszFilePath, wszMappingFormat, pContainer->path, wszIndex, dwFileSize);
URLCache_PathToObjectName(wszFilePath, '_');
pContainer->hMapping = OpenFileMappingW(FILE_MAP_WRITE, FALSE, wszFilePath);
if (!pContainer->hMapping)
More information about the wine-cvs
mailing list