Changeset 84394 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- May 20, 2020 9:30:48 AM (5 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r83802 r84394 509 509 if (NT_SUCCESS(rcNt)) 510 510 { 511 PSUPDRVDEVEXTERRORINFO pDevExt Stub= (PSUPDRVDEVEXTERRORINFO)g_pDevObjStub->DeviceExtension;512 pDevExt Stub->Common.pMainDrvExt = (PSUPDRVDEVEXT)g_pDevObjSys->DeviceExtension;513 pDevExt Stub->Common.u32Cookie = SUPDRVDEVEXTERRORINFO_COOKIE;511 PSUPDRVDEVEXTERRORINFO pDevExtErrInf = (PSUPDRVDEVEXTERRORINFO)g_pDevObjStub->DeviceExtension; 512 pDevExtErrInf->Common.pMainDrvExt = (PSUPDRVDEVEXT)g_pDevObjSys->DeviceExtension; 513 pDevExtErrInf->Common.u32Cookie = SUPDRVDEVEXTERRORINFO_COOKIE; 514 514 515 515 #endif … … 3171 3171 AssertRCSuccess(rc); 3172 3172 3173 boolfDone = supdrvNtProtectGetAlpcPortObjectType2(wszPortNm, &pObjType);3173 fDone = supdrvNtProtectGetAlpcPortObjectType2(wszPortNm, &pObjType); 3174 3174 if (!fDone) 3175 3175 { … … 4734 4734 continue; 4735 4735 PEPROCESS pDbgProc; 4736 NTSTATUSrcNt = PsLookupProcessByProcessId(pHandleInfo->UniqueProcessId, &pDbgProc);4736 rcNt = PsLookupProcessByProcessId(pHandleInfo->UniqueProcessId, &pDbgProc); 4737 4737 if (NT_SUCCESS(rcNt)) 4738 4738 { -
trunk/src/VBox/HostDrivers/Support/win/SUPR3HardenedMain-win.cpp
r82968 r84394 4346 4346 assume same location as in the parent (safe): */ 4347 4347 PSUPHNTLDRCACHEENTRY pLdrEntryKernel32; 4348 intrc = supHardNtLdrCacheOpen("kernel32.dll", &pLdrEntryKernel32, NULL /*pErrInfo*/);4348 rc = supHardNtLdrCacheOpen("kernel32.dll", &pLdrEntryKernel32, NULL /*pErrInfo*/); 4349 4349 if (RT_FAILURE(rc)) 4350 4350 supR3HardenedWinKillChild(pThis, "supR3HardenedWinSetupChildInit", rc, … … 4542 4542 uint8_t abPadding[4096]; 4543 4543 } uBuf; 4544 NTSTATUSrcNt = NtQueryVirtualMemory(pThis->hProcess,4545 4546 4547 4548 4549 4544 rcNt = NtQueryVirtualMemory(pThis->hProcess, 4545 MemInfo.BaseAddress, 4546 MemorySectionName, 4547 &uBuf, 4548 sizeof(uBuf) - sizeof(WCHAR), 4549 &cbActual); 4550 4550 if (NT_SUCCESS(rcNt)) 4551 4551 { … … 6018 6018 * Print basic file information available via NtQueryInformationFile. 6019 6019 */ 6020 IO_STATUS_BLOCK Ios = RTNT_IO_STATUS_BLOCK_INITIALIZER;6020 RTNT_IO_STATUS_BLOCK_REINIT(&Ios); 6021 6021 rcNt = NtQueryInformationFile(hFile, &Ios, &u.BasicInfo, sizeof(u.BasicInfo), FileBasicInformation); 6022 6022 if (NT_SUCCESS(rcNt) && NT_SUCCESS(Ios.Status)) … … 6031 6031 SUP_DPRINTF((" FileBasicInformation -> %#x %#x\n", rcNt, Ios.Status)); 6032 6032 6033 RTNT_IO_STATUS_BLOCK_REINIT(&Ios); 6033 6034 rcNt = NtQueryInformationFile(hFile, &Ios, &u.StdInfo, sizeof(u.StdInfo), FileStandardInformation); 6034 6035 if (NT_SUCCESS(rcNt) && NT_SUCCESS(Ios.Status)) … … 6041 6042 */ 6042 6043 RT_ZERO(u); 6044 RTNT_IO_STATUS_BLOCK_REINIT(&Ios); 6043 6045 LARGE_INTEGER offRead; 6044 6046 offRead.QuadPart = 0; … … 6102 6104 if (offRead.QuadPart > 0) 6103 6105 { 6106 RTNT_IO_STATUS_BLOCK_REINIT(&Ios); 6104 6107 RT_ZERO(u); 6105 6108 rcNt = NtReadFile(hFile, NULL /*hEvent*/, NULL /*ApcRoutine*/, NULL /*ApcContext*/, &Ios,
Note:
See TracChangeset
for help on using the changeset viewer.