[vlc-commits] [Git][videolan/vlc][master] win32: dirs: fix possible VLC_SNAPSHOTS_DIR failure
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Apr 18 08:35:17 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
1d398e7f by Thomas Guillem at 2025-04-18T08:21:01+00:00
win32: dirs: fix possible VLC_SNAPSHOTS_DIR failure
Fallback to FOLDERID_Pictures if FOLDERID_Screenshots can't be found.
- - - - -
1 changed file:
- src/win32/dirs.c
Changes:
=====================================
src/win32/dirs.c
=====================================
@@ -168,7 +168,12 @@ char *platform_GetUserDir (vlc_userdir_t type)
case VLC_MUSIC_DIR:
return config_GetKnownFolder (FOLDERID_Music);
case VLC_SNAPSHOTS_DIR:
- return config_GetKnownFolder (FOLDERID_Screenshots);
+ {
+ char *folder = config_GetKnownFolder (FOLDERID_Screenshots);
+ if (folder != NULL)
+ return folder;
+ /* fall through */
+ }
case VLC_PICTURES_DIR:
return config_GetKnownFolder (FOLDERID_Pictures);
case VLC_VIDEOS_DIR:
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1d398e7f126dd960a188b1ff3265eb9cd9266529
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1d398e7f126dd960a188b1ff3265eb9cd9266529
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list