Bug 1360819 - Do not show a console on Windows when launching the pingsender; r?Dexter draft
authorGabriele Svelto <gsvelto@mozilla.com>
Thu, 04 May 2017 10:51:04 +0200
changeset 572534 529800634a7c8630b56b785651e587c67006535a
parent 572425 4a6a71f4aa22e4dc3961884ce505ce34bdd799a2
child 627050 ee423fb2b72c27a65bacec3a4450295ef7fda293
push id57104
push usergsvelto@mozilla.com
push dateThu, 04 May 2017 08:51:35 +0000
reviewersDexter
bugs1360819
milestone55.0a1
Bug 1360819 - Do not show a console on Windows when launching the pingsender; r?Dexter MozReview-Commit-ID: 54TBiNMFcWM
toolkit/components/telemetry/pingsender/pingsender_win.cpp
--- 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 {