Compare commits

...

8 commits

Author SHA1 Message Date
wuggy
b725d2f0e0 shim pt 2 or whatever 2026-07-06 12:59:25 +01:00
wuggy
60bc7b282e Change to ulwDecodePointer 2026-07-06 12:53:50 +01:00
wuggy
bf743d6699 Compatibility shim for DecodePointer 2026-07-06 12:50:16 +01:00
wuggy
610e87ff3d Just make module_description the browser name 2026-07-06 12:45:36 +01:00
wuggy
2cd3bf46b6 update module.ver 2026-07-06 12:45:21 +01:00
wuggy
d7083b26b9 remove mention of symforaddr for mingw 2026-07-06 12:39:39 +01:00
wuggy
d563d4cfa5 Fix runtime error pt2 2026-07-06 12:08:46 +01:00
wuggy
99a1d556de Fix runtime error in libcubeb 2026-07-06 12:03:38 +01:00
5 changed files with 29 additions and 5 deletions

View file

@ -1,8 +1,8 @@
WIN32_MODULE_COMPANYNAME=@MOZ_APP_VENDOR@ WIN32_MODULE_COMPANYNAME=@MOZ_APP_VENDOR@
WIN32_MODULE_COPYRIGHT=©Eclipse Community, Basilisk and Mozilla Developers; available under the MPL 2 license. WIN32_MODULE_COPYRIGHT=<EFBFBD>Dactyloidae Project, Eclipse Community, Basilisk and Mozilla Developers; available under the MPL 2 license.
WIN32_MODULE_PRODUCTVERSION=@MOZ_APP_WINVERSION@ WIN32_MODULE_PRODUCTVERSION=@MOZ_APP_WINVERSION@
WIN32_MODULE_PRODUCTVERSION_STRING=@MOZ_APP_VERSION@ WIN32_MODULE_PRODUCTVERSION_STRING=@MOZ_APP_VERSION@
WIN32_MODULE_TRADEMARKS=The Hydra logo and project names are trademarks of Eclipse Community. WIN32_MODULE_TRADEMARKS=The Dactyloidae logo and project names are trademarks of Eclipse Community and Dactyloidae Project.
WIN32_MODULE_DESCRIPTION=@MOZ_APP_DISPLAYNAME@ web browser WIN32_MODULE_DESCRIPTION=@MOZ_APP_DISPLAYNAME@
WIN32_MODULE_PRODUCTNAME=@MOZ_APP_DISPLAYNAME@ WIN32_MODULE_PRODUCTNAME=@MOZ_APP_DISPLAYNAME@
WIN32_MODULE_NAME=@MOZ_APP_DISPLAYNAME@ WIN32_MODULE_NAME=@MOZ_APP_DISPLAYNAME@

View file

@ -938,6 +938,12 @@ BOOL WINAPI revert_mm_thread_characteristics_noop(HANDLE mmcss_handle)
HRESULT register_notification_client(cubeb_stream * stm) HRESULT register_notification_client(cubeb_stream * stm)
{ {
#if defined(__MINGW32__)
// MinGW builds have shown crashes in MMDevApi callback dispatch paths.
// Skip notification registration and rely on normal stream operation.
(void)stm;
return S_OK;
#else
HRESULT hr = CoCreateInstance(__uuidof(MMDeviceEnumerator), HRESULT hr = CoCreateInstance(__uuidof(MMDeviceEnumerator),
NULL, CLSCTX_INPROC_SERVER, NULL, CLSCTX_INPROC_SERVER,
IID_PPV_ARGS(&stm->device_enumerator)); IID_PPV_ARGS(&stm->device_enumerator));
@ -958,10 +964,15 @@ HRESULT register_notification_client(cubeb_stream * stm)
} }
return hr; return hr;
#endif
} }
HRESULT unregister_notification_client(cubeb_stream * stm) HRESULT unregister_notification_client(cubeb_stream * stm)
{ {
#if defined(__MINGW32__)
(void)stm;
return S_OK;
#else
XASSERT(stm); XASSERT(stm);
HRESULT hr; HRESULT hr;
@ -981,6 +992,7 @@ HRESULT unregister_notification_client(cubeb_stream * stm)
SafeRelease(stm->device_enumerator); SafeRelease(stm->device_enumerator);
return S_OK; return S_OK;
#endif
} }
HRESULT get_endpoint(IMMDevice ** device, LPCWSTR devid) HRESULT get_endpoint(IMMDevice ** device, LPCWSTR devid)

View file

@ -67,7 +67,7 @@ if CONFIG['OS_TARGET'] == 'WINNT':
'cubeb_winmm.c', 'cubeb_winmm.c',
] ]
DEFINES['USE_WINMM'] = True DEFINES['USE_WINMM'] = True
if CONFIG['MOZ_SAMPLE_TYPE_FLOAT32']: if CONFIG['MOZ_SAMPLE_TYPE_FLOAT32'] and not CONFIG['GNU_CC']:
DEFINES['USE_WASAPI'] = True DEFINES['USE_WASAPI'] = True
SOURCES += [ SOURCES += [
'cubeb_wasapi.cpp', 'cubeb_wasapi.cpp',

View file

@ -851,7 +851,12 @@ MozDescribeCodeAddress(void* aPC, MozCodeAddressDetails* aDetails)
pSymbol->MaxNameLen = MAX_SYM_NAME; pSymbol->MaxNameLen = MAX_SYM_NAME;
DWORD64 displacement; DWORD64 displacement;
#ifdef __MINGW32__
// SymFromAddr is not available in MinGW dbghelp.dll
ok = FALSE;
#else
ok = SymFromAddr(myProcess, addr, &displacement, pSymbol); ok = SymFromAddr(myProcess, addr, &displacement, pSymbol);
#endif
if (ok) { if (ok) {
strncpy(aDetails->function, pSymbol->Name, strncpy(aDetails->function, pSymbol->Name,

View file

@ -8,7 +8,14 @@
#include "secerr.h" #include "secerr.h"
#include "secasn1.h" /* for SEC_ASN1GetSubtemplate */ #include "secasn1.h" /* for SEC_ASN1GetSubtemplate */
#include "secitem.h"
#if defined(_WIN32) && !defined(_WIN64)
static __inline void* Win2000_EncodePointer(void* p) { return p; }
static __inline void* Win2000_DecodePointer(void* p) { return p; }
#define EncodePointer(p) Win2000_EncodePointer(p)
#define DecodePointer(p) Win2000_DecodePointer(p)
#endif
/* /*
* simple definite-length ASN.1 decoder * simple definite-length ASN.1 decoder