Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions suite/tests/security-win32/sd_tester.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2011-2013 Google, Inc. All rights reserved.
* Copyright (c) 2011-2026 Google, Inc. All rights reserved.
* Copyright (c) 2004 VMware, Inc. All rights reserved.
* **********************************************************/

Expand Down Expand Up @@ -129,7 +129,7 @@ main(int argc, char **argv)
buffer_test("heap");
buffer_test("newheap");
#ifndef X64
/* disabling b/c messes up the print: "success" comes out as "Ðuccess" */
/* disabling b/c messes up the print: "success" has 's' as a non-utf8 char */
buffer_test("crtheap");
#endif
buffer_test("virtual");
Expand Down
3 changes: 2 additions & 1 deletion tools/DRinstall/ShellInterface.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* **********************************************************
* Copyright (c) 2026 Google, Inc. All rights reserved.
* Copyright (c) 2008 VMware, Inc. All rights reserved.
* **********************************************************/

Expand Down Expand Up @@ -218,7 +219,7 @@ HRESULT CreateShortCut::CreateIt (LPCSTR pszShortcutFile, LPSTR pszLink,
hres = ppf->Save (wsz, TRUE);

if (! SUCCEEDED (hres))
AfxMessageBox (Save failed!);
AfxMessageBox ("Save failed!");

// Release the pointer to IPersistFile.
ppf->Release ();
Expand Down
9 changes: 5 additions & 4 deletions tools/runjob.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* **********************************************************
* Copyright (c) 2026 Google, Inc. All rights reserved.
* Copyright (c) 2007 VMware, Inc. All rights reserved.
* **********************************************************/

Expand Down Expand Up @@ -121,10 +122,10 @@ StartRestrictedProcess(LPTSTR app_name, LPTSTR app_cmdline, SIZE_T pagefile_limi
// Second, set some UI restrictions
jobuir.UIRestrictionsClass = JOB_OBJECT_UILIMIT_NONE; // A fancy 0

// The process cant logoff the system
// The process can't logoff the system
jobuir.UIRestrictionsClass |= JOB_OBJECT_UILIMIT_EXITWINDOWS;

// The process cant access USER object (like other windows) in the system
// The process can't access USER object (like other windows) in the system
jobuir.UIRestrictionsClass |= JOB_OBJECT_UILIMIT_HANDLES;

ok = SetInformationJobObject(hjob, JobObjectBasicUIRestrictions, &jobuir,
Expand Down Expand Up @@ -158,11 +159,11 @@ StartRestrictedProcess(LPTSTR app_name, LPTSTR app_cmdline, SIZE_T pagefile_limi
// automatically associated with the same job
AssignProcessToJobObject(hjob, pi.hProcess);

// Now, we can allow the child processs thread to execute code.
// Now, we can allow the child process's thread to execute code.
ResumeThread(pi.hThread);
CloseHandle(pi.hThread);

// Wait for the process to terminate or for all the jobs allotted CPU time to be used
// Wait for the process to terminate or for all the job's allotted CPU time to be used
{
DWORD dw;
HANDLE h[2];
Expand Down
Loading