Compare commits

...
4 Commits
Author SHA1 Message Date
bicarus cf5d87d4d5 Update bug report template description 2026-10-07 20:13:47 -07:00
bicarus 175245333d Fix formatting in bug report issue template 2026-10-07 20:12:45 -07:00
bicarus 9c8f7f551d Update bug_report.md 2026-10-07 20:12:25 -07:00
bicarus-dev 0684872013 fix error printing for dll info 2026-10-03 15:23:38 -07:00
2 changed files with 4 additions and 8 deletions

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
---
name: Bug report
about: Create a report to help us improve
name: Bug report (NOT for troubleshooting or asking for help)
about: 'File a bug in spice2x'
title: ''
labels: bug
assignees: ''
+2 -6
View File
@@ -404,13 +404,11 @@ void libutils::print_dll_info(std::filesystem::path filename) {
const auto size = GetFileVersionInfoSizeW(filename.wstring().c_str(), &handle);
if (size == 0) {
const auto error = GetLastError();
const auto error_message = get_last_error_string();
log_misc(
"libutils",
"GetFileVersionInfoSizeW failed for {}: {} (Win32 error {}); "
"GetFileVersionInfoSizeW failed for {}: Win32 error {}; "
"DLL may have no version resource",
filename,
error_message,
error);
print_summary();
return;
@@ -419,12 +417,10 @@ void libutils::print_dll_info(std::filesystem::path filename) {
auto data = util::make_unique_plain<VOID>(size);
if (!GetFileVersionInfoW(filename.wstring().c_str(), handle, size, data.get())) {
const auto error = GetLastError();
const auto error_message = get_last_error_string();
log_misc(
"libutils",
"GetFileVersionInfoW failed for {}: {} (Win32 error {})",
"GetFileVersionInfoW failed for {}: Win32 error {}",
filename,
error_message,
error);
print_summary();
return;