Skip to content

Commit 8524051

Browse files
committed
Update
1 parent b638d25 commit 8524051

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,12 @@ def DllGetClassObject(rclsid, riid, ppv):
224224
iid = str_from_guid(GUID.from_address(riid))
225225
if is_equal_guid(iid, IID_IClassFactory) == TRUE:
226226
try:
227-
punk = IUnknown()
228-
CopyComPointer(c_void_p(ppv), byref(punk))
229227
pcf = IClassFactory()
230-
punk.QueryInterface(IID_IClassFactory, pcf)
228+
hr = CopyComPointer(c_void_p(ppv), byref(pcf))
229+
print(pcf.AddRef())
230+
return hr
231231
except COMError as e:
232232
return e.hresult
233-
return S_OK
234233
return CLASS_E_CLASSNOTAVAILABLE
235234

236235
try:

0 commit comments

Comments
 (0)