Skip to content

Commit

Permalink
Debugger: Fix websocket read silly mistake.
Browse files Browse the repository at this point in the history
Surprised I didn't notice this before.
  • Loading branch information
unknownbrackets committed May 30, 2021
1 parent ea59fa3 commit 2af40d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/Net/WebsocketServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ bool WebSocketServer::ReadFrame() {

mask = &header[10];
// Read from big endian.
uint64_t high = (header[2] << 24) | (header[3] << 16) || (header[4] << 8) | (header[5] << 0);
uint64_t low = (header[6] << 24) | (header[7] << 16) || (header[8] << 8) | (header[9] << 0);
uint64_t high = (header[2] << 24) | (header[3] << 16) | (header[4] << 8) | (header[5] << 0);
uint64_t low = (header[6] << 24) | (header[7] << 16) | (header[8] << 8) | (header[9] << 0);
sz = (high << 32) | low;

if ((sz & 0x8000000000000000ULL) != 0) {
Expand Down

0 comments on commit 2af40d0

Please sign in to comment.