Thread state updates.

This commit is contained in:
Ben Vanik
2015-05-16 01:45:56 -07:00
parent 88596611d1
commit 8d4f54e240
5 changed files with 61 additions and 45 deletions

View File

@@ -31,7 +31,7 @@ void XEvent::InitializeNative(void* native_ptr, DISPATCH_HEADER& header) {
assert_null(handle_);
bool manual_reset;
switch (header.type_flags >> 24) {
switch ((header.type_flags >> 24) & 0xFF) {
case 0x00: // EventNotificationObject (manual reset)
manual_reset = true;
break;