summaryrefslogtreecommitdiff
path: root/src/FileStream.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <ladislav.zezula@avg.com>2013-04-02 13:46:00 +0200
committerLadislav Zezula <ladislav.zezula@avg.com>2013-04-02 13:46:00 +0200
commit6c26fe38db47ea68ddd3b83e5c70bf108287f3ee (patch)
treecd99b6400e80ee8c297b179f0b7fdbb0f6657fcd /src/FileStream.cpp
parent1624e324de2ada1da986f1d73dec3b9c4b2cbcd8 (diff)
+ Removed mess from project files
+ Project files for VS 2012
Diffstat (limited to 'src/FileStream.cpp')
-rw-r--r--src/FileStream.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/FileStream.cpp b/src/FileStream.cpp
index 0c668dc..fdeb9dc 100644
--- a/src/FileStream.cpp
+++ b/src/FileStream.cpp
@@ -743,7 +743,6 @@ static bool BaseHttp_Read(
TCHAR szRangeRequest[0x80];
DWORD dwStartOffset = (DWORD)ByteOffset;
DWORD dwEndOffset = dwStartOffset + dwBytesToRead;
- BYTE Buffer[0x200];
// Open HTTP request to the file
szFileName = BaseHttp_ExtractServerName(pStream->szFileName, NULL);
@@ -764,8 +763,8 @@ static bool BaseHttp_Read(
DWORD dwBlockBytesRead = 0;
// Read the block from the file
- if(dwBlockBytesToRead > sizeof(Buffer))
- dwBlockBytesToRead = sizeof(Buffer);
+ if(dwBlockBytesToRead > 0x200)
+ dwBlockBytesToRead = 0x200;
InternetReadFile(hRequest, pbBuffer, dwBlockBytesToRead, &dwBlockBytesRead);
// Check for end