[dev] improve FIXED vs REMOVABLE detection for drives with unmounted partitions

* And add an exception for a reported flash drive
* Also fix a couple warnings in msapi_utf8.h and net.c
This commit is contained in:
Pete Batard 2020-04-10 13:16:57 +01:00
parent 1e6e38b180
commit 2442aaf76f
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
7 changed files with 39 additions and 20 deletions

View file

@ -865,7 +865,7 @@ BOOL CheckForUpdates(BOOL force)
static DWORD WINAPI DownloadISOThread(LPVOID param)
{
char locale_str[1024], cmdline[sizeof(locale_str) + 512], pipe[MAX_GUID_STRING_LENGTH + 16] = "\\\\.\\pipe\\";
char powershell_path[MAX_PATH], icon_path[MAX_PATH] = "", script_path[MAX_PATH] = "";
char powershell_path[MAX_PATH], icon_path[MAX_PATH] = { 0 }, script_path[MAX_PATH] = { 0 };
char *url = NULL, sig_url[128];
uint64_t uncompressed_size;
int64_t size = -1;