Browse Source

Workaround for Windows 7 runtime compatibility

Sasha Szpakowski 1 year ago
parent
commit
444ab6311b
2 changed files with 1 additions and 1 deletions
  1. BIN
      extra/windows/love.rc
  2. 1 1
      src/libraries/physfs/physfs_platform_windows.c

BIN
extra/windows/love.rc


+ 1 - 1
src/libraries/physfs/physfs_platform_windows.c

@@ -123,7 +123,7 @@ static inline HANDLE winCreateFileW(const WCHAR *wfname, const DWORD mode,
                                     const DWORD creation)
                                     const DWORD creation)
 {
 {
     const DWORD share = FILE_SHARE_READ | FILE_SHARE_WRITE;
     const DWORD share = FILE_SHARE_READ | FILE_SHARE_WRITE;
-    #if defined(PHYSFS_PLATFORM_WINRT) || (_WIN32_WINNT >= 0x0602) // Windows 8+
+    #if defined(PHYSFS_PLATFORM_WINRT) /*|| (_WIN32_WINNT >= 0x0602)*/ // Windows 8+
     return CreateFile2(wfname, mode, share, creation, NULL);
     return CreateFile2(wfname, mode, share, creation, NULL);
     #else
     #else
     return CreateFileW(wfname, mode, share, NULL, creation,
     return CreateFileW(wfname, mode, share, NULL, creation,