Fix validation typo (closes #7)

This commit is contained in:
Michael Scire 2019-03-16 10:52:58 -07:00
parent 49d2188f6f
commit 37c41f6324

View File

@ -320,7 +320,7 @@ struct Validator {
} else { } else {
if constexpr (argT == ArgType::OutPointerServerSize) { if constexpr (argT == ArgType::OutPointerServerSize) {
total_c_size += T::num_elements * sizeof(T); total_c_size += T::num_elements * sizeof(T);
} else if constexpr (argT == ArgType::OutPointerServerSize) { } else if constexpr (argT == ArgType::OutPointerClientSize) {
total_c_size += *((u16 *)((uintptr_t)(ctx->request.Raw) + 0x10 + cur_c_size_offset)); total_c_size += *((u16 *)((uintptr_t)(ctx->request.Raw) + 0x10 + cur_c_size_offset));
cur_c_size_offset += sizeof(u16); cur_c_size_offset += sizeof(u16);
} }