Skip to content

Commit

Permalink
Merge pull request #2 from bastik-1001/bastik-1001-spell-1-2
Browse files Browse the repository at this point in the history
Update init.c
  • Loading branch information
bastik-1001 committed Mar 10, 2024
2 parents 07f61d3 + 02d67b2 commit e6ed6ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sandboxie/core/low/init.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright 2004-2020 Sandboxie Holdings, LLC
* Copyright 2020-2022 David Xanatos, xanasoft.com
* Copyright 2020-2024 David Xanatos, xanasoft.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -193,7 +193,7 @@ _FX NTSTATUS SbieApi_LogMsg(ULONG64 pNtDeviceIoControlFile, ULONG64 api_device_h

_FX NTSTATUS SbieApi_DebugError(SBIELOW_DATA* data, ULONG error)
{
// Note: A normal string like L"text" would not resultin position independent code !!!
// Note: A normal string like L"text" would not result in position independent code !!!
// hence we create a string array and fill it byte by byte

wchar_t text[] = { 'L','o','w','L','e','v','e','l',' ','E','r','r','o','r',':',' ','0','x',0,0,0,0,0,0,0,0,0,0};
Expand Down Expand Up @@ -573,7 +573,7 @@ _FX void InitSyscalls(SBIELOW_DATA *data, void * SystemService)
_FX NTSTATUS MyImageOptionsEx(PUNICODE_STRING SubKey, PCWSTR ValueName,
ULONG Type, PVOID Buffer, ULONG BufferSize, PULONG ReturnedLength, BOOLEAN Wow64, SBIELOW_DATA* data)
{
// Note: A normal string like L"LoadCHPEBinaries" would not resultin position independent code !!!
// Note: A normal string like L"LoadCHPEBinaries" would not result in position independent code !!!
wchar_t LoadCHPEBinaries[] = { 'L','o','a','d','C','H','P','E','B','i','n','a','r','i','e','s',0 };
PCWSTR ptr = ValueName;
for (PCWSTR tmp = LoadCHPEBinaries; *ptr && *tmp && *ptr == *tmp; ptr++, tmp++);
Expand Down

0 comments on commit e6ed6ad

Please sign in to comment.