https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1551d2b136433c3e222e7…
commit 1551d2b136433c3e222e702a6509d74df55faabe
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Fri Apr 13 23:46:32 2018 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Fri Apr 13 23:46:32 2018 +0200
[EVENTLOG] Register .evt file extension so that we can open event log files from the shell.
Take also the opportunity to fix a problematic "%1" in wordpad.exe command line.
---
base/applications/mscutils/eventvwr/lang/bg-BG.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/cs-CZ.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/de-DE.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/el-GR.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/en-US.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/es-ES.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/fr-FR.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/he-IL.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/it-IT.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/ja-JP.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/ko-KR.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/no-NO.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/pl-PL.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/pt-BR.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/ro-RO.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/ru-RU.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/sk-SK.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/sq-AL.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/sv-SE.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/tr-TR.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/uk-UA.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/zh-CN.rc | 5 +++--
base/applications/mscutils/eventvwr/lang/zh-TW.rc | 5 +++--
base/applications/mscutils/eventvwr/resource.h | 5 +++--
boot/bootdata/hivecls.inf | 11 +++++++++--
25 files changed, 81 insertions(+), 50 deletions(-)
diff --git a/base/applications/mscutils/eventvwr/lang/bg-BG.rc b/base/applications/mscutils/eventvwr/lang/bg-BG.rc
index 5f65551548..9399ff168d 100644
--- a/base/applications/mscutils/eventvwr/lang/bg-BG.rc
+++ b/base/applications/mscutils/eventvwr/lang/bg-BG.rc
@@ -137,9 +137,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "Не е намерено описанието на събитие ( %lu ) в източник ( %s ). Възможно е местият компютър да няма нужните сведения в регистъра или DLL файловет, нужни за показване на съобщения от отдалечен компютър.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
IDS_SAVE_FILTER "Event Log (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
+ IDS_EVENTSTRINGIDNOTFOUND "Не е намерено описанието на събитие ( %lu ) в източник ( %s ). Възможно е местият компютър да няма нужните сведения в регистъра или DLL файловет, нужни за показване на съобщения от отдалечен компютър.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -158,6 +158,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/cs-CZ.rc b/base/applications/mscutils/eventvwr/lang/cs-CZ.rc
index cb2abd9fde..ea4f7dbeba 100644
--- a/base/applications/mscutils/eventvwr/lang/cs-CZ.rc
+++ b/base/applications/mscutils/eventvwr/lang/cs-CZ.rc
@@ -137,9 +137,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "Systémové protokoly"
IDS_EVENTLOG_APP "Protokoly aplikací"
IDS_EVENTLOG_USER "Uživatelské protokoly"
- IDS_EVENTSTRINGIDNOTFOUND "Popis ID události ( %lu ) zdroj ( %s ) nebyl nalezen. Místní počítač neobsahuje potřebné informace v registru nebo chybí DLL soubory pro zobrazení zpráv ze vzdáleného počítače.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Chcete tento protokol před odstraněním uložit?"
IDS_SAVE_FILTER "Protokol událostí (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Chcete tento protokol před odstraněním uložit?"
+ IDS_EVENTSTRINGIDNOTFOUND "Popis ID události ( %lu ) zdroj ( %s ) nebyl nalezen. Místní počítač neobsahuje potřebné informace v registru nebo chybí DLL soubory pro zobrazení zpráv ze vzdáleného počítače.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -158,6 +158,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/de-DE.rc b/base/applications/mscutils/eventvwr/lang/de-DE.rc
index b87bddf4fa..c80fde7921 100644
--- a/base/applications/mscutils/eventvwr/lang/de-DE.rc
+++ b/base/applications/mscutils/eventvwr/lang/de-DE.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "Die Bezeichnung für die Ereignis-ID ( %lu ) in der Quelle ( %s ) kann nicht gefunden werden. Es könnte sein, dass der Lokale Computer die notwendigen Registry Einträge oder Nachrichten DLLs, um Nachrichten von Remoten Computern anzuzeigen, nicht besitzt.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Möchten Sie dieses Protokoll vor dem Löschen speichern?"
IDS_SAVE_FILTER "Ereignisprotokoll (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Möchten Sie dieses Protokoll vor dem Löschen speichern?"
+ IDS_EVENTSTRINGIDNOTFOUND "Die Bezeichnung für die Ereignis-ID ( %lu ) in der Quelle ( %s ) kann nicht gefunden werden. Es könnte sein, dass der Lokale Computer die notwendigen Registry Einträge oder Nachrichten DLLs, um Nachrichten von Remoten Computern anzuzeigen, nicht besitzt.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/el-GR.rc b/base/applications/mscutils/eventvwr/lang/el-GR.rc
index 0eafda6725..ba92148689 100644
--- a/base/applications/mscutils/eventvwr/lang/el-GR.rc
+++ b/base/applications/mscutils/eventvwr/lang/el-GR.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "The description for Event ID ( %lu ) in Source ( %s ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
IDS_SAVE_FILTER "Event Log (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
+ IDS_EVENTSTRINGIDNOTFOUND "The description for Event ID ( %lu ) in Source ( %s ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/en-US.rc b/base/applications/mscutils/eventvwr/lang/en-US.rc
index 0d4ab4af97..9990028d24 100644
--- a/base/applications/mscutils/eventvwr/lang/en-US.rc
+++ b/base/applications/mscutils/eventvwr/lang/en-US.rc
@@ -145,9 +145,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "The description for Event ID ( %lu ) in Source ( %s ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
IDS_SAVE_FILTER "Event Log (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
+ IDS_EVENTSTRINGIDNOTFOUND "The description for Event ID ( %lu ) in Source ( %s ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -166,6 +166,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/es-ES.rc b/base/applications/mscutils/eventvwr/lang/es-ES.rc
index 5c3da85040..b279a01eb8 100644
--- a/base/applications/mscutils/eventvwr/lang/es-ES.rc
+++ b/base/applications/mscutils/eventvwr/lang/es-ES.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "No se pudo recuperar la descripción para el evento con ID ( %lu ) y origen ( %s ). El equipo local puede no tener la información necesaria en el registro o las DLLs necesarias para mostrar los mensajes de un equipo remoto.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "¿Desea guardar este registro de eventos antes de borrarlo?"
IDS_SAVE_FILTER "Registro de eventos (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "¿Desea guardar este registro de eventos antes de borrarlo?"
+ IDS_EVENTSTRINGIDNOTFOUND "No se pudo recuperar la descripción para el evento con ID ( %lu ) y origen ( %s ). El equipo local puede no tener la información necesaria en el registro o las DLLs necesarias para mostrar los mensajes de un equipo remoto.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/fr-FR.rc b/base/applications/mscutils/eventvwr/lang/fr-FR.rc
index cc71f90514..9600746e66 100644
--- a/base/applications/mscutils/eventvwr/lang/fr-FR.rc
+++ b/base/applications/mscutils/eventvwr/lang/fr-FR.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "Journaux système"
IDS_EVENTLOG_APP "Journaux d'application"
IDS_EVENTLOG_USER "Journaux de l'utilisateur"
- IDS_EVENTSTRINGIDNOTFOUND "La description pour l'événement d'ID ( %lu ) dans la source ( %s ) ne peut être trouvée. L'ordinateur local pourrait ne pas avoir les informations registres nécessaires ou les fichiers DLL de message pour afficher les messages depuis un ordinateur distant.\n\nLes informations suivantes font partie de l'événement :\n\n"
- IDS_CLEAREVENTS_MSG "Voulez-vous enregistrer ce journal d'événements avant de l'effacer ?"
IDS_SAVE_FILTER "Journal d'événements (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Voulez-vous enregistrer ce journal d'événements avant de l'effacer ?"
+ IDS_EVENTSTRINGIDNOTFOUND "La description pour l'événement d'ID ( %lu ) dans la source ( %s ) ne peut être trouvée. L'ordinateur local pourrait ne pas avoir les informations registres nécessaires ou les fichiers DLL de message pour afficher les messages depuis un ordinateur distant.\n\nLes informations suivantes font partie de l'événement :\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [nom ordinateur] [/l:<fichier journal>] [/?]\n\
\n\
/? : Affiche ce message d'aide.\n\
"
+ IDS_EVENTLOGFILE "Journal d'événements"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/he-IL.rc b/base/applications/mscutils/eventvwr/lang/he-IL.rc
index 85e2667ff2..0ad6a428dc 100644
--- a/base/applications/mscutils/eventvwr/lang/he-IL.rc
+++ b/base/applications/mscutils/eventvwr/lang/he-IL.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "The description for Event ID ( %lu ) in Source ( %s ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
IDS_SAVE_FILTER "Event Log (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
+ IDS_EVENTSTRINGIDNOTFOUND "The description for Event ID ( %lu ) in Source ( %s ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/it-IT.rc b/base/applications/mscutils/eventvwr/lang/it-IT.rc
index b86672b388..ffa965c72b 100644
--- a/base/applications/mscutils/eventvwr/lang/it-IT.rc
+++ b/base/applications/mscutils/eventvwr/lang/it-IT.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "La descrizione per l'ID evento ( %lu ) proveniente da ( %s ) non può essere trovata. Il computer locale potrebbe non avere le informazioni sul registry necessarie o i file DLL con i messaggi necessari per la visualizzazione da un computer remoto.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
IDS_SAVE_FILTER "Event Log (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
+ IDS_EVENTSTRINGIDNOTFOUND "La descrizione per l'ID evento ( %lu ) proveniente da ( %s ) non può essere trovata. Il computer locale potrebbe non avere le informazioni sul registry necessarie o i file DLL con i messaggi necessari per la visualizzazione da un computer remoto.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/ja-JP.rc b/base/applications/mscutils/eventvwr/lang/ja-JP.rc
index 817c30e4dd..749d3a2246 100644
--- a/base/applications/mscutils/eventvwr/lang/ja-JP.rc
+++ b/base/applications/mscutils/eventvwr/lang/ja-JP.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "イベント ID (%lu) (ソース %s 内) に関する説明が見つかりませんでした。 リモート コンピュータからメッセージを表示するために必要なレジストリ情報またはメッセージ DLL ファイルがローカル コンピュータにない可能性があります。\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
IDS_SAVE_FILTER "Event Log (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
+ IDS_EVENTSTRINGIDNOTFOUND "イベント ID (%lu) (ソース %s 内) に関する説明が見つかりませんでした。 リモート コンピュータからメッセージを表示するために必要なレジストリ情報またはメッセージ DLL ファイルがローカル コンピュータにない可能性があります。\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/ko-KR.rc b/base/applications/mscutils/eventvwr/lang/ko-KR.rc
index 3749b92732..257d78e562 100644
--- a/base/applications/mscutils/eventvwr/lang/ko-KR.rc
+++ b/base/applications/mscutils/eventvwr/lang/ko-KR.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "( %s ) 의 이벤트ID ( %lu ) 에 대한 설명을 찾을 수 없습니다. 로컬 컴퓨터가 원격 컴퓨터의 메세지를 표시하는데 필요한 레지스트리나 DLL 파일을 가지지 않고 있을수 있습니다.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
IDS_SAVE_FILTER "Event Log (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
+ IDS_EVENTSTRINGIDNOTFOUND "( %s ) 의 이벤트ID ( %lu ) 에 대한 설명을 찾을 수 없습니다. 로컬 컴퓨터가 원격 컴퓨터의 메세지를 표시하는데 필요한 레지스트리나 DLL 파일을 가지지 않고 있을수 있습니다.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/no-NO.rc b/base/applications/mscutils/eventvwr/lang/no-NO.rc
index 21944f9d5c..76d95e1150 100644
--- a/base/applications/mscutils/eventvwr/lang/no-NO.rc
+++ b/base/applications/mscutils/eventvwr/lang/no-NO.rc
@@ -137,9 +137,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "Beskrivelsen for Hendelse ID ( %lu ) i kilden ( %s ) kan ikke bli finnet. Lokale datamaskinen har ikke nødvendige register informasjon eller melding DLL filer for å vise melding fra en fjern datamaskin.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
IDS_SAVE_FILTER "Event Log (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
+ IDS_EVENTSTRINGIDNOTFOUND "Beskrivelsen for Hendelse ID ( %lu ) i kilden ( %s ) kan ikke bli finnet. Lokale datamaskinen har ikke nødvendige register informasjon eller melding DLL filer for å vise melding fra en fjern datamaskin.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -158,6 +158,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/pl-PL.rc b/base/applications/mscutils/eventvwr/lang/pl-PL.rc
index 5e6cd7de61..ca16e6404a 100644
--- a/base/applications/mscutils/eventvwr/lang/pl-PL.rc
+++ b/base/applications/mscutils/eventvwr/lang/pl-PL.rc
@@ -141,9 +141,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "Dzienniki systemu"
IDS_EVENTLOG_APP "Dzienniki aplikacji"
IDS_EVENTLOG_USER "Dzienniki użytkownika"
- IDS_EVENTSTRINGIDNOTFOUND "Opis zdarzenia dla danego numeru ID ( %lu ) nie został odnaleziony w źródle ( %s ). Ten komputer może nie miec wystarczających informacji w rejestrze, albo bibliotek DLL, aby wyświetlić wiadomości z komputera zdalnego.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Czy chcesz zapisać dziennik zdarzeń przed czyszczeniem?"
IDS_SAVE_FILTER "Dziennik zdarzeń (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Czy chcesz zapisać dziennik zdarzeń przed czyszczeniem?"
+ IDS_EVENTSTRINGIDNOTFOUND "Opis zdarzenia dla danego numeru ID ( %lu ) nie został odnaleziony w źródle ( %s ). Ten komputer może nie miec wystarczających informacji w rejestrze, albo bibliotek DLL, aby wyświetlić wiadomości z komputera zdalnego.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -162,6 +162,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/pt-BR.rc b/base/applications/mscutils/eventvwr/lang/pt-BR.rc
index e56007504b..c67973dacc 100644
--- a/base/applications/mscutils/eventvwr/lang/pt-BR.rc
+++ b/base/applications/mscutils/eventvwr/lang/pt-BR.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "A descrição para Event ID ( %lu ) em Fonte ( %s ) não foi encontrado. O computador local talvez não possua a informação de registro necessária ou mensagem de arquivos DLL para exibir mensagens de um computador remoto.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
IDS_SAVE_FILTER "Event Log (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
+ IDS_EVENTSTRINGIDNOTFOUND "A descrição para Event ID ( %lu ) em Fonte ( %s ) não foi encontrado. O computador local talvez não possua a informação de registro necessária ou mensagem de arquivos DLL para exibir mensagens de um computador remoto.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/ro-RO.rc b/base/applications/mscutils/eventvwr/lang/ro-RO.rc
index b63ba71def..319fb4a8d9 100644
--- a/base/applications/mscutils/eventvwr/lang/ro-RO.rc
+++ b/base/applications/mscutils/eventvwr/lang/ro-RO.rc
@@ -142,9 +142,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "Jurnale de sistem"
IDS_EVENTLOG_APP "Jurnale de aplicație"
IDS_EVENTLOG_USER "Jurnale de utilizator"
- IDS_EVENTSTRINGIDNOTFOUND "Descrierea evenimentului cu ID-ul ( %lu ) în sursa ( %s ) nu a fost găsită. Este posibil ca în calculatorul local să nu existe informațiile de registru necesare sau fișierele dll de mesaje să afișeze mesaje de la un calculator din rețea.\n\nInformații aferente evenimentului:\n\n"
- IDS_CLEAREVENTS_MSG "Doriți păstrarea acestui jurnal de evenimente înainte de a-l închide?"
IDS_SAVE_FILTER "Jurnal de evenimente (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Doriți păstrarea acestui jurnal de evenimente înainte de a-l închide?"
+ IDS_EVENTSTRINGIDNOTFOUND "Descrierea evenimentului cu ID-ul ( %lu ) în sursa ( %s ) nu a fost găsită. Este posibil ca în calculatorul local să nu existe informațiile de registru necesare sau fișierele dll de mesaje să afișeze mesaje de la un calculator din rețea.\n\nInformații aferente evenimentului:\n\n"
END
STRINGTABLE
@@ -163,6 +163,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/ru-RU.rc b/base/applications/mscutils/eventvwr/lang/ru-RU.rc
index e9969417b6..c1eeffb061 100644
--- a/base/applications/mscutils/eventvwr/lang/ru-RU.rc
+++ b/base/applications/mscutils/eventvwr/lang/ru-RU.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "Системный журнал"
IDS_EVENTLOG_APP "Журнал приложений"
IDS_EVENTLOG_USER "Пользовательский журнал"
- IDS_EVENTSTRINGIDNOTFOUND "Не найдено описание для события с кодом ( %lu ) в источнике ( %s ). Возможно, на локальном компьютере нет нужных данных в реестре или файлов DLL сообщений для отображения сообщений удаленного компьютера.\n\nСледующая информация часть события:\n\n"
- IDS_CLEAREVENTS_MSG "Вы хотите сохранить журнал событий перед очисткой?"
IDS_SAVE_FILTER "Журнал событий (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Вы хотите сохранить журнал событий перед очисткой?"
+ IDS_EVENTSTRINGIDNOTFOUND "Не найдено описание для события с кодом ( %lu ) в источнике ( %s ). Возможно, на локальном компьютере нет нужных данных в реестре или файлов DLL сообщений для отображения сообщений удаленного компьютера.\n\nСледующая информация часть события:\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/sk-SK.rc b/base/applications/mscutils/eventvwr/lang/sk-SK.rc
index aed4e951d8..2e5b291e3b 100644
--- a/base/applications/mscutils/eventvwr/lang/sk-SK.rc
+++ b/base/applications/mscutils/eventvwr/lang/sk-SK.rc
@@ -142,9 +142,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "Popis pre udalosť ID ( %lu ) zo zdroja ( %s ) nebol nájdený. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
IDS_SAVE_FILTER "Event Log (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
+ IDS_EVENTSTRINGIDNOTFOUND "Popis pre udalosť ID ( %lu ) zo zdroja ( %s ) nebol nájdený. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -163,6 +163,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/sq-AL.rc b/base/applications/mscutils/eventvwr/lang/sq-AL.rc
index 08c7bd0fe3..70bedaf82c 100644
--- a/base/applications/mscutils/eventvwr/lang/sq-AL.rc
+++ b/base/applications/mscutils/eventvwr/lang/sq-AL.rc
@@ -145,9 +145,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "Përshkrimi për ngjarjet ID ( %lu ) në burim ( %s ) nuk gjindet. Kompjuter vendas mund të mos ketë informacionin e regjistrit te nevojshem ose mesazhin për dokumentat DLL për të shfaqur nga një kompjuter në distancë.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
IDS_SAVE_FILTER "Event Log (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
+ IDS_EVENTSTRINGIDNOTFOUND "Përshkrimi për ngjarjet ID ( %lu ) në burim ( %s ) nuk gjindet. Kompjuter vendas mund të mos ketë informacionin e regjistrit te nevojshem ose mesazhin për dokumentat DLL për të shfaqur nga një kompjuter në distancë.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -166,6 +166,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/sv-SE.rc b/base/applications/mscutils/eventvwr/lang/sv-SE.rc
index 77e4a321d0..d591cd42df 100644
--- a/base/applications/mscutils/eventvwr/lang/sv-SE.rc
+++ b/base/applications/mscutils/eventvwr/lang/sv-SE.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "Beskrivning av Händelse ID ( %lu ) i källan ( %s ) kan inte hittas. Lokal dator har inte nödvendig registerinformation eller meddelander DLL filer for å vise meddelander från en fjärr dator.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
IDS_SAVE_FILTER "Event Log (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
+ IDS_EVENTSTRINGIDNOTFOUND "Beskrivning av Händelse ID ( %lu ) i källan ( %s ) kan inte hittas. Lokal dator har inte nödvendig registerinformation eller meddelander DLL filer for å vise meddelander från en fjärr dator.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/tr-TR.rc b/base/applications/mscutils/eventvwr/lang/tr-TR.rc
index 221660b379..9a37929a48 100644
--- a/base/applications/mscutils/eventvwr/lang/tr-TR.rc
+++ b/base/applications/mscutils/eventvwr/lang/tr-TR.rc
@@ -145,9 +145,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "Dizge Kayıtları"
IDS_EVENTLOG_APP "Uygulama Kayıtları"
IDS_EVENTLOG_USER "Kullanıcı Kayıtları"
- IDS_EVENTSTRINGIDNOTFOUND "( %s ) kaynağındaki ( %lu ) olay kimliği için açıklama bulunamıyor. Yerli bilgisayarda, uzak bilgisayardan iletileri görüntülemesi için gerekli Değer Defteri bilgisi veyâ ileti DLL kütükleri olmayabilir.\n\nAşağıdaki bilgi olayın parçasıdır:\n\n"
- IDS_CLEAREVENTS_MSG "Silmeden önce bu olay kaydını saklamak ister misiniz?"
IDS_SAVE_FILTER "Olay Kaydı (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Silmeden önce bu olay kaydını saklamak ister misiniz?"
+ IDS_EVENTSTRINGIDNOTFOUND "( %s ) kaynağındaki ( %lu ) olay kimliği için açıklama bulunamıyor. Yerli bilgisayarda, uzak bilgisayardan iletileri görüntülemesi için gerekli Değer Defteri bilgisi veyâ ileti DLL kütükleri olmayabilir.\n\nAşağıdaki bilgi olayın parçasıdır:\n\n"
END
STRINGTABLE
@@ -166,6 +166,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/uk-UA.rc b/base/applications/mscutils/eventvwr/lang/uk-UA.rc
index 8a5dc3cbbb..a79d9cf6fa 100644
--- a/base/applications/mscutils/eventvwr/lang/uk-UA.rc
+++ b/base/applications/mscutils/eventvwr/lang/uk-UA.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "Опис для Ідентифікатора події ( %lu ) за джерелом ( %s ) не знайдено. Локальний комп'ютер може не мати необхідної інформації в реєстрі чи DLL файлів повідомлень для відображення повідомлень, що надходять від віддаленого комп'ютера.\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
IDS_SAVE_FILTER "Event Log (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "Do you want to save this event log before clearing it?"
+ IDS_EVENTSTRINGIDNOTFOUND "Опис для Ідентифікатора події ( %lu ) за джерелом ( %s ) не знайдено. Локальний комп'ютер може не мати необхідної інформації в реєстрі чи DLL файлів повідомлень для відображення повідомлень, що надходять від віддаленого комп'ютера.\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/zh-CN.rc b/base/applications/mscutils/eventvwr/lang/zh-CN.rc
index bcac2394b9..f250d05712 100644
--- a/base/applications/mscutils/eventvwr/lang/zh-CN.rc
+++ b/base/applications/mscutils/eventvwr/lang/zh-CN.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "系统日志"
IDS_EVENTLOG_APP "程序日志"
IDS_EVENTLOG_USER "用户日志"
- IDS_EVENTSTRINGIDNOTFOUND "来源 ( %s ) 中的事件 ID ( %lu ) 的描述无法找到。本地计算机可能没有显示来自远程计算机消息所必需的注册表信息或消息 DLL 文件。\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "你想要在清除之前保存此事件日志吗?"
IDS_SAVE_FILTER "事件日志 (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "你想要在清除之前保存此事件日志吗?"
+ IDS_EVENTSTRINGIDNOTFOUND "来源 ( %s ) 中的事件 ID ( %lu ) 的描述无法找到。本地计算机可能没有显示来自远程计算机消息所必需的注册表信息或消息 DLL 文件。\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/lang/zh-TW.rc b/base/applications/mscutils/eventvwr/lang/zh-TW.rc
index b43acc5f84..94afc5c069 100644
--- a/base/applications/mscutils/eventvwr/lang/zh-TW.rc
+++ b/base/applications/mscutils/eventvwr/lang/zh-TW.rc
@@ -139,9 +139,9 @@ BEGIN
IDS_EVENTLOG_SYSTEM "System Logs"
IDS_EVENTLOG_APP "Application Logs"
IDS_EVENTLOG_USER "User Logs"
- IDS_EVENTSTRINGIDNOTFOUND "來源 ( %s ) 中的事件 ID ( %lu ) 的描述無法找到。 本地電腦可能沒有顯示來自遠端電腦消息所必需的註冊表資訊或消息 DLL 檔。\n\nThe following information is part of the event:\n\n"
- IDS_CLEAREVENTS_MSG "你想要在清除之前保存此事件日誌嗎?"
IDS_SAVE_FILTER "事件日誌 (*.evt)\0*.evt\0"
+ IDS_CLEAREVENTS_MSG "你想要在清除之前保存此事件日誌嗎?"
+ IDS_EVENTSTRINGIDNOTFOUND "來源 ( %s ) 中的事件 ID ( %lu ) 的描述無法找到。 本地電腦可能沒有顯示來自遠端電腦消息所必需的註冊表資訊或消息 DLL 檔。\n\nThe following information is part of the event:\n\n"
END
STRINGTABLE
@@ -160,6 +160,7 @@ EventVwr [computer name] [/l:<event log file>] [/?]\n\
\n\
/? : Displays this help message.\n\
"
+ IDS_EVENTLOGFILE "Event Log File"
END
STRINGTABLE
diff --git a/base/applications/mscutils/eventvwr/resource.h b/base/applications/mscutils/eventvwr/resource.h
index a5c88a4a05..6917955720 100644
--- a/base/applications/mscutils/eventvwr/resource.h
+++ b/base/applications/mscutils/eventvwr/resource.h
@@ -89,11 +89,12 @@
#define IDS_EVENTLOG_SYSTEM 106
#define IDS_EVENTLOG_APP 107
#define IDS_EVENTLOG_USER 108
-#define IDS_EVENTSTRINGIDNOTFOUND 109
+#define IDS_SAVE_FILTER 109
#define IDS_CLEAREVENTS_MSG 110
-#define IDS_SAVE_FILTER 111
+#define IDS_EVENTSTRINGIDNOTFOUND 111
#define IDS_USAGE 120
+#define IDS_EVENTLOGFILE 121
#define IDS_EVENTLOG_ERROR_TYPE 200
#define IDS_EVENTLOG_WARNING_TYPE 201
diff --git a/boot/bootdata/hivecls.inf b/boot/bootdata/hivecls.inf
index c7edad646e..f368d4e3c5 100644
--- a/boot/bootdata/hivecls.inf
+++ b/boot/bootdata/hivecls.inf
@@ -23,7 +23,14 @@ HKCR,".clp","",0x00000000,"clpfile"
HKCR,"clpfile","",0x00000000,"Clipboard Element"
HKCR,"clpfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\clipbrd.exe,-121"
HKCR,"clpfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\clipbrd.exe,1"
-HKCR,"clpfile\shell\open\command","",0x00000000,"%SystemRoot%\system32\clipbrd.exe %1"
+HKCR,"clpfile\shell\open\command","",0x00020000,"%SystemRoot%\system32\clipbrd.exe %1"
+
+; Event Log File
+HKCR,".evt","",0x00000000,"evtfile"
+HKCR,"evtfile","",0x00000000,"Event Log File"
+HKCR,"evtfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\eventvwr.exe,-121"
+HKCR,"evtfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\eventvwr.exe,1"
+HKCR,"evtfile\shell\open\command","",0x00020000,"%SystemRoot%\system32\eventvwr.exe /l:""%1"""
; Rich Text Files
HKCR,".rtf","",0x00000000,"rtffile"
@@ -33,7 +40,7 @@ HKCR,"rtffile","",0x00000000,"Rich Text Document"
HKCR,"rtffile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\wordpad.exe,-1404"
HKCR,"rtffile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\wordpad.exe,-103"
HKCR,"rtffile\shell\open","",0x00000000,"Open"
-HKCR,"rtffile\shell\open\command","",0x00020000,"%SystemRoot%\system32\wordpad.exe %1"
+HKCR,"rtffile\shell\open\command","",0x00020000,"%SystemRoot%\system32\wordpad.exe ""%1"""
HKCR,"rtffile\shell\print\command","",0x00020000,"%SystemRoot%\system32\wordpad.exe /p ""%1"""
; Virtual Device Drivers
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fc9bc9390d1b6548acc21…
commit fc9bc9390d1b6548acc21922546711042483e5b8
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Fri Apr 13 08:48:57 2018 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Fri Apr 13 09:04:52 2018 +0200
[HAL] Reset the stack pointer to the stack frame when calling second-entry interrupt handlers. CORE-14449
Because we can encounter pending interrupts repeatedly,
HalpEndSoftwareInterrupt and HalEndSystemInterrupt already clean up the stack
space for their arguments (done for CORE-11123/CORE-14076).
However these functions are called from C functions such as KiInterruptDispatch
and HalpDispatchInterrupt2[ndEntry]. These callers also use up stack space,
and it is unknown how much.
To fix this, we simply reset the stack pointer to the location of the trap
frame, which is where it points during a first-level dispatch. This cleans
up the stack usage of any callers higher up, and is okay because a return
will happen through the trap frame anyway.
Dedicated to Pierre.
---
hal/halx86/up/pic.S | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/hal/halx86/up/pic.S b/hal/halx86/up/pic.S
index a5addcdf8c..3f65a5545d 100644
--- a/hal/halx86/up/pic.S
+++ b/hal/halx86/up/pic.S
@@ -39,11 +39,14 @@ PUBLIC _&WrapperName&@8
ret 8
WrapperName&_CallIntHandler:
- /* We got a pointer to call. Since it won't return, free up our stack
- space. Otherwise we could end up with some nasty deep recursion.
+ /* We got a pointer to call. Since it won't return, reset the stack to
+ the location of the stack frame. This frees up our own stack as well
+ as that of the functions above us, and avoids an overflow due to
+ excessive recursion.
The next function takes the trap frame as its (fastcall) argument. */
mov ecx, [esp+8]
- add esp, 12
+ mov esp, ecx
+ mov ebp, esp
jmp eax
.ENDP
ENDM
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bb03da981cf476686b058…
commit bb03da981cf476686b05884bdcef3f507f3b88f8
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Fri Apr 13 00:52:25 2018 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Fri Apr 13 01:02:20 2018 +0200
[EVENTVWR] Additions to the Event Viewer.
- Don't hardcode a buffer length in ExpandEnvironmentStringsW() call.
- If no file name is associated to a log (ErrorLog->FileName == NULL),
don't try to attempt looking at its file properties. This also allows
avoiding a crash in the FindFirstFileW() call under certain conditions
on Windows.
---
base/applications/mscutils/eventvwr/eventvwr.c | 44 ++++++++++++++++----------
1 file changed, 27 insertions(+), 17 deletions(-)
diff --git a/base/applications/mscutils/eventvwr/eventvwr.c b/base/applications/mscutils/eventvwr/eventvwr.c
index 6801b275e4..f7e89d3207 100644
--- a/base/applications/mscutils/eventvwr/eventvwr.c
+++ b/base/applications/mscutils/eventvwr/eventvwr.c
@@ -3459,30 +3459,40 @@ Quit:
FileName = EventLog->FileName;
if (FileName && *FileName)
{
- ExpandEnvironmentStringsW(FileName, wszBuf, MAX_PATH);
+ ExpandEnvironmentStringsW(FileName, wszBuf, ARRAYSIZE(wszBuf));
FileName = wszBuf;
}
+ else
+ {
+ FileName = L"";
+ }
SetDlgItemTextW(hDlg, IDC_LOGFILE, FileName);
- /*
- * The general problem here (and in the shell as well) is that
- * GetFileAttributesEx fails for files that are opened without
- * shared access. To retrieve file information for those we need
- * to use something else: FindFirstFile, on the full file name.
- */
-
- Success = GetFileAttributesExW(FileName,
- GetFileExInfoStandard,
- (LPWIN32_FILE_ATTRIBUTE_DATA)&FileInfo);
- if (!Success)
+ if (FileName && *FileName)
+ {
+ /*
+ * The general problem here (and in the shell as well) is that
+ * GetFileAttributesEx fails for files that are opened without
+ * shared access. To retrieve file information for those we need
+ * to use something else: FindFirstFile, on the full file name.
+ */
+ Success = GetFileAttributesExW(FileName,
+ GetFileExInfoStandard,
+ (LPWIN32_FILE_ATTRIBUTE_DATA)&FileInfo);
+ if (!Success)
+ {
+ HANDLE hFind = FindFirstFileW(FileName, &FileInfo);
+ Success = (hFind != INVALID_HANDLE_VALUE);
+ if (Success)
+ FindClose(hFind);
+ }
+ }
+ else
{
- HANDLE hFind = FindFirstFileW(FileName, &FileInfo);
- Success = (hFind != INVALID_HANDLE_VALUE);
- if (Success)
- FindClose(hFind);
+ Success = FALSE;
}
- // Starting there, FileName is invalid (because it uses wszBuf)
+ /* Starting there, FileName becomes invalid because we are reusing wszBuf */
if (Success)
{