Merge pull request #806 from emruiz81/v1.x
WIN32: Don't deny access to file sinks from other processes
This commit is contained in:
		@@ -159,9 +159,9 @@ inline bool fopen_s(FILE **fp, const filename_t &filename, const filename_t &mod
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
#ifdef _WIN32
 | 
					#ifdef _WIN32
 | 
				
			||||||
#ifdef SPDLOG_WCHAR_FILENAMES
 | 
					#ifdef SPDLOG_WCHAR_FILENAMES
 | 
				
			||||||
    *fp = _wfsopen((filename.c_str()), mode.c_str(), _SH_DENYWR);
 | 
					    *fp = _wfsopen((filename.c_str()), mode.c_str(), _SH_DENYNO);
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
    *fp = _fsopen((filename.c_str()), mode.c_str(), _SH_DENYWR);
 | 
					    *fp = _fsopen((filename.c_str()), mode.c_str(), _SH_DENYNO);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
#else // unix
 | 
					#else // unix
 | 
				
			||||||
    *fp = fopen((filename.c_str()), mode.c_str());
 | 
					    *fp = fopen((filename.c_str()), mode.c_str());
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user