Module: wine Branch: master Commit: cfdbebd80cba33c3b201071bc195940a831368e5 URL: https://gitlab.winehq.org/wine/wine/-/commit/cfdbebd80cba33c3b201071bc195940...
Author: Robert Wilhelm robert.wilhelm@gmx.net Date: Sun Aug 14 11:18:04 2022 +0200
wshom: Use signed type for property ProcessID in IWshExec.
Automation interfaces should use signed types, because VBScript does not support unsigned types like VT_UI4.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53542 Signed-off-by: Robert Wilhelm robert.wilhelm@gmx.net
---
dlls/wshom.ocx/shell.c | 2 +- dlls/wshom.ocx/tests/wshom.idl | 2 +- dlls/wshom.ocx/wshom.idl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wshom.ocx/shell.c b/dlls/wshom.ocx/shell.c index 41913dcadd5..5ac04e60e88 100644 --- a/dlls/wshom.ocx/shell.c +++ b/dlls/wshom.ocx/shell.c @@ -264,7 +264,7 @@ static HRESULT WINAPI WshExec_get_StdErr(IWshExec *iface, ITextStream **stream) return S_OK; }
-static HRESULT WINAPI WshExec_get_ProcessID(IWshExec *iface, DWORD *pid) +static HRESULT WINAPI WshExec_get_ProcessID(IWshExec *iface, int *pid) { WshExecImpl *This = impl_from_IWshExec(iface);
diff --git a/dlls/wshom.ocx/tests/wshom.idl b/dlls/wshom.ocx/tests/wshom.idl index a0175bb1604..ee9578f5ae3 100644 --- a/dlls/wshom.ocx/tests/wshom.idl +++ b/dlls/wshom.ocx/tests/wshom.idl @@ -436,7 +436,7 @@ library IWshRuntimeLibrary HRESULT StdErr([out, retval] ITextStream** stream);
[id(0x0006), propget] - HRESULT ProcessID([out, retval] DWORD *pid); + HRESULT ProcessID([out, retval] int *pid);
[id(0x0007), propget] HRESULT ExitCode([out, retval] DWORD *code); diff --git a/dlls/wshom.ocx/wshom.idl b/dlls/wshom.ocx/wshom.idl index c69362d6fac..c2984afc227 100644 --- a/dlls/wshom.ocx/wshom.idl +++ b/dlls/wshom.ocx/wshom.idl @@ -436,7 +436,7 @@ library IWshRuntimeLibrary HRESULT StdErr([out, retval] ITextStream** stream);
[id(0x0006), propget] - HRESULT ProcessID([out, retval] DWORD *pid); + HRESULT ProcessID([out, retval] int *pid);
[id(0x0007), propget] HRESULT ExitCode([out, retval] DWORD *code);