Skip to content

Commit 1f0b2b7

Browse files
committed
1.11.0d
1 parent ccf3f1a commit 1f0b2b7

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1616
- fixed issue when re creating rambox junction
1717
- fixed Side logo cut-off in all wizards [#3227](https://github.com/sandboxie-plus/Sandboxie/issues/3227)
1818
- fixed Text cut-off in box creation wizard [#3226](https://github.com/sandboxie-plus/Sandboxie/issues/3226)
19+
- fixed windows 7 compatybility issue with ImBox.exe
20+
1921

2022

2123
## [1.11.0 / 5.66.0] - 2023-08-25

SandboxiePlus/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define VERSION_MJR 1
44
#define VERSION_MIN 11
55
#define VERSION_REV 0
6-
#define VERSION_UPD 3
6+
#define VERSION_UPD 4
77

88
#ifndef STR
99
#define STR2(X) #X

SandboxieTools/ImBox/CryptoIO.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ int CCryptoIO::BackupHeader(CAbstractIO* pIO, const std::wstring& Path)
324324

325325
HANDLE hFile = CreateFile(Path.c_str(), GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_FLAG_NO_BUFFERING | FILE_FLAG_WRITE_THROUGH, NULL);
326326
if (hFile != INVALID_HANDLE_VALUE) {
327-
if (!WriteFile(hFile, header.ptr, sizeof(dc_header), NULL, NULL)) {
327+
DWORD BytesWritten;
328+
if (!WriteFile(hFile, header.ptr, sizeof(dc_header), &BytesWritten, NULL)) {
328329
ret = ERR_FILE_NOT_OPENED;
329330
}
330331
CloseHandle(hFile);
@@ -349,7 +350,8 @@ int CCryptoIO::RestoreHeader(CAbstractIO* pIO, const std::wstring& Path)
349350

350351
HANDLE hFile = CreateFile(Path.c_str(), GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_FLAG_NO_BUFFERING | FILE_FLAG_WRITE_THROUGH, NULL);
351352
if (hFile != INVALID_HANDLE_VALUE) {
352-
if (!ReadFile(hFile, header.ptr, sizeof(dc_header), NULL, NULL)) {
353+
DWORD BytesRead;
354+
if (!ReadFile(hFile, header.ptr, sizeof(dc_header), &BytesRead, NULL)) {
353355
ret = ERR_FILE_NOT_OPENED;
354356
}
355357
CloseHandle(hFile);

SandboxieTools/ImBox/ImageFileIO.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,15 @@ int CImageFileIO::Init()
118118
bool CImageFileIO::DiskWrite(void* buf, int size, __int64 offset)
119119
{
120120
SetFilePointerEx(m->Handle, *(LARGE_INTEGER*)&offset, NULL, FILE_BEGIN);
121-
return !!WriteFile(m->Handle, buf, size, NULL, NULL);
121+
DWORD BytesWritten;
122+
return !!WriteFile(m->Handle, buf, size, &BytesWritten, NULL);
122123
}
123124

124125
bool CImageFileIO::DiskRead(void* buf, int size, __int64 offset)
125126
{
126127
SetFilePointerEx(m->Handle, *(LARGE_INTEGER*)&offset, NULL, FILE_BEGIN);
127-
return !!ReadFile(m->Handle, buf, size, NULL, NULL);
128+
DWORD BytesRead;
129+
return !!ReadFile(m->Handle, buf, size, &BytesRead, NULL);
128130
}
129131

130132
void CImageFileIO::TrimProcess(DEVICE_DATA_SET_RANGE* range, int n)

0 commit comments

Comments
 (0)