diff --git a/src/Deflate.c b/src/Deflate.c index 9cd0f6dee..f2ec4f43e 100644 --- a/src/Deflate.c +++ b/src/Deflate.c @@ -44,7 +44,8 @@ cc_result GZipHeader_Read(struct Stream* s, struct GZipHeader* header) { header->State++; case GZIP_STATE_FLAGS: - Header_ReadU8(header->Flags); + Header_ReadU8(tmp); + header->Flags = tmp; if (header->Flags & 0x04) return GZIP_ERR_FLAGS; header->State++; diff --git a/src/Window.c b/src/Window.c index f6efe46b5..fde63fd35 100644 --- a/src/Window.c +++ b/src/Window.c @@ -981,6 +981,9 @@ static int MapNativeKey(KeySym key) { if (key >= XK_F1 && key <= XK_F35) { return KEY_F1 + (key - XK_F1); } if (key >= XK_KP_0 && key <= XK_KP_9) { return KEY_KP0 + (key - XK_KP_0); } + /* Keys on a chromebook reported by a user */ + if (key == 0x8000027) return KEY_QUOTE; + switch (key) { case XK_Escape: return KEY_ESCAPE; case XK_Return: return KEY_ENTER;