Skip to content

Commit

Permalink
Update nativethread.c
Browse files Browse the repository at this point in the history
  • Loading branch information
dmex committed Jan 18, 2025
1 parent ef7f934 commit 637085b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phlib/nativethread.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ NTSTATUS PhGetThreadApartmentState(
#ifdef _WIN64
BOOLEAN isWow64 = FALSE;
#endif
ULONG_PTR oletlsDataAddress = 0;
typeof(RTL_FIELD_TYPE(TEB, ReservedForOle)) oletlsBaseAddress = nullptr;

if (!NT_SUCCESS(status = PhGetThreadBasicInformation(ThreadHandle, &basicInfo)))
return status;
Expand Down Expand Up @@ -1058,7 +1058,7 @@ NTSTATUS PhGetThreadSocketState(
#ifdef _WIN64
BOOLEAN isWow64 = FALSE;
#endif
HANDLE winsockHandleAddress;
typeof(RTL_FIELD_TYPE(TEB, WinSockData)) winsockHandleAddress = nullptr;

if (!NT_SUCCESS(status = PhGetThreadBasicInformation(ThreadHandle, &basicInfo)))
return status;
Expand Down

0 comments on commit 637085b

Please sign in to comment.