X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwimboot.c;h=514ff8c5b53c1122fbe70f48f80b90c04ad3abd9;hp=35fe13a97e6fc12ff052b93d23fc4b73cb017659;hb=965c28d0cce2e43df3c38b47c78204b1c33c313d;hpb=e0cb5f9264bdea9938e48a37ebe9007467c0dd46 diff --git a/src/wimboot.c b/src/wimboot.c index 35fe13a9..514ff8c5 100644 --- a/src/wimboot.c +++ b/src/wimboot.c @@ -831,26 +831,6 @@ out: return ret; } -static int -win32_get_drive_path(const wchar_t *file_path, wchar_t drive_path[7]) -{ - tchar *file_abspath; - - file_abspath = realpath(file_path, NULL); - if (!file_abspath) - return WIMLIB_ERR_NOMEM; - - if (file_abspath[0] == L'\0' || file_abspath[1] != L':') { - ERROR("\"%ls\": Path format not recognized", file_abspath); - FREE(file_abspath); - return WIMLIB_ERR_UNSUPPORTED; - } - - wsprintf(drive_path, L"\\\\.\\%lc:", file_abspath[0]); - FREE(file_abspath); - return 0; -} - /* Try to attach an instance of the Windows Overlay File System Filter Driver to * the specified drive (such as C:) */ static bool