From 962cfb1956c998fe637cd6ed15f001fa9a5de90e Mon Sep 17 00:00:00 2001 From: David Rajchenbach-Teller Date: Fri, 21 Sep 2012 23:36:14 -0400 Subject: [PATCH] Bug 790633 - Make FindClose errors visible to the test suite. r=froydnj --- toolkit/components/osfile/osfile_win_front.jsm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolkit/components/osfile/osfile_win_front.jsm b/toolkit/components/osfile/osfile_win_front.jsm index ce051a6004b6..05fe393c5c95 100644 --- a/toolkit/components/osfile/osfile_win_front.jsm +++ b/toolkit/components/osfile/osfile_win_front.jsm @@ -561,7 +561,8 @@ if (!this._handle) { return; } - WinFile.FindClose(this._handle); + throw_on_zero("FindClose", + WinFile.FindClose(this._handle)); this._handle = null; } };