Bug 1359536 - Fix incorrect ABI for js-ctypes declaration of GetVersionExW. r=mhowell, a=gchang
authorAaron Klotz <aklotz@mozilla.com>
Tue, 25 Apr 2017 12:29:20 -0600
changeset 396066 0ee6d3ac7a062d7546676f0e61c258aaf8c1f1c0
parent 396065 f4279077d48fa17de2d76f3e9d0d896585dc6874
child 396067 67059080981c3de0a35a65b360ae833ddc30df50
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmhowell, gchang
bugs1359536
milestone54.0
Bug 1359536 - Fix incorrect ABI for js-ctypes declaration of GetVersionExW. r=mhowell, a=gchang MozReview-Commit-ID: CyAnHFLwfrb
toolkit/mozapps/update/nsUpdateService.js
--- a/toolkit/mozapps/update/nsUpdateService.js
+++ b/toolkit/mozapps/update/nsUpdateService.js
@@ -953,17 +953,17 @@ function shouldUseService() {
     Cu.reportError("Unable to open kernel32! " + e);
     return false;
   }
 
   if (kernel32) {
     try {
       try {
         let GetVersionEx = kernel32.declare("GetVersionExW",
-                                            ctypes.default_abi,
+                                            ctypes.winapi_abi,
                                             BOOL,
                                             OSVERSIONINFOEXW.ptr);
         let winVer = OSVERSIONINFOEXW();
         winVer.dwOSVersionInfoSize = OSVERSIONINFOEXW.size;
 
         if (0 !== GetVersionEx(winVer.address())) {
           return winVer.wServicePackMajor >= 3;
         }