diff options
Diffstat (limited to 'src/Mount/Favorites.cpp')
-rw-r--r-- | src/Mount/Favorites.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mount/Favorites.cpp b/src/Mount/Favorites.cpp index 06c1aa32..93d9c648 100644 --- a/src/Mount/Favorites.cpp +++ b/src/Mount/Favorites.cpp | |||
@@ -56,7 +56,7 @@ namespace VeraCrypt | |||
56 | string volumeDevPath = favorite.Path; | 56 | string volumeDevPath = favorite.Path; |
57 | 57 | ||
58 | wchar_t resolvedVolumeDevPath[TC_MAX_PATH]; | 58 | wchar_t resolvedVolumeDevPath[TC_MAX_PATH]; |
59 | if (ResolveSymbolicLink (SingleStringToWide (volumeDevPath).c_str(), resolvedVolumeDevPath)) | 59 | if (ResolveSymbolicLink (SingleStringToWide (volumeDevPath).c_str(), resolvedVolumeDevPath, sizeof(resolvedVolumeDevPath))) |
60 | volumeDevPath = WideToSingleString (resolvedVolumeDevPath); | 60 | volumeDevPath = WideToSingleString (resolvedVolumeDevPath); |
61 | 61 | ||
62 | char volumeName[TC_MAX_PATH]; | 62 | char volumeName[TC_MAX_PATH]; |
@@ -414,7 +414,7 @@ namespace VeraCrypt | |||
414 | if (FavoriteVolumes.empty()) | 414 | if (FavoriteVolumes.empty()) |
415 | return; | 415 | return; |
416 | 416 | ||
417 | AppendMenu (FavoriteVolumesMenu, MF_SEPARATOR, 0, NULL); | 417 | AppendMenu (FavoriteVolumesMenu, MF_SEPARATOR, 0, ""); |
418 | 418 | ||
419 | int i = 0; | 419 | int i = 0; |
420 | foreach (const FavoriteVolume &favorite, FavoriteVolumes) | 420 | foreach (const FavoriteVolume &favorite, FavoriteVolumes) |