OpenCanopy: Abort absolute pointer update earlier when unavailable
@@ -141,6 +141,10 @@ InternalUpdateContextAbsolute (
UINT64 NewY;
ASSERT (Context != NULL);
+
+ if (Context->AbsPointer == NULL) {
+ return;
+ }
//
// Discard absolute pointer updates when simple pointer locked.
//
@@ -154,10 +158,6 @@ InternalUpdateContextAbsolute (
ASSERT (Context->LockedBy == PointerLockedAbsolute);
}
- if (Context->AbsPointer == NULL) {
- return;
- }
-
Status = Context->AbsPointer->GetState (Context->AbsPointer, &PointerState);
if (EFI_ERROR (Status)) {
return;
