[vlc-commits] [Git][videolan/vlc][master] block: fix incorrect use of VLC_WINSTORE_APP

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Tue Oct 12 09:11:54 UTC 2021



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
9e639361 by Steve Lhomme at 2021-10-12T08:57:23+00:00
block: fix incorrect use of VLC_WINSTORE_APP

Since 347f73b9a7d42ccb75a2bee1e639e65f173a6254 we shouldn't use the value
directly.

- - - - -


1 changed file:

- src/misc/block.c


Changes:

=====================================
src/misc/block.c
=====================================
@@ -452,7 +452,7 @@ block_t *block_File(int fd, bool write)
             HANDLE hMap;
             DWORD prot = write ? PAGE_READWRITE : PAGE_READONLY;
             DWORD access = FILE_MAP_READ | (write ? FILE_MAP_WRITE : 0);
-#if VLC_WINSTORE_APP
+#ifdef VLC_WINSTORE_APP
             hMap = CreateFileMappingFromApp(handle, NULL, prot, length, NULL);
             if (hMap != INVALID_HANDLE_VALUE)
                 addr = MapViewOfFileFromApp(hMap, access, 0, length);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9e639361a91bda614f4ec661b830bf7102a0f252

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9e639361a91bda614f4ec661b830bf7102a0f252
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list