Fix botched UnownedPtr refactor

Fix parts of https://pdfium-review.googlesource.com/131530 that are
obviously wrong but only gets compiled when PA is disabled.

Change-Id: I0d02508cdba29bffcc81f3175248a05e1f2ca034
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/131730
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fxcrt/unowned_ptr.h b/core/fxcrt/unowned_ptr.h
index 77b9167..8218c58 100644
--- a/core/fxcrt/unowned_ptr.h
+++ b/core/fxcrt/unowned_ptr.h
@@ -149,9 +149,9 @@
   ~UnownedPtr() { obj_ = nullptr; }
 
   friend inline bool operator==(const UnownedPtr& lhs, std::nullptr_t rhs) {
-    return obj_ == nullptr;
+    return lhs.obj_ == nullptr;
   }
-  friend inline bool operator==(const UnownedPtr& rhs, const UnownedPtr& rhs) {
+  friend inline bool operator==(const UnownedPtr& lhs, const UnownedPtr& rhs) {
     return lhs.obj_ == rhs.obj_;
   }
   bool operator<(const UnownedPtr& that) const {