]> 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 870b36bd48c8e021e83e713f19bb86274872c502..7b388b4ec6791def4ea330d2e1f1988e929bacee 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;