Skip to content

Commit

Permalink
[process] add extra exception handling on NtClose()
Browse files Browse the repository at this point in the history
* Also fix a typo in Norwegian translation (Closes #2453).
  • Loading branch information
pbatard committed Apr 4, 2024
1 parent 5061af2 commit 4eda8d9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions res/loc/po/nb-NO.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: 3.22\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-04-17 13:44+0100\n"
"PO-Revision-Date: 2024-01-10 12:20+0000\n"
"PO-Revision-Date: 2024-04-04 17:38+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: nb_NO\n"
Expand Down Expand Up @@ -1843,7 +1843,7 @@ msgstr "Lag en lokal brukerkonto med brukernavnet:"

#. • MSG_334
msgid "Set regional options to the same values as this user's"
msgstr "Sett regionale instillinger til det samme som den aktive brukerkontoen"
msgstr "Sett regionale innstillinger til det samme som den aktive brukerkontoen"

#. • MSG_335
msgid "Disable BitLocker automatic device encryption"
Expand Down
2 changes: 1 addition & 1 deletion res/loc/rufus.loc
Original file line number Diff line number Diff line change
Expand Up @@ -9577,7 +9577,7 @@ t MSG_330 "Fjern krav om en Microsoft konto"
t MSG_331 "Slå av all datainnsamling (hopp over spørsmålene)"
t MSG_332 "Ikke gi Windows To Go tilgang til interne harddisker"
t MSG_333 "Lag en lokal brukerkonto med brukernavnet:"
t MSG_334 "Sett regionale instillinger til det samme som den aktive brukerkontoen"
t MSG_334 "Sett regionale innstillinger til det samme som den aktive brukerkontoen"
t MSG_335 "Deaktiver BitLocker kryptering av enheten"
t MSG_336 "Behold log"
t MSG_900 "Rufus er et verktøy som hjelper til med å formatere og lage oppstartbare USB-stasjoner, for eksempel USB-minnepinner, USB-harddisker, og lignende."
Expand Down
6 changes: 5 additions & 1 deletion src/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,11 @@ static DWORD WINAPI SearchProcessThread(LPVOID param)
);

if ((dupHandle != NULL) && (processHandle != NtCurrentProcess())) {
pfNtClose(dupHandle);
TRY_AND_HANDLE(
EXCEPTION_ACCESS_VIOLATION,
{ pfNtClose(dupHandle); },
{ continue; }
);
dupHandle = NULL;
}

Expand Down
10 changes: 5 additions & 5 deletions src/rufus.rc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDD_DIALOG DIALOGEX 12, 12, 232, 326
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_ACCEPTFILES
CAPTION "Rufus 4.5.2124"
CAPTION "Rufus 4.5.2125"
FONT 9, "Segoe UI Symbol", 400, 0, 0x0
BEGIN
LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP
Expand Down Expand Up @@ -397,8 +397,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 4,5,2124,0
PRODUCTVERSION 4,5,2124,0
FILEVERSION 4,5,2125,0
PRODUCTVERSION 4,5,2125,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -416,13 +416,13 @@ BEGIN
VALUE "Comments", "https://rufus.ie"
VALUE "CompanyName", "Akeo Consulting"
VALUE "FileDescription", "Rufus"
VALUE "FileVersion", "4.5.2124"
VALUE "FileVersion", "4.5.2125"
VALUE "InternalName", "Rufus"
VALUE "LegalCopyright", "� 2011-2024 Pete Batard (GPL v3)"
VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html"
VALUE "OriginalFilename", "rufus-4.5.exe"
VALUE "ProductName", "Rufus"
VALUE "ProductVersion", "4.5.2124"
VALUE "ProductVersion", "4.5.2125"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit 4eda8d9

Please sign in to comment.