Fix write permissions when RAMdrive is mounted

This commit is contained in:
d0k3 2016-05-30 16:17:09 +02:00
parent 6e9a378a36
commit 297bc2ec1b
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ bool CheckWritePermissions(const char* path) {
if (pdrv == 0) {
perm = PERM_SDCARD;
snprintf(area_name, 16, "the SD card");
} else if (GetMountState() == IMG_RAMDRV) {
} else if ((pdrv == 7) && (GetMountState() == IMG_RAMDRV)) {
perm = PERM_RAMDRIVE;
snprintf(area_name, 16, "the RAM drive");
} else if (((pdrv >= 1) && (pdrv <= 3)) || (GetVirtualSource(path) == VRT_SYSNAND)) {

View File

@ -7,7 +7,7 @@
#include "virtual.h"
#include "image.h"
#define VERSION "0.5.0"
#define VERSION "0.5.1"
#define N_PANES 2
#define IMG_DRV "789I"