Bug 1359536: Fix incorrect ABI for js-ctypes declaration of GetVersionExW; r?mhowell draft
authorAaron Klotz <aklotz@mozilla.com>
Tue, 25 Apr 2017 12:29:20 -0600
changeset 568053 f7c107a6e675b669d2f8c5d06a23788b411611c7
parent 566496 e721983aa4a832c55fc8b38ff0b999a21fe6fd8d
child 568108 daee028bbe21e64c92219dc56065868ca60e2f28
child 568113 3f301c25c49f06d265f341ab7831d556d118cd85
push id55743
push useraklotz@mozilla.com
push dateTue, 25 Apr 2017 18:29:39 +0000
reviewersmhowell
bugs1359536
milestone55.0a1
Bug 1359536: Fix incorrect ABI for js-ctypes declaration of GetVersionExW; r?mhowell MozReview-Commit-ID: CyAnHFLwfrb
toolkit/mozapps/update/nsUpdateService.js
--- a/toolkit/mozapps/update/nsUpdateService.js
+++ b/toolkit/mozapps/update/nsUpdateService.js
@@ -958,17 +958,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;
         }