mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bustage fix for windows.
This commit is contained in:
parent
dc9a40069b
commit
b35dae99b7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user