winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
June 2023
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
1 participants
633 discussions
Start a n
N
ew thread
Alexandre Julliard : makefiles: Pass the dll extension from configure.
by Alexandre Julliard
15 Jun '23
15 Jun '23
Module: wine Branch: master Commit: 80fc252f18c6282b8a974b9bd2e981d82692700e URL:
https://gitlab.winehq.org/wine/wine/-/commit/80fc252f18c6282b8a974b9bd2e981…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jun 15 10:21:16 2023 +0200 makefiles: Pass the dll extension from configure. --- configure | 5 +++++ configure.ac | 2 ++ tools/makedep.c | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 9f06d6193eb..3e8b30eb567 100755 --- a/configure +++ b/configure @@ -766,6 +766,7 @@ SUBDIRS READELF OTOOL LDD +DLLEXT WINEPRELOADER_LDFLAGS WINELOADER_LDFLAGS TOP_INSTALL_DEV @@ -9146,6 +9147,8 @@ WINELOADER_LDFLAGS="" WINEPRELOADER_LDFLAGS="" +DLLEXT=".so" + LIBEXT="so" # Extract the first word of "ldd", so it can be a program name with args. set dummy ldd; ac_word=$2 @@ -9437,6 +9440,7 @@ $ac_links: case $host_os in cygwin*|mingw32*) LIBEXT="dll" + DLLEXT="" EXTRACFLAGS="-D__WINE_PE_BUILD" case $host_cpu in *i[3456]86*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--disable-stdcall-fixup" >&5 @@ -23204,6 +23208,7 @@ TOP_INSTALL_LIB = $TOP_INSTALL_LIB TOP_INSTALL_DEV = $TOP_INSTALL_DEV WINELOADER_LDFLAGS = $WINELOADER_LDFLAGS WINEPRELOADER_LDFLAGS = $WINEPRELOADER_LDFLAGS +DLLEXT = $DLLEXT LDD = $LDD OTOOL = $OTOOL READELF = $READELF diff --git a/configure.ac b/configure.ac index 7a4af2d454e..1c17475ce80 100644 --- a/configure.ac +++ b/configure.ac @@ -643,6 +643,7 @@ AC_SUBST(TOP_INSTALL_LIB,"") AC_SUBST(TOP_INSTALL_DEV,"") AC_SUBST(WINELOADER_LDFLAGS,"") AC_SUBST(WINEPRELOADER_LDFLAGS,"") +AC_SUBST(DLLEXT,".so") LIBEXT="so" WINE_PATH_SONAME_TOOLS WINE_CONFIG_HELPERS @@ -650,6 +651,7 @@ WINE_CONFIG_HELPERS case $host_os in cygwin*|mingw32*) LIBEXT="dll" + DLLEXT="" EXTRACFLAGS="-D__WINE_PE_BUILD" dnl Disable stdcall fixups to catch prototype mismatches case $host_cpu in diff --git a/tools/makedep.c b/tools/makedep.c index 3322e825617..7f6772e5203 100644 --- a/tools/makedep.c +++ b/tools/makedep.c @@ -4407,7 +4407,7 @@ int main( int argc, char *argv[] ) tools_dir = get_expanded_make_variable( top_makefile, "toolsdir" ); tools_ext = get_expanded_make_variable( top_makefile, "toolsext" ); exe_ext = get_expanded_make_variable( top_makefile, "EXEEXT" ); - dll_ext = (exe_ext && !strcmp( exe_ext, ".exe" )) ? "" : ".so"; + dll_ext = get_expanded_make_variable( top_makefile, "DLLEXT" ); fontforge = get_expanded_make_variable( top_makefile, "FONTFORGE" ); convert = get_expanded_make_variable( top_makefile, "CONVERT" ); flex = get_expanded_make_variable( top_makefile, "FLEX" ); @@ -4424,6 +4424,7 @@ int main( int argc, char *argv[] ) if (root_src_dir && !strcmp( root_src_dir, "." )) root_src_dir = NULL; if (tools_dir && !strcmp( tools_dir, "." )) tools_dir = NULL; if (!exe_ext) exe_ext = ""; + if (!dll_ext) dll_ext = ""; if (!tools_ext) tools_ext = ""; strarray_add( &archs, get_expanded_make_variable( top_makefile, "HOST_ARCH" ));
1
0
0
0
Fabian Maurer : mmdevapi: Don't redefine stream_handle (gcc 4.3).
by Alexandre Julliard
15 Jun '23
15 Jun '23
Module: wine Branch: master Commit: a58ec769890883bb7cb15c916a3f6dee76f8b8c0 URL:
https://gitlab.winehq.org/wine/wine/-/commit/a58ec769890883bb7cb15c916a3f6d…
Author: Fabian Maurer <dark.shadow4(a)web.de> Date: Tue Jun 13 21:31:02 2023 +0200 mmdevapi: Don't redefine stream_handle (gcc 4.3). Signed-off-by: Fabian Maurer <dark.shadow4(a)web.de> --- dlls/mmdevapi/client.c | 2 +- dlls/mmdevapi/mmdevapi_private.h | 2 +- dlls/mmdevapi/mmdevdrv.h | 2 -- dlls/mmdevapi/session.c | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/dlls/mmdevapi/client.c b/dlls/mmdevapi/client.c index b1b178e00a5..8eb6d6867dc 100644 --- a/dlls/mmdevapi/client.c +++ b/dlls/mmdevapi/client.c @@ -28,8 +28,8 @@ #include <wine/debug.h> #include <wine/unixlib.h> -#include "mmdevdrv.h" #include "unixlib.h" +#include "mmdevdrv.h" WINE_DEFAULT_DEBUG_CHANNEL(mmdevapi); diff --git a/dlls/mmdevapi/mmdevapi_private.h b/dlls/mmdevapi/mmdevapi_private.h index 5abde115951..1cd8412b6ea 100644 --- a/dlls/mmdevapi/mmdevapi_private.h +++ b/dlls/mmdevapi/mmdevapi_private.h @@ -23,8 +23,8 @@ #include <wine/list.h> #include <wine/unixlib.h> -#include "mmdevdrv.h" #include "unixlib.h" +#include "mmdevdrv.h" extern HRESULT MMDevEnum_Create(REFIID riid, void **ppv) DECLSPEC_HIDDEN; extern void MMDevEnum_Free(void) DECLSPEC_HIDDEN; diff --git a/dlls/mmdevapi/mmdevdrv.h b/dlls/mmdevapi/mmdevdrv.h index 5c26b1b34d8..df21859cbad 100644 --- a/dlls/mmdevapi/mmdevdrv.h +++ b/dlls/mmdevapi/mmdevdrv.h @@ -19,8 +19,6 @@ #include <wine/list.h> -typedef UINT64 stream_handle; - typedef struct audio_client ACImpl; typedef struct audio_session { diff --git a/dlls/mmdevapi/session.c b/dlls/mmdevapi/session.c index e0625b59993..6762dad255e 100644 --- a/dlls/mmdevapi/session.c +++ b/dlls/mmdevapi/session.c @@ -28,8 +28,8 @@ #include <wine/debug.h> #include <wine/unixlib.h> -#include "mmdevdrv.h" #include "unixlib.h" +#include "mmdevdrv.h" #define NULL_PTR_ERR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, RPC_X_NULL_REF_POINTER)
1
0
0
0
Alex Henrie : rpcrt4: Don't use GetProcAddress for ole32 functions.
by Alexandre Julliard
15 Jun '23
15 Jun '23
Module: wine Branch: master Commit: f0b0c7f4641d129e6b306534084e77cc4cfd1e94 URL:
https://gitlab.winehq.org/wine/wine/-/commit/f0b0c7f4641d129e6b306534084e77…
Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Tue Jun 6 22:18:05 2023 -0600 rpcrt4: Don't use GetProcAddress for ole32 functions. It's more elegant to put ole32 in the DELAYIMPORTS. --- dlls/rpcrt4/Makefile.in | 2 +- dlls/rpcrt4/ndr_ole.c | 62 +++++++++++-------------------------------------- 2 files changed, 14 insertions(+), 50 deletions(-) diff --git a/dlls/rpcrt4/Makefile.in b/dlls/rpcrt4/Makefile.in index 2aa2a5376aa..3542118d1a0 100644 --- a/dlls/rpcrt4/Makefile.in +++ b/dlls/rpcrt4/Makefile.in @@ -2,7 +2,7 @@ EXTRADEFS = -D_RPCRT4_ -DMSWMSG MODULE = rpcrt4.dll IMPORTLIB = rpcrt4 IMPORTS = uuid advapi32 -DELAYIMPORTS = iphlpapi wininet secur32 user32 ws2_32 oleaut32 +DELAYIMPORTS = iphlpapi wininet secur32 user32 ws2_32 ole32 oleaut32 ndr_types_EXTRAIDLFLAGS = -Oicf diff --git a/dlls/rpcrt4/ndr_ole.c b/dlls/rpcrt4/ndr_ole.c index 2fdc7b55335..69ce3e1871b 100644 --- a/dlls/rpcrt4/ndr_ole.c +++ b/dlls/rpcrt4/ndr_ole.c @@ -44,33 +44,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole); -static HMODULE hOLE; - -static HRESULT (WINAPI *COM_GetMarshalSizeMax)(ULONG *,REFIID,LPUNKNOWN,DWORD,LPVOID,DWORD); -static HRESULT (WINAPI *COM_MarshalInterface)(LPSTREAM,REFIID,LPUNKNOWN,DWORD,LPVOID,DWORD); -static HRESULT (WINAPI *COM_UnmarshalInterface)(LPSTREAM,REFIID,LPVOID*); -static HRESULT (WINAPI *COM_ReleaseMarshalData)(LPSTREAM); -static HRESULT (WINAPI *COM_GetClassObject)(REFCLSID,DWORD,COSERVERINFO *,REFIID,LPVOID *); -static HRESULT (WINAPI *COM_GetPSClsid)(REFIID,CLSID *); -static LPVOID (WINAPI *COM_MemAlloc)(ULONG); -static void (WINAPI *COM_MemFree)(LPVOID); - -static HMODULE LoadCOM(void) -{ - if (hOLE) return hOLE; - hOLE = LoadLibraryA("OLE32.DLL"); - if (!hOLE) return 0; - COM_GetMarshalSizeMax = (LPVOID)GetProcAddress(hOLE, "CoGetMarshalSizeMax"); - COM_MarshalInterface = (LPVOID)GetProcAddress(hOLE, "CoMarshalInterface"); - COM_UnmarshalInterface = (LPVOID)GetProcAddress(hOLE, "CoUnmarshalInterface"); - COM_ReleaseMarshalData = (LPVOID)GetProcAddress(hOLE, "CoReleaseMarshalData"); - COM_GetClassObject = (LPVOID)GetProcAddress(hOLE, "CoGetClassObject"); - COM_GetPSClsid = (LPVOID)GetProcAddress(hOLE, "CoGetPSClsid"); - COM_MemAlloc = (LPVOID)GetProcAddress(hOLE, "CoTaskMemAlloc"); - COM_MemFree = (LPVOID)GetProcAddress(hOLE, "CoTaskMemFree"); - return hOLE; -} - /* CoMarshalInterface/CoUnmarshalInterface works on streams, * so implement a simple stream on top of the RPC buffer * (which also implements the MInterfacePointer structure) */ @@ -313,14 +286,13 @@ unsigned char * WINAPI NdrInterfacePointerMarshall(PMIDL_STUB_MESSAGE pStubMsg, TRACE("(%p,%p,%p)\n", pStubMsg, pMemory, pFormat); pStubMsg->MaxCount = 0; - if (!LoadCOM()) return NULL; if (pStubMsg->Buffer + sizeof(DWORD) <= (unsigned char *)pStubMsg->RpcMsg->Buffer + pStubMsg->BufferLength) { hr = RpcStream_Create(pStubMsg, TRUE, NULL, &stream); if (hr == S_OK) { if (pMemory) - hr = COM_MarshalInterface(stream, riid, (LPUNKNOWN)pMemory, - pStubMsg->dwDestContext, pStubMsg->pvDestContext, - MSHLFLAGS_NORMAL); + hr = CoMarshalInterface(stream, riid, (IUnknown *)pMemory, + pStubMsg->dwDestContext, pStubMsg->pvDestContext, + MSHLFLAGS_NORMAL); IStream_Release(stream); } @@ -343,7 +315,6 @@ unsigned char * WINAPI NdrInterfacePointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg HRESULT hr; TRACE("(%p,%p,%p,%d)\n", pStubMsg, ppMemory, pFormat, fMustAlloc); - if (!LoadCOM()) return NULL; /* Avoid reference leaks for [in, out] pointers. */ if (pStubMsg->IsClient && *unk) @@ -356,7 +327,7 @@ unsigned char * WINAPI NdrInterfacePointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg hr = RpcStream_Create(pStubMsg, FALSE, &size, &stream); if (hr == S_OK) { if (size != 0) - hr = COM_UnmarshalInterface(stream, &IID_NULL, (void **)unk); + hr = CoUnmarshalInterface(stream, &IID_NULL, (void **)unk); IStream_Release(stream); } @@ -378,10 +349,9 @@ void WINAPI NdrInterfacePointerBufferSize(PMIDL_STUB_MESSAGE pStubMsg, ULONG size = 0; TRACE("(%p,%p,%p)\n", pStubMsg, pMemory, pFormat); - if (!LoadCOM()) return; - COM_GetMarshalSizeMax(&size, riid, (LPUNKNOWN)pMemory, - pStubMsg->dwDestContext, pStubMsg->pvDestContext, - MSHLFLAGS_NORMAL); + CoGetMarshalSizeMax(&size, riid, (IUnknown *)pMemory, + pStubMsg->dwDestContext, pStubMsg->pvDestContext, + MSHLFLAGS_NORMAL); TRACE("size=%ld\n", size); pStubMsg->BufferLength += sizeof(DWORD) + size; } @@ -422,8 +392,7 @@ void WINAPI NdrInterfacePointerFree(PMIDL_STUB_MESSAGE pStubMsg, */ void * WINAPI NdrOleAllocate(SIZE_T Size) { - if (!LoadCOM()) return NULL; - return COM_MemAlloc(Size); + return CoTaskMemAlloc(Size); } /*********************************************************************** @@ -431,8 +400,7 @@ void * WINAPI NdrOleAllocate(SIZE_T Size) */ void WINAPI NdrOleFree(void *NodeToFree) { - if (!LoadCOM()) return; - COM_MemFree(NodeToFree); + CoTaskMemFree(NodeToFree); } /*********************************************************************** @@ -445,12 +413,10 @@ HRESULT create_proxy(REFIID iid, IUnknown *pUnkOuter, IRpcProxyBuffer **pproxy, IPSFactoryBuffer *psfac; HRESULT r; - if(!LoadCOM()) return E_FAIL; - - r = COM_GetPSClsid( iid, &clsid ); + r = CoGetPSClsid(iid, &clsid); if(FAILED(r)) return r; - r = COM_GetClassObject( &clsid, CLSCTX_INPROC_SERVER, NULL, &IID_IPSFactoryBuffer, (void**)&psfac ); + r = CoGetClassObject(&clsid, CLSCTX_INPROC_SERVER, NULL, &IID_IPSFactoryBuffer, (void **)&psfac); if(FAILED(r)) return r; r = IPSFactoryBuffer_CreateProxy(psfac, pUnkOuter, iid, pproxy, ppv); @@ -469,12 +435,10 @@ HRESULT create_stub(REFIID iid, IUnknown *pUnk, IRpcStubBuffer **ppstub) IPSFactoryBuffer *psfac; HRESULT r; - if(!LoadCOM()) return E_FAIL; - - r = COM_GetPSClsid( iid, &clsid ); + r = CoGetPSClsid(iid, &clsid); if(FAILED(r)) return r; - r = COM_GetClassObject( &clsid, CLSCTX_INPROC_SERVER, NULL, &IID_IPSFactoryBuffer, (void**)&psfac ); + r = CoGetClassObject(&clsid, CLSCTX_INPROC_SERVER, NULL, &IID_IPSFactoryBuffer, (void **)&psfac); if(FAILED(r)) return r; r = IPSFactoryBuffer_CreateStub(psfac, iid, pUnk, ppstub);
1
0
0
0
Ziqing Hui : winegstreamer: Implement Flush for WMV decoder DMO.
by Alexandre Julliard
15 Jun '23
15 Jun '23
Module: wine Branch: master Commit: 8e3f316cc9fb7bb9a384986b19b6978ed671b6aa URL:
https://gitlab.winehq.org/wine/wine/-/commit/8e3f316cc9fb7bb9a384986b19b697…
Author: Ziqing Hui <zhui(a)codeweavers.com> Date: Wed Jun 14 10:20:39 2023 +0800 winegstreamer: Implement Flush for WMV decoder DMO. --- dlls/mf/tests/transform.c | 3 --- dlls/winegstreamer/wmv_decoder.c | 13 +++++++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/dlls/mf/tests/transform.c b/dlls/mf/tests/transform.c index 1eb0fd2c719..9ba1dfc9660 100644 --- a/dlls/mf/tests/transform.c +++ b/dlls/mf/tests/transform.c @@ -6392,10 +6392,8 @@ static void test_wmv_decoder_media_object(void) hr = IMediaObject_ProcessInput(media_object, 0, &input_media_buffer->IMediaBuffer_iface, 0, 0, 0); ok(hr == S_OK, "ProcessInput returned %#lx.\n", hr); hr = IMediaObject_Flush(media_object); - todo_wine ok(hr == S_OK, "Flush returned %#lx.\n", hr); hr = IMediaObject_Flush(media_object); - todo_wine ok(hr == S_OK, "Flush returned %#lx.\n", hr); output_media_buffer->length = 0; output_data_buffer.pBuffer = &output_media_buffer->IMediaBuffer_iface; @@ -6405,7 +6403,6 @@ static void test_wmv_decoder_media_object(void) hr = IMediaObject_ProcessOutput(media_object, 0, 1, &output_data_buffer, &status); todo_wine ok(hr == S_FALSE, "ProcessOutput returned %#lx.\n", hr); - todo_wine ok(output_media_buffer->length == 0, "Unexpected length %#lx.\n", output_media_buffer->length); /* Test ProcessOutput with setting framerate. */ diff --git a/dlls/winegstreamer/wmv_decoder.c b/dlls/winegstreamer/wmv_decoder.c index 32dbbbbe686..d6c95cbd526 100644 --- a/dlls/winegstreamer/wmv_decoder.c +++ b/dlls/winegstreamer/wmv_decoder.c @@ -657,8 +657,17 @@ static HRESULT WINAPI media_object_SetInputMaxLatency(IMediaObject *iface, DWORD static HRESULT WINAPI media_object_Flush(IMediaObject *iface) { - FIXME("iface %p stub!\n", iface); - return E_NOTIMPL; + struct wmv_decoder *decoder = impl_from_IMediaObject(iface); + HRESULT hr; + + TRACE("iface %p.\n", iface); + + if (FAILED(hr = wg_transform_flush(decoder->wg_transform))) + return hr; + + wg_sample_queue_flush(decoder->wg_sample_queue, TRUE); + + return S_OK; } static HRESULT WINAPI media_object_Discontinuity(IMediaObject *iface, DWORD index)
1
0
0
0
Bernhard Kölbl : mf: Don't leak sink in session_get_renderer_node_service().
by Alexandre Julliard
15 Jun '23
15 Jun '23
Module: wine Branch: master Commit: f19a0fb6c2dd4d3980ade77aa5a86d3eb48f2672 URL:
https://gitlab.winehq.org/wine/wine/-/commit/f19a0fb6c2dd4d3980ade77aa5a86d…
Author: Bernhard Kölbl <besentv(a)gmail.com> Date: Fri Jun 2 19:10:48 2023 +0200 mf: Don't leak sink in session_get_renderer_node_service(). Signed-off-by: Bernhard Kölbl <besentv(a)gmail.com> --- dlls/mf/session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/mf/session.c b/dlls/mf/session.c index 3641cc74b83..555a71dcdf7 100644 --- a/dlls/mf/session.c +++ b/dlls/mf/session.c @@ -2397,6 +2397,7 @@ static HRESULT session_get_renderer_node_service(struct media_session *session, if (FAILED(hr = MFGetService((IUnknown *)sink, service, riid, obj))) WARN("Failed to get service from renderer node, %#lx.\n", hr); } + IMFMediaSink_Release(sink); } IMFStreamSink_Release(stream_sink); }
1
0
0
0
Bernhard Kölbl : mf: Clear queued topologies on session shutdown.
by Alexandre Julliard
15 Jun '23
15 Jun '23
Module: wine Branch: master Commit: bea37208fe2fc0ebff0d3c0fce5f98ce8f98b88b URL:
https://gitlab.winehq.org/wine/wine/-/commit/bea37208fe2fc0ebff0d3c0fce5f98…
Author: Bernhard Kölbl <besentv(a)gmail.com> Date: Tue May 30 23:25:27 2023 +0200 mf: Clear queued topologies on session shutdown. Programs might expect objects inside the queued toplogy to be freed, before they eventually call release on the session itself. This fixes reference leaks to stored objects in queued topology nodes, even when IMFMediaSession_Shutdown() was called. Signed-off-by: Bernhard Kölbl <besentv(a)gmail.com> --- dlls/mf/session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/mf/session.c b/dlls/mf/session.c index 8b29c8487fb..3641cc74b83 100644 --- a/dlls/mf/session.c +++ b/dlls/mf/session.c @@ -2225,6 +2225,7 @@ static HRESULT WINAPI mfsession_Shutdown(IMFMediaSession *iface) IMFPresentationClock_Release(session->clock); session->clock = NULL; session_clear_presentation(session); + session_clear_queued_topologies(session); session_submit_simple_command(session, SESSION_CMD_SHUTDOWN); } LeaveCriticalSection(&session->cs);
1
0
0
0
Akihiro Sagawa : commdlg: Fix dialog template parser when caption starts with a DBCS character.
by Alexandre Julliard
14 Jun '23
14 Jun '23
Module: wine Branch: master Commit: c43a4aee7785fef67acd86b4b13467b33b8066d1 URL:
https://gitlab.winehq.org/wine/wine/-/commit/c43a4aee7785fef67acd86b4b13467…
Author: Akihiro Sagawa <sagawa.aki(a)gmail.com> Date: Tue Jun 13 23:04:41 2023 +0900 commdlg: Fix dialog template parser when caption starts with a DBCS character. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55043
--- dlls/commdlg.dll16/filedlg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/commdlg.dll16/filedlg.c b/dlls/commdlg.dll16/filedlg.c index b292561b077..33feda55ca3 100644 --- a/dlls/commdlg.dll16/filedlg.c +++ b/dlls/commdlg.dll16/filedlg.c @@ -114,7 +114,7 @@ static LPDLGTEMPLATEA convert_dialog( const char *p, DWORD size ) } else copy_string( &out, &p, end - out ); - if (*p & 0x80) /* window */ + if ((BYTE)*p == 0xff) /* window */ { *out++ = 0xffff; *out++ = get_word( &p );
1
0
0
0
Alex Henrie : shell32: Fix memory leak on error path in FolderItems_Constructor (scan-build).
by Alexandre Julliard
14 Jun '23
14 Jun '23
Module: wine Branch: master Commit: 9c4d30ad70af063d806c8724c4f05de7a63e4d6a URL:
https://gitlab.winehq.org/wine/wine/-/commit/9c4d30ad70af063d806c8724c4f05d…
Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Sun Jun 11 22:47:18 2023 -0600 shell32: Fix memory leak on error path in FolderItems_Constructor (scan-build). --- dlls/shell32/shelldispatch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/shell32/shelldispatch.c b/dlls/shell32/shelldispatch.c index 01353bda82d..dd58c755c61 100644 --- a/dlls/shell32/shelldispatch.c +++ b/dlls/shell32/shelldispatch.c @@ -1682,6 +1682,7 @@ static HRESULT FolderItems_Constructor(FolderImpl *folder, FolderItems **ret) return S_OK; failed: + FolderItemsImpl_Release(&This->FolderItems3_iface); if (enumidlist) IEnumIDList_Release(enumidlist); return hr;
1
0
0
0
Nikolay Sivov : scrrun/dictionary: Compare key values in addition to their hashes.
by Alexandre Julliard
14 Jun '23
14 Jun '23
Module: wine Branch: master Commit: e6229b52735a182864dcd0a2bad7117fc0446004 URL:
https://gitlab.winehq.org/wine/wine/-/commit/e6229b52735a182864dcd0a2bad711…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Wed Jun 14 06:45:23 2023 +0200 scrrun/dictionary: Compare key values in addition to their hashes. Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> --- dlls/scrrun/dictionary.c | 91 +++++++++++++++++++++++++++++++++++------- dlls/scrrun/tests/dictionary.c | 68 ++++++++++++++++++++++++++++--- 2 files changed, 139 insertions(+), 20 deletions(-) diff --git a/dlls/scrrun/dictionary.c b/dlls/scrrun/dictionary.c index bb9c3610d1b..d69b513efc2 100644 --- a/dlls/scrrun/dictionary.c +++ b/dlls/scrrun/dictionary.c @@ -101,7 +101,28 @@ static inline struct list *get_bucket_head(struct dictionary *dict, DWORD hash) static inline BOOL is_string_key(const VARIANT *key) { - return V_VT(key) == VT_BSTR || V_VT(key) == (VT_BSTR|VT_BYREF); + return V_VT(key) == VT_BSTR; +} + +static inline BOOL is_ptr_key(const VARIANT *key) +{ + return V_VT(key) == VT_UNKNOWN || V_VT(key) == VT_DISPATCH; +} + +static inline BOOL is_numeric_key(const VARIANT *key) +{ + switch (V_VT(key)) + { + case VT_UI1: + case VT_I2: + case VT_I4: + case VT_DATE: + case VT_R4: + case VT_R8: + return TRUE; + default: + return FALSE; + } } /* Only for VT_BSTR or VT_BSTR|VT_BYREF types */ @@ -126,28 +147,59 @@ static inline int strcmp_key(const struct dictionary *dict, const VARIANT *key1, return dict->method == BinaryCompare ? wcscmp(str1, str2) : wcsicmp(str1, str2); } -static BOOL is_matching_key(const struct dictionary *dict, const struct keyitem_pair *pair, const VARIANT *key, DWORD hash) +static inline BOOL numeric_key_eq(const VARIANT *key1, const VARIANT *key2) { - if (is_string_key(key) && is_string_key(&pair->key)) { - if (hash != pair->hash) - return FALSE; + VARIANT v1, v2; - return strcmp_key(dict, key, &pair->key) == 0; - } + VariantInit(&v1); + if (FAILED(VariantChangeType(&v1, key1, 0, VT_R4))) + return FALSE; - if ((is_string_key(key) && !is_string_key(&pair->key)) || - (!is_string_key(key) && is_string_key(&pair->key))) + VariantInit(&v2); + if (FAILED(VariantChangeType(&v2, key2, 0, VT_R4))) return FALSE; - /* for numeric keys only check hash */ - return hash == pair->hash; + return V_R4(&v1) == V_R4(&v2); +} + +static BOOL is_matching_key(const struct dictionary *dict, const struct keyitem_pair *pair, const VARIANT *key, DWORD hash) +{ + if (is_string_key(key) != is_string_key(&pair->key)) + { + return FALSE; + } + else if (is_string_key(key) && is_string_key(&pair->key)) + { + return hash == pair->hash && !strcmp_key(dict, key, &pair->key); + } + else if (is_ptr_key(key) != is_ptr_key(&pair->key)) + { + return FALSE; + } + else if (is_ptr_key(key) && is_ptr_key(&pair->key)) + { + return hash == pair->hash && V_UNKNOWN(key) == V_UNKNOWN(&pair->key); + } + else if (is_numeric_key(key) != is_numeric_key(&pair->key)) + { + return FALSE; + } + else if (is_numeric_key(key) && is_numeric_key(&pair->key)) + { + return hash == pair->hash && numeric_key_eq(key, &pair->key); + } + else + { + WARN("Unexpected key type %#x.\n", V_VT(key)); + return FALSE; + } } static struct keyitem_pair *get_keyitem_pair(struct dictionary *dict, VARIANT *key) { struct keyitem_pair *pair; struct list *head, *entry; - VARIANT hash; + VARIANT hash, v; HRESULT hr; hr = IDictionary_get_HashVal(&dict->IDictionary_iface, key, &hash); @@ -158,12 +210,23 @@ static struct keyitem_pair *get_keyitem_pair(struct dictionary *dict, VARIANT *k if (!head->next || list_empty(head)) return NULL; + VariantInit(&v); + if (FAILED(VariantCopyInd(&v, key))) + return NULL; + entry = list_head(head); - do { + do + { pair = LIST_ENTRY(entry, struct keyitem_pair, bucket); - if (is_matching_key(dict, pair, key, V_I4(&hash))) return pair; + if (is_matching_key(dict, pair, &v, V_I4(&hash))) + { + VariantClear(&v); + return pair; + } } while ((entry = list_next(head, entry))); + VariantClear(&v); + return NULL; } diff --git a/dlls/scrrun/tests/dictionary.c b/dlls/scrrun/tests/dictionary.c index 16a195955ac..3232ef7321a 100644 --- a/dlls/scrrun/tests/dictionary.c +++ b/dlls/scrrun/tests/dictionary.c @@ -341,7 +341,7 @@ static void test_hash_value(void) }; static const FLOAT float_hash_tests[] = { - 0.0, -1.0, 100.0, 1.0, 255.0, 1.234 + 0.0, -1.0, 100.0, 1.0, 255.0, 1.234, 2175.0, 6259.0 }; IDictionary *dict; @@ -848,6 +848,29 @@ static void test_Keys(void) VariantClear(&keys); + hr = IDictionary_RemoveAll(dict); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + + /* Integer key type. */ + V_VT(&key) = VT_I4; + V_I4(&key) = 0; + VariantInit(&item); + hr = IDictionary_Add(dict, &key, &item); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + + VariantInit(&keys); + hr = IDictionary_Keys(dict, &keys); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + ok(V_VT(&keys) == (VT_ARRAY|VT_VARIANT), "got %d\n", V_VT(&keys)); + + VariantInit(&key); + index = 0; + hr = SafeArrayGetElement(V_ARRAY(&keys), &index, &key); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + ok(V_VT(&key) == VT_I4, "got %d\n", V_VT(&key)); + + VariantClear(&keys); + IDictionary_Release(dict); } @@ -910,7 +933,7 @@ static void test_Item(void) static void test_Add(void) { - VARIANT key, item; + VARIANT item, key1, key2, hash1, hash2; IDictionary *dict; HRESULT hr; BSTR str; @@ -920,19 +943,52 @@ static void test_Add(void) ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); str = SysAllocString(L"testW"); - V_VT(&key) = VT_I2; - V_I2(&key) = 1; + V_VT(&key1) = VT_I2; + V_I2(&key1) = 1; V_VT(&item) = VT_BSTR|VT_BYREF; V_BSTRREF(&item) = &str; - hr = IDictionary_Add(dict, &key, &item); + hr = IDictionary_Add(dict, &key1, &item); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); - hr = IDictionary_get_Item(dict, &key, &item); + hr = IDictionary_get_Item(dict, &key1, &item); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); ok(V_VT(&item) == VT_BSTR, "got %d\n", V_VT(&item)); SysFreeString(str); + /* Items with matching key hashes, float keys. */ + V_VT(&key1) = VT_R4; + V_R4(&key1) = 2175.0; + + V_VT(&key2) = VT_R4; + V_R4(&key2) = 6259.0; + + VariantInit(&hash1); + hr = IDictionary_get_HashVal(dict, &key1, &hash1); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + VariantInit(&hash2); + hr = IDictionary_get_HashVal(dict, &key1, &hash2); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + ok(V_VT(&hash1) == VT_I4, "Unexpected type %d.\n", V_VT(&hash1)); + ok(V_VT(&hash2) == VT_I4, "Unexpected type %d.\n", V_VT(&hash2)); + ok(V_I4(&hash1) == V_I4(&hash2), "Unexpected hash %#lx.\n", V_I4(&hash1)); + + V_VT(&item) = VT_BSTR; + V_BSTR(&item) = SysAllocString(L"float1"); + + hr = IDictionary_Add(dict, &key1, &item); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + hr = IDictionary_Add(dict, &key2, &item); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + + V_VT(&key1) = VT_I4; + V_I4(&key1) = 2175; + + hr = IDictionary_Add(dict, &key1, &item); + ok(hr == CTL_E_KEY_ALREADY_EXISTS, "Unexpected hr %#lx.\n", hr); + + VariantClear(&item); + IDictionary_Release(dict); }
1
0
0
0
Shaun Ren : sapi: Implement ISpMMSysAudio::EventHandle.
by Alexandre Julliard
14 Jun '23
14 Jun '23
Module: wine Branch: master Commit: 7cd77b2a7890e6fbe97f52fe852e7dfa4e403570 URL:
https://gitlab.winehq.org/wine/wine/-/commit/7cd77b2a7890e6fbe97f52fe852e7d…
Author: Shaun Ren <sren(a)codeweavers.com> Date: Wed May 31 00:09:50 2023 -0400 sapi: Implement ISpMMSysAudio::EventHandle. --- dlls/sapi/mmaudio.c | 6 ++++-- dlls/sapi/tests/mmaudio.c | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/dlls/sapi/mmaudio.c b/dlls/sapi/mmaudio.c index dadd767b9a1..d99bcb13672 100644 --- a/dlls/sapi/mmaudio.c +++ b/dlls/sapi/mmaudio.c @@ -728,9 +728,11 @@ static HRESULT WINAPI mmsysaudio_GetDefaultFormat(ISpMMSysAudio *iface, GUID *gu static HANDLE WINAPI mmsysaudio_EventHandle(ISpMMSysAudio *iface) { - FIXME("(%p): stub.\n", iface); + struct mmaudio *This = impl_from_ISpMMSysAudio(iface); - return NULL; + TRACE("(%p).\n", iface); + + return This->event; } static HRESULT WINAPI mmsysaudio_GetVolumeLevel(ISpMMSysAudio *iface, ULONG *level) diff --git a/dlls/sapi/tests/mmaudio.c b/dlls/sapi/tests/mmaudio.c index 38df432c181..7c72fb112bf 100644 --- a/dlls/sapi/tests/mmaudio.c +++ b/dlls/sapi/tests/mmaudio.c @@ -167,6 +167,8 @@ static void test_audio_out(void) UINT devid; char *buf = NULL; ULONG written; + DWORD start, end; + HANDLE event = NULL; HRESULT hr; if (waveOutGetNumDevs() == 0) { @@ -258,6 +260,20 @@ static void test_audio_out(void) ok(hr == S_OK, "got %#lx.\n", hr); ok(written == wfx->nAvgBytesPerSec * 200 / 1000, "got %lu.\n", written); + hr = ISpMMSysAudio_Write(mmaudio, buf, wfx->nAvgBytesPerSec * 200 / 1000, NULL); + ok(hr == S_OK, "got %#lx.\n", hr); + + start = GetTickCount(); + + event = ISpMMSysAudio_EventHandle(mmaudio); + ok(event != NULL, "event == NULL.\n"); + + hr = WaitForSingleObject(event, 1000); + ok(hr == WAIT_OBJECT_0, "got %#lx.\n", hr); + + end = GetTickCount(); + ok(end - start <= 500, "waited for %lu ms.\n", end - start); + hr = ISpMMSysAudio_SetState(mmaudio, SPAS_CLOSED, 0); ok(hr == S_OK, "got %#lx.\n", hr);
1
0
0
0
← Newer
1
...
34
35
36
37
38
39
40
...
64
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Results per page:
10
25
50
100
200