]> granicus.if.org Git - php/commitdiff
- silent warning
authorPierre Joye <pajoye@php.net>
Thu, 4 Feb 2010 15:34:19 +0000 (15:34 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 4 Feb 2010 15:34:19 +0000 (15:34 +0000)
TSRM/tsrm_win32.c

index ca3452bc6a7cbe5c4640d43d5511b3f51729acb4..18917cd16b1adbfb230d044d02608029058bd764 100644 (file)
@@ -350,7 +350,7 @@ TSRM_API int tsrm_win32_access(const char *pathname, int mode)
                        else if(desired_access == FILE_GENERIC_WRITE) {
                                bucket->is_wvalid = 1;
                                bucket->is_writable = fAccess;
-                       } else if (desired_access == FILE_GENERIC_READ | FILE_GENERIC_WRITE) {
+                       } else if (desired_access == (FILE_GENERIC_READ | FILE_GENERIC_WRITE)) {
                                bucket->is_rvalid = 1;
                                bucket->is_readable = fAccess;
                                bucket->is_wvalid = 1;