Fix incorrect condition in HandleException function

This commit is contained in:
EnderIce2 2024-03-04 23:11:40 +02:00
parent 2ddacf8e13
commit 52ec0a25bf
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -249,7 +249,7 @@ nsa void HandleException(CPU::ExceptionFrame *Frame)
HandleUnrecoverableException(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)) if (UserModeExceptionHandler(Frame))
goto ExceptionExit; goto ExceptionExit;