Skip to content

Commit a3902f1

Browse files
committed
Remove legacy SetLastError
1 parent 00e923f commit a3902f1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

phlib/basesup.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,6 @@ HANDLE PhCreateThread(
316316
NULL
317317
);
318318

319-
// NOTE: PhCreateThread previously used CreateThread with callers using GetLastError()
320-
// for checking errors. We need to preserve this behavior for compatibility -dmex
321-
// TODO: Migrate code over to PhCreateThreadEx and remove this function.
322-
//RtlSetLastWin32ErrorAndNtStatusFromNtStatus(status);
323-
SetLastError(PhNtStatusToDosError(status));
324-
325319
if (NT_SUCCESS(status))
326320
{
327321
PHLIB_INC_STATISTIC(BaseThreadsCreated);

0 commit comments

Comments
 (0)