Skip to content

Commit

Permalink
1.11.0d
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidXanatos committed Aug 27, 2023
1 parent ccf3f1a commit 1f0b2b7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion SandboxiePlus/version.h
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions SandboxieTools/ImBox/CryptoIO.cpp
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
6 changes: 4 additions & 2 deletions SandboxieTools/ImBox/ImageFileIO.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 1f0b2b7

Please sign in to comment.