diff --git a/Sandboxie/core/dll/file_init.c b/Sandboxie/core/dll/file_init.c index fc296d08f3..e0b10abd5e 100644 --- a/Sandboxie/core/dll/file_init.c +++ b/Sandboxie/core/dll/file_init.c @@ -1770,8 +1770,8 @@ _FX void File_InitSnapshots(void) if (*Shapshot == 0) return; // not using snapshots - File_Snapshot = Dll_Alloc(sizeof(FILE_SNAPSHOT *)); - memzero(File_Snapshot, sizeof(FILE_SNAPSHOT *)); + File_Snapshot = Dll_Alloc(sizeof(FILE_SNAPSHOT)); + memzero(File_Snapshot, sizeof(FILE_SNAPSHOT)); wcscpy(File_Snapshot->ID, Shapshot); File_Snapshot->IDlen = wcslen(Shapshot); FILE_SNAPSHOT* Cur_Snapshot = File_Snapshot; @@ -1793,8 +1793,8 @@ _FX void File_InitSnapshots(void) if (*Shapshot == 0) break; // no more snapshots - Cur_Snapshot->Parent = Dll_Alloc(sizeof(FILE_SNAPSHOT *)); - memzero(Cur_Snapshot->Parent, sizeof(FILE_SNAPSHOT *)); + Cur_Snapshot->Parent = Dll_Alloc(sizeof(FILE_SNAPSHOT)); + memzero(Cur_Snapshot->Parent, sizeof(FILE_SNAPSHOT)); wcscpy(Cur_Snapshot->Parent->ID, Shapshot); Cur_Snapshot->Parent->IDlen = wcslen(Shapshot); Cur_Snapshot = Cur_Snapshot->Parent; diff --git a/SandboxiePlus/MiscHelpers/Common/TreeViewEx.h b/SandboxiePlus/MiscHelpers/Common/TreeViewEx.h index 00de812de9..80cda62b73 100644 --- a/SandboxiePlus/MiscHelpers/Common/TreeViewEx.h +++ b/SandboxiePlus/MiscHelpers/Common/TreeViewEx.h @@ -4,7 +4,7 @@ __inline uint qHash( const QVariant & var ) { - if ( !var.isValid() || var.isNull() ) + if ( !var.isValid() /*|| var.isNull()*/ ) //return -1; Q_ASSERT(0);