[core] remove the call to IOCTL_DISK_DELETE_DRIVE_LAYOUT

* As per issue #122, this creates problems when formatting a drive in FAT16
* Also remove an unnecessary backslash in icon.c
This commit is contained in:
Pete Batard 2013-07-04 22:51:15 +01:00
parent 9925cc945d
commit 967ad1da33
4 changed files with 7 additions and 43 deletions

View file

@ -160,7 +160,7 @@ BOOL SetAutorun(const char* path)
char filename[64];
wchar_t wlabel[128], wRufusVersion[32];
safe_sprintf(filename, sizeof(filename), "%s\\autorun.inf", path);
safe_sprintf(filename, sizeof(filename), "%sautorun.inf", path);
fd = fopen(filename, "r"); // If there's an existing autorun, don't overwrite
if (fd != NULL) {
uprintf("%s already exists - keeping it\n", filename);