You've already forked fido2-manage.cpp
mirror of
https://github.com/token2/fido2-manage.cpp.git
synced 2026-06-22 14:42:52 -07:00
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:
+1
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user