WaitForSingleObject() takes a DWORD as a parameter, so we might as well.

This commit is contained in:
Per Lundberg
2013-08-05 23:02:08 +03:00
parent cc34c0604a
commit bddd72b0ad
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -88,7 +88,7 @@ namespace CefSharp
}
}
gcroot<Object^> ScriptCore::Evaluate(CefRefPtr<CefBrowser> browser, CefString script, double timeout)
gcroot<Object^> ScriptCore::Evaluate(CefRefPtr<CefBrowser> browser, CefString script, DWORD timeout)
{
AutoLock lock_scope(this);
_result = nullptr;
@@ -100,8 +100,7 @@ namespace CefSharp
}
else
{
CefPostTask(TID_UI, NewCefRunnableMethod(this, &ScriptCore::UIT_Evaluate,
browser, script));
CefPostTask(TID_UI, NewCefRunnableMethod(this, &ScriptCore::UIT_Evaluate, browser, script));
}
switch (WaitForSingleObject(_event, timeout))