diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bb8f983c0..aa3098b333 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). - fixed issue when re creating rambox junction - fixed Side logo cut-off in all wizards [#3227](https://github.com/sandboxie-plus/Sandboxie/issues/3227) - fixed Text cut-off in box creation wizard [#3226](https://github.com/sandboxie-plus/Sandboxie/issues/3226) +- fixed windows 7 compatybility issue with ImBox.exe + ## [1.11.0 / 5.66.0] - 2023-08-25 diff --git a/SandboxiePlus/version.h b/SandboxiePlus/version.h index 046e2ae8a0..d370baf62b 100644 --- a/SandboxiePlus/version.h +++ b/SandboxiePlus/version.h @@ -3,7 +3,7 @@ #define VERSION_MJR 1 #define VERSION_MIN 11 #define VERSION_REV 0 -#define VERSION_UPD 3 +#define VERSION_UPD 4 #ifndef STR #define STR2(X) #X diff --git a/SandboxieTools/ImBox/CryptoIO.cpp b/SandboxieTools/ImBox/CryptoIO.cpp index f77977b652..2ea87b55d5 100644 --- a/SandboxieTools/ImBox/CryptoIO.cpp +++ b/SandboxieTools/ImBox/CryptoIO.cpp @@ -324,7 +324,8 @@ int CCryptoIO::BackupHeader(CAbstractIO* pIO, const std::wstring& Path) 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); if (hFile != INVALID_HANDLE_VALUE) { - if (!WriteFile(hFile, header.ptr, sizeof(dc_header), NULL, NULL)) { + DWORD BytesWritten; + if (!WriteFile(hFile, header.ptr, sizeof(dc_header), &BytesWritten, NULL)) { ret = ERR_FILE_NOT_OPENED; } CloseHandle(hFile); @@ -349,7 +350,8 @@ int CCryptoIO::RestoreHeader(CAbstractIO* pIO, const std::wstring& Path) 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); if (hFile != INVALID_HANDLE_VALUE) { - if (!ReadFile(hFile, header.ptr, sizeof(dc_header), NULL, NULL)) { + DWORD BytesRead; + if (!ReadFile(hFile, header.ptr, sizeof(dc_header), &BytesRead, NULL)) { ret = ERR_FILE_NOT_OPENED; } CloseHandle(hFile); diff --git a/SandboxieTools/ImBox/ImageFileIO.cpp b/SandboxieTools/ImBox/ImageFileIO.cpp index ba1415bbc9..4cc5e25830 100644 --- a/SandboxieTools/ImBox/ImageFileIO.cpp +++ b/SandboxieTools/ImBox/ImageFileIO.cpp @@ -118,13 +118,15 @@ int CImageFileIO::Init() bool CImageFileIO::DiskWrite(void* buf, int size, __int64 offset) { SetFilePointerEx(m->Handle, *(LARGE_INTEGER*)&offset, NULL, FILE_BEGIN); - return !!WriteFile(m->Handle, buf, size, NULL, NULL); + DWORD BytesWritten; + return !!WriteFile(m->Handle, buf, size, &BytesWritten, NULL); } bool CImageFileIO::DiskRead(void* buf, int size, __int64 offset) { SetFilePointerEx(m->Handle, *(LARGE_INTEGER*)&offset, NULL, FILE_BEGIN); - return !!ReadFile(m->Handle, buf, size, NULL, NULL); + DWORD BytesRead; + return !!ReadFile(m->Handle, buf, size, &BytesRead, NULL); } void CImageFileIO::TrimProcess(DEVICE_DATA_SET_RANGE* range, int n)