Changeset 53027 in vbox for trunk/src/VBox
- Timestamp:
- Oct 10, 2014 12:10:38 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPR3HardenedMain-win.cpp
r53025 r53027 3830 3830 if (pThis->iWhich > 1) 3831 3831 { 3832 OBJECT_ATTRIBUTES ObjAttr; 3833 InitializeObjectAttributes(&ObjAttr, NULL, 0, NULL /*hRootDir*/, NULL /*pSecDesc*/); 3834 3835 CLIENT_ID ClientId; 3836 ClientId.UniqueProcess = (HANDLE)pThis->BasicInfo.InheritedFromUniqueProcessId; 3837 ClientId.UniqueThread = NULL; 3838 3839 rcNt = NtOpenProcess(&pThis->hParent, SYNCHRONIZE | PROCESS_QUERY_INFORMATION, &ObjAttr, &ClientId); 3832 PROCESS_BASIC_INFORMATION SelfInfo; 3833 rcNt = NtQueryInformationProcess(NtCurrentProcess(), ProcessBasicInformation, &SelfInfo, sizeof(SelfInfo), &cbActual); 3834 if (NT_SUCCESS(rcNt)) 3835 { 3836 OBJECT_ATTRIBUTES ObjAttr; 3837 InitializeObjectAttributes(&ObjAttr, NULL, 0, NULL /*hRootDir*/, NULL /*pSecDesc*/); 3838 3839 CLIENT_ID ClientId; 3840 ClientId.UniqueProcess = (HANDLE)SelfInfo.InheritedFromUniqueProcessId; 3841 ClientId.UniqueThread = NULL; 3842 3843 rcNt = NtOpenProcess(&pThis->hParent, SYNCHRONIZE | PROCESS_QUERY_INFORMATION, &ObjAttr, &ClientId); 3840 3844 #ifdef DEBUG 3841 SUPR3HARDENED_ASSERT_NT_SUCCESS(rcNt);3845 SUPR3HARDENED_ASSERT_NT_SUCCESS(rcNt); 3842 3846 #endif 3843 if (!NT_SUCCESS(rcNt)) 3844 { 3845 pThis->hParent = NULL; 3846 SUP_DPRINTF(("supR3HardNtChildGatherData: Failed to open parent process (%#p): %#x\n", ClientId.UniqueProcess, rcNt)); 3847 if (!NT_SUCCESS(rcNt)) 3848 { 3849 pThis->hParent = NULL; 3850 SUP_DPRINTF(("supR3HardNtChildGatherData: Failed to open parent process (%#p): %#x\n", ClientId.UniqueProcess, rcNt)); 3851 } 3847 3852 } 3853 3848 3854 } 3849 3855
Note:
See TracChangeset
for help on using the changeset viewer.