On 2019-03-28 21:47, Derek Lesho wrote: > + ok((result = PsIsSystemThread()), "got %u\n", result); This type of construct depends on argument evaluation order and is undefined behavior. The assignment needs to happen before the ok().