Francois Gouget : kernel32: Add parentheses to clarify the precedence between '&' and '||'.

Alexandre Julliard julliard at winehq.org
Fri Sep 9 10:56:48 CDT 2011


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Sep  9 01:45:30 2011 +0200

kernel32: Add parentheses to clarify the precedence between '&' and '||'.

---

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

diff --git a/dlls/kernel32/volume.c b/dlls/kernel32/volume.c
index 4a2a7b5..a937f6b 100644
--- a/dlls/kernel32/volume.c
+++ b/dlls/kernel32/volume.c
@@ -612,7 +612,7 @@ static DWORD VOLUME_GetSuperblockSerial( const UNICODE_STRING *device, HANDLE ha
              * Me$$ysoft chose to reverse the serial number in NT4/W2K.
              * It's true and nobody will ever be able to change it.
              */
-            if (GetVersion() & 0x80000000 || type == FS_UDF)
+            if ((GetVersion() & 0x80000000) || type == FS_UDF)
                 return (sum[3] << 24) | (sum[2] << 16) | (sum[1] << 8) | sum[0];
             else
                 return (sum[0] << 24) | (sum[1] << 16) | (sum[2] << 8) | sum[3];




More information about the wine-cvs mailing list