Fix cppcheck reported issues (#333)

Fixes: https://github.com/microsoft/PowerToys/issues/266
This commit is contained in:
Bartosz Sosnowski
2019-09-11 12:38:20 +02:00
committed by GitHub
parent 12cd7bb49f
commit 8ac6db8b5a
19 changed files with 34 additions and 36 deletions

View File

@@ -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);
}