mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-25 12:14:33 -04:00
[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:
parent
8bb31f6ae2
commit
fce645543f
12 changed files with 48 additions and 38 deletions
16
src/rufus.c
16
src/rufus.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue