quartz: Fix testing of HRESULT types with not operator instead of comparing against S_OK. This makes it more obvious what the code is doing.