Bustage fix for windows.

This commit is contained in:
Shawn Wilsher 2009-11-09 10:35:26 -08:00
parent dc9a40069b
commit b35dae99b7

View File

@ -591,8 +591,11 @@ Connection::AsyncClose(mozIStorageCompletionCallback *aCallback)
// Create our callback event if we were given a callback.
nsCOMPtr<nsIRunnable> completeEvent;
if (aCallback) {
completeEvent = NS_NEW_RUNNABLE_METHOD(mozIStorageCompletionCallback,
aCallback, Complete);
completeEvent =
new nsRunnableMethod<mozIStorageCompletionCallback, nsresult>(
aCallback,
&mozIStorageCompletionCallback::Complete
);
NS_ENSURE_TRUE(completeEvent, NS_ERROR_OUT_OF_MEMORY);
}