Michael Stefaniuc : hlink: Avoid a TRUE:FALSE conditional expression.

Alexandre Julliard julliard at winehq.org
Tue Aug 14 12:59:51 CDT 2012


Module: wine
Branch: master
Commit: 7c365e35abe511ece54a0963251afcb6648e8af1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7c365e35abe511ece54a0963251afcb6648e8af1

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Aug 13 11:44:12 2012 +0200

hlink: Avoid a TRUE:FALSE conditional expression.

---

 dlls/hlink/link.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/hlink/link.c b/dlls/hlink/link.c
index 72e792b..97164eb 100644
--- a/dlls/hlink/link.c
+++ b/dlls/hlink/link.c
@@ -797,7 +797,7 @@ static HRESULT WINAPI IPersistStream_fnLoad(IPersistStream* iface,
         r = OleLoadFromStream(pStm, &IID_IMoniker, (LPVOID*)&(This->Moniker));
         if (FAILED(r))
             goto end;
-        This->absolute = hdr[1] & HLINK_SAVE_MONIKER_IS_ABSOLUTE ? TRUE : FALSE;
+        This->absolute = (hdr[1] & HLINK_SAVE_MONIKER_IS_ABSOLUTE) != 0;
     }
 
     if (hdr[1] & HLINK_SAVE_LOCATION_PRESENT)




More information about the wine-cvs mailing list