DEV9: Fix setting response code

This commit is contained in:
TheLastRar 2022-10-23 17:44:47 +01:00 committed by lightningterror
parent 304f260cff
commit 25107bd2db
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ namespace PacketReader::IP::UDP::DNS
}
void DNS_Packet::SetRCode(u8 value)
{
flags2 = (flags2 & ~(0xF << 3)) | ((value & 0xF) << 3);
flags2 = (flags2 & ~(0xF)) | ((value & 0xF));
}
DNS_Packet::DNS_Packet(u8* buffer, int bufferSize)