]> granicus.if.org Git - php/commitdiff
- silent warning
authorPierre Joye <pajoye@php.net>
Fri, 5 Feb 2010 00:14:18 +0000 (00:14 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 5 Feb 2010 00:14:18 +0000 (00:14 +0000)
TSRM/tsrm_win32.c

index 7f1cf7ce04bfb405810b7672ed8b41c173e71aff..223b221175f01eccdf6d66db69a32afdd83cd8e5 100644 (file)
@@ -348,7 +348,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;