Nikolay Sivov : wshom.ocx: Implement ProcessID() property.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 10 10:10:03 CDT 2015


Module: wine
Branch: master
Commit: 2a925eba2006e815218d5ec3790f7f61aff14542
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2a925eba2006e815218d5ec3790f7f61aff14542

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Mar  9 20:10:47 2015 +0300

wshom.ocx: Implement ProcessID() property.

---

 dlls/wshom.ocx/shell.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/wshom.ocx/shell.c b/dlls/wshom.ocx/shell.c
index 6d1b80b..dcf1462 100644
--- a/dlls/wshom.ocx/shell.c
+++ b/dlls/wshom.ocx/shell.c
@@ -236,9 +236,13 @@ static HRESULT WINAPI WshExec_get_ProcessID(IWshExec *iface, DWORD *pid)
 {
     WshExec *This = impl_from_IWshExec(iface);
 
-    FIXME("(%p)->(%p): stub\n", This, pid);
+    TRACE("(%p)->(%p)\n", This, pid);
 
-    return E_NOTIMPL;
+    if (!pid)
+        return E_INVALIDARG;
+
+    *pid = This->info.dwProcessId;
+    return S_OK;
 }
 
 static HRESULT WINAPI WshExec_get_ExitCode(IWshExec *iface, DWORD *code)




More information about the wine-cvs mailing list