Bug 790649. r=froydnj, a=akeybl
authorDavid Rajchenbach-Teller <dteller@mozilla.com>
Sun, 23 Sep 2012 21:03:22 -0400
changeset 104828 28b930feb615aa3080f35011e12f907ca2737008
parent 104827 83d1c07921bf2bfea3af3b26e2feb921110aa979
child 104829 6580000865f25723ea1bdcac22c887365c50b1a5
push id1449
push userryanvm@gmail.com
push dateMon, 24 Sep 2012 01:04:19 +0000
treeherdermozilla-beta@28b930feb615 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj, akeybl
bugs790649
milestone16.0
Bug 790649. r=froydnj, a=akeybl
toolkit/components/osfile/osfile_win_back.jsm
--- a/toolkit/components/osfile/osfile_win_back.jsm
+++ b/toolkit/components/osfile/osfile_win_back.jsm
@@ -181,22 +181,22 @@
                         /*return */ctypes.bool,
                         /*handle*/ ctypes.voidptr_t);
 
        WinFile.CloseHandle = function(fd) {
          return fd.dispose(); // Returns the value of |CloseHandle|.
        };
 
        let _FindClose =
-         libc.declare("CloseHandle", ctypes.winapi_abi,
+         libc.declare("FindClose", ctypes.winapi_abi,
                         /*return */ctypes.bool,
                         /*handle*/ ctypes.voidptr_t);
 
        WinFile.FindClose = function(handle) {
-         return handle.dispose(); // Returns the value of |CloseHandle|.
+         return handle.dispose(); // Returns the value of |FindClose|.
        };
 
        // Declare libc functions as functions of |OS.Win.File|
 
        WinFile.CopyFile =
          declareFFI("CopyFileW", ctypes.winapi_abi,
                     /*return*/ Types.zero_or_nothing,
                     /*sourcePath*/ Types.jschar.in_ptr,