[dev] add exception for Realtek card readers

* Also update copyright year to 2021
* Also update version for rufus-next
* Also set Win32 "A" APIs to UTF-8 and enable long paths in manifest
This commit is contained in:
Pete Batard 2021-01-06 19:27:31 +00:00
parent 8bb31f6ae2
commit fce645543f
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
12 changed files with 48 additions and 38 deletions

View file

@ -3379,14 +3379,14 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
Sleep(100);
mutex = CreateMutexA(NULL, TRUE, "Global/" APPLICATION_NAME);
}
if ((mutex == NULL) || (GetLastError() == ERROR_ALREADY_EXISTS)) {
// Load the translation before we print the error
get_loc_data_file(loc_file, selected_locale);
right_to_left_mode = ((selected_locale->ctrl_id) & LOC_RIGHT_TO_LEFT);
// Set MB_SYSTEMMODAL to prevent Far Manager from stealing focus...
MessageBoxExU(NULL, lmprintf(MSG_002), lmprintf(MSG_001), MB_ICONSTOP|MB_IS_RTL|MB_SYSTEMMODAL, selected_langid);
goto out;
}
//if ((mutex == NULL) || (GetLastError() == ERROR_ALREADY_EXISTS)) {
// // Load the translation before we print the error
// get_loc_data_file(loc_file, selected_locale);
// right_to_left_mode = ((selected_locale->ctrl_id) & LOC_RIGHT_TO_LEFT);
// // Set MB_SYSTEMMODAL to prevent Far Manager from stealing focus...
// MessageBoxExU(NULL, lmprintf(MSG_002), lmprintf(MSG_001), MB_ICONSTOP|MB_IS_RTL|MB_SYSTEMMODAL, selected_langid);
// goto out;
//}
// Save instance of the application for further reference
hMainInstance = hInstance;