Searched refs:sharing1 (Results 1 – 1 of 1) sorted by relevance
2295 static BOOL is_sharing_compatible( DWORD access1, DWORD sharing1, DWORD access2, DWORD sharing2 ) in is_sharing_compatible() argument2302 if (!access1) sharing1 = FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE; in is_sharing_compatible()2308 if ((access2 & (FILE_READ_DATA|FILE_EXECUTE)) && !(sharing1 & FILE_SHARE_READ)) return FALSE; in is_sharing_compatible()2309 …if ((access2 & (FILE_WRITE_DATA|FILE_APPEND_DATA)) && !(sharing1 & FILE_SHARE_WRITE)) return FALSE; in is_sharing_compatible()2310 if ((access2 & DELETE) && !(sharing1 & FILE_SHARE_DELETE)) return FALSE; in is_sharing_compatible()