Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Fix incorrect condition in HandleException function
Browse files Browse the repository at this point in the history
  • Loading branch information
EnderIce2 committed Mar 4, 2024
1 parent 2ddacf8 commit 52ec0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/panic/handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ nsa void HandleException(CPU::ExceptionFrame *Frame)
HandleUnrecoverableException(Frame);
}

if (Frame->cs == GDT_USER_CODE && Frame->cs == GDT_USER_DATA)
if (Frame->cs == GDT_USER_CODE && Frame->ss == GDT_USER_DATA)
{
if (UserModeExceptionHandler(Frame))
goto ExceptionExit;
Expand Down

0 comments on commit 52ec0a2

Please sign in to comment.