Windows build fixes
[WebKit-https.git] / WebKitTools / Drosera / win / DebuggerDocumentPlatform.cpp
index f23daf7..851efd8 100644 (file)
@@ -91,7 +91,7 @@ void DebuggerDocument::getPlatformCurrentFunctionStack(JSContextRef context, Vec
         if (FAILED(frame->functionName(&function)))
             return;
 
-        if (FAILED(frame->caller(&caller)))
+        if (FAILED(frame->caller(caller.adoptionPointer())))
             return;
 
         if (!function) {
@@ -118,7 +118,7 @@ void DebuggerDocument::getPlatformLocalScopeVariableNamesForCallFrame(JSContextR
     VariantInit(&var);
 
     COMPtr<IEnumVARIANT> localScopeVariableNames;
-    if (FAILED(cframe->variableNames(&localScopeVariableNames)))
+    if (FAILED(cframe->variableNames(localScopeVariableNames.adoptionPointer())))
         return;
 
     while (localScopeVariableNames->Next(1, &var, 0) == S_OK) {