Bug 1360819 - Do not show a console on Windows when launching the pingsender; r=Dexter
authorGabriele Svelto <gsvelto@mozilla.com>
Thu, 04 May 2017 10:51:04 +0200
changeset 356596 7ab439a6b381e345f580ca3753a7b36b5983022f
parent 356595 fd0dc297282a2fd83a4790a9e50e068640dac665
child 356597 1ee8d900197019dfdb84df0dbb861eb082ae00ce
push id31767
push usercbook@mozilla.com
push dateFri, 05 May 2017 13:15:58 +0000
treeherdermozilla-central@8872ad4d52b6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersDexter
bugs1360819
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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 {