From fa7cde39535a4bd2d21e2681b0802a9dfe7a92b9 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Thu, 7 Oct 2021 18:12:08 +0900 Subject: [PATCH 1/2] Handle error code 1813 (RESOURCE_TYPE_NOT_FOUND) Signed-off-by: Hiroshi Hatake --- ext/winevt/winevt_utils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/winevt/winevt_utils.cpp b/ext/winevt/winevt_utils.cpp index 0710bb5..1d1d23f 100644 --- a/ext/winevt/winevt_utils.cpp +++ b/ext/winevt/winevt_utils.cpp @@ -382,6 +382,7 @@ get_message(EVT_HANDLE hMetadata, EVT_HANDLE handle) case ERROR_EVT_MESSAGE_NOT_FOUND: case ERROR_EVT_MESSAGE_ID_NOT_FOUND: case ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND: + case ERROR_RESOURCE_TYPE_NOT_FOUND: case ERROR_RESOURCE_LANG_NOT_FOUND: case ERROR_MUI_FILE_NOT_FOUND: case ERROR_EVT_UNRESOLVED_PARAMETER_INSERT: { @@ -434,6 +435,7 @@ get_message(EVT_HANDLE hMetadata, EVT_HANDLE handle) case ERROR_EVT_MESSAGE_NOT_FOUND: case ERROR_EVT_MESSAGE_ID_NOT_FOUND: case ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND: + case ERROR_RESOURCE_TYPE_NOT_FOUND: case ERROR_RESOURCE_LANG_NOT_FOUND: case ERROR_MUI_FILE_NOT_FOUND: case ERROR_EVT_UNRESOLVED_PARAMETER_INSERT: From 2b1e7f7122ee00c6a32576f46de8ddcc8ab03ba8 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Fri, 8 Oct 2021 15:37:32 +0900 Subject: [PATCH 2/2] Handle other SOURCES_XXX errors DATA and NAME also should be handled. Signed-off-by: Hiroshi Hatake --- ext/winevt/winevt_utils.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/winevt/winevt_utils.cpp b/ext/winevt/winevt_utils.cpp index 1d1d23f..2545c40 100644 --- a/ext/winevt/winevt_utils.cpp +++ b/ext/winevt/winevt_utils.cpp @@ -382,7 +382,9 @@ get_message(EVT_HANDLE hMetadata, EVT_HANDLE handle) case ERROR_EVT_MESSAGE_NOT_FOUND: case ERROR_EVT_MESSAGE_ID_NOT_FOUND: case ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND: + case ERROR_RESOURCE_DATA_NOT_FOUND: case ERROR_RESOURCE_TYPE_NOT_FOUND: + case ERROR_RESOURCE_NAME_NOT_FOUND: case ERROR_RESOURCE_LANG_NOT_FOUND: case ERROR_MUI_FILE_NOT_FOUND: case ERROR_EVT_UNRESOLVED_PARAMETER_INSERT: { @@ -435,7 +437,9 @@ get_message(EVT_HANDLE hMetadata, EVT_HANDLE handle) case ERROR_EVT_MESSAGE_NOT_FOUND: case ERROR_EVT_MESSAGE_ID_NOT_FOUND: case ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND: + case ERROR_RESOURCE_DATA_NOT_FOUND: case ERROR_RESOURCE_TYPE_NOT_FOUND: + case ERROR_RESOURCE_NAME_NOT_FOUND: case ERROR_RESOURCE_LANG_NOT_FOUND: case ERROR_MUI_FILE_NOT_FOUND: case ERROR_EVT_UNRESOLVED_PARAMETER_INSERT: