Fix #8 - correct PopulateListView forward declaration signature

The forward declaration at line 568 had one parameter
(const std::wstring&) while the definition at line 694 takes two
(HWND, const std::wstring&). The mismatch is a latent ODR violation:
the compiler currently resolves correctly because the declaration
appears after the definition, but any reorganisation that moves the
declaration above the definition would cause a compile error or a
silent wrong-function call. Updated the declaration to match the
definition and the single call site exactly.

Fixes #8
This commit is contained in:
Tamir Suliman
2026-06-06 13:43:49 +02:00
parent 1b6ab4892c
commit 49c0eb481a
+1 -1
View File
@@ -565,7 +565,7 @@ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
std::vector<std::wstring> RunCommandAndGetOutput(const std::wstring& command);
void PopulateComboBox();
void PopulateListView(const std::wstring& deviceNumber);
void PopulateListView(HWND hwnd, const std::wstring& deviceNumber);
void ResizeControls(HWND hwnd);
void RefreshData();