Bug 1360819 - Do not show a console on Windows when launching the pingsender; r?Dexter
MozReview-Commit-ID: 54TBiNMFcWM
--- a/toolkit/components/telemetry/pingsender/pingsender_win.cpp
+++ b/toolkit/components/telemetry/pingsender/pingsender_win.cpp
@@ -3,16 +3,18 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <string>
#include <windows.h>
#include <wininet.h>
+#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
+
namespace PingSender {
using std::string;
/**
* A helper to automatically close internet handles when they go out of scope
*/
class ScopedHInternet {