Changeset 73097 in vbox for trunk/src/VBox/Runtime/r3/win/process-win.cpp
- Timestamp:
- Jul 12, 2018 9:06:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/process-win.cpp
r70486 r73097 831 831 uOld = uNew; 832 832 SetLastError(NO_ERROR); 833 DWORD cbActual = RT_ OFFSETOF(TOKEN_PRIVILEGES, Privileges[1]);833 DWORD cbActual = RT_UOFFSETOF(TOKEN_PRIVILEGES, Privileges[1]); 834 834 AdjustTokenPrivileges(hToken, FALSE /*fDisableAllPrivileges*/, &uNew.TokPriv, cbActual, &uOld.TokPriv, &cbActual); 835 835 if (GetLastError() != NO_ERROR) … … 1124 1124 } AceBuf; 1125 1125 RT_ZERO(AceBuf); 1126 uint32_t const cbAllowedAce = RT_ OFFSETOF(ACCESS_ALLOWED_ACE, SidStart) + cbSid;1126 uint32_t const cbAllowedAce = RT_UOFFSETOF(ACCESS_ALLOWED_ACE, SidStart) + cbSid; 1127 1127 AssertReturn(cbAllowedAce <= sizeof(AceBuf), false); 1128 1128 … … 1848 1848 SIZE_T cbCopied = 0; 1849 1849 if (!ReadProcessMemory(hDstProcess, 1850 (char *)BasicInfo.PebBaseAddress + RT_ OFFSETOF(PEB_COMMON, ProcessParameters),1850 (char *)BasicInfo.PebBaseAddress + RT_UOFFSETOF(PEB_COMMON, ProcessParameters), 1851 1851 ppvDstProcParamCache, sizeof(*ppvDstProcParamCache), &cbCopied)) 1852 1852 { … … 2006 2006 PVOID pvDstProcParamCache = NULL; 2007 2007 rtProcWinDupStdHandleIntoChild(pStartupInfo->hStdInput, pProcInfo->hProcess, 2008 RT_ OFFSETOF(RTL_USER_PROCESS_PARAMETERS, StandardInput), &pvDstProcParamCache);2008 RT_UOFFSETOF(RTL_USER_PROCESS_PARAMETERS, StandardInput), &pvDstProcParamCache); 2009 2009 rtProcWinDupStdHandleIntoChild(pStartupInfo->hStdOutput, pProcInfo->hProcess, 2010 RT_ OFFSETOF(RTL_USER_PROCESS_PARAMETERS, StandardOutput), &pvDstProcParamCache);2010 RT_UOFFSETOF(RTL_USER_PROCESS_PARAMETERS, StandardOutput), &pvDstProcParamCache); 2011 2011 rtProcWinDupStdHandleIntoChild(pStartupInfo->hStdError, pProcInfo->hProcess, 2012 RT_ OFFSETOF(RTL_USER_PROCESS_PARAMETERS, StandardError), &pvDstProcParamCache);2012 RT_UOFFSETOF(RTL_USER_PROCESS_PARAMETERS, StandardError), &pvDstProcParamCache); 2013 2013 2014 2014 if (ResumeThread(pProcInfo->hThread) != ~(DWORD)0)
Note:
See TracChangeset
for help on using the changeset viewer.