diff --git a/Sandboxie/core/dll/file_del.c b/Sandboxie/core/dll/file_del.c index 01a8294e..152bd988 100644 --- a/Sandboxie/core/dll/file_del.c +++ b/Sandboxie/core/dll/file_del.c @@ -371,7 +371,7 @@ _FX VOID File_SavePathNode_internal(HANDLE hPathsFile, LIST* parent, WCHAR* Path } // write line ending - NtWriteFile(hPathsFile, NULL, NULL, NULL, &IoStatusBlock, CrLf, sizeof(CrLf) - sizeof(WCHAR), NULL, NULL); + NtWriteFile(hPathsFile, NULL, NULL, NULL, &IoStatusBlock, (void*)CrLf, sizeof(CrLf) - sizeof(WCHAR), NULL, NULL); } File_SavePathNode_internal(hPathsFile, &child->items, Path, Path_Len, SetFlags | child->flags);