mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +02:00
Fix cppcheck reported issues (#333)
Fixes: https://github.com/microsoft/PowerToys/issues/266
This commit is contained in:
committed by
GitHub
parent
12cd7bb49f
commit
8ac6db8b5a
@@ -112,7 +112,7 @@ void send_message_to_webview(const std::wstring& msg) {
|
||||
}
|
||||
}
|
||||
|
||||
void send_message_to_powertoys(const std::wstring msg) {
|
||||
void send_message_to_powertoys(const std::wstring& msg) {
|
||||
if (current_settings_ipc != NULL) {
|
||||
current_settings_ipc->send(msg);
|
||||
} else {
|
||||
@@ -439,6 +439,6 @@ int start_webview_window(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpC
|
||||
}
|
||||
|
||||
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
|
||||
HRESULT hrInit = CoInitialize(nullptr);
|
||||
CoInitialize(nullptr);
|
||||
return start_webview_window(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user