Module: wine
Branch: master
Commit: 1113f42aa748d9e0a27c4663b9d8de1237f95e73
URL: https://gitlab.winehq.org/wine/wine/-/commit/1113f42aa748d9e0a27c4663b9d8de…
Author: Brendan McGrath <brendan(a)redmandi.com>
Date: Sun Jul 17 12:38:09 2022 +1000
qedit: Do not force the sample to be freed in SampleGrabber_callback().
Remove a work around that causes a crash in Unravel Two.
There is a callback in Unravel Two that appears to add a reference to a
IMediaSample, which this workaround treats as a leak and releases. However, the
application also later releases the reference itself, causing a use-after-free.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51616
Signed-off-by: Brendan McGrath <brendan(a)redmandi.com>
Signed-off-by: Zebediah Figura <zfigura(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/qedit/samplegrabber.c | 3 ---
dlls/qedit/tests/mediadet.c | 2 +-
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/dlls/qedit/samplegrabber.c b/dlls/qedit/samplegrabber.c
index 9b9780e564a..cefb2f37078 100644
--- a/dlls/qedit/samplegrabber.c
+++ b/dlls/qedit/samplegrabber.c
@@ -164,9 +164,6 @@ static void SampleGrabber_callback(struct sample_grabber *This, IMediaSample *sa
if (ref)
{
ERR("(%p) Callback referenced sample %p by %lu\n", This, sample, ref);
- /* ugly as hell but some apps are sooo buggy */
- while (ref--)
- IMediaSample_Release(sample);
}
}
break;
diff --git a/dlls/qedit/tests/mediadet.c b/dlls/qedit/tests/mediadet.c
index 6e7017f865c..05805c56eb5 100644
--- a/dlls/qedit/tests/mediadet.c
+++ b/dlls/qedit/tests/mediadet.c
@@ -1094,7 +1094,7 @@ static void test_samplegrabber(void)
ok(samplecb_called == TRUE, "SampleCB should have been called\n");
refcount = IUnknown_Release(&my_sample.sample);
- todo_wine ok(!refcount, "Got unexpected refcount %ld.\n", refcount);
+ ok(!refcount, "Got unexpected refcount %ld.\n", refcount);
IMemInputPin_Release(inpin);
IPin_Release(pin);
Module: wine
Branch: master
Commit: 3ff91992d4ebe9edab9e2384620c026eeca9c580
URL: https://gitlab.winehq.org/wine/wine/-/commit/3ff91992d4ebe9edab9e2384620c02…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Sat Jul 9 16:02:31 2022 +0200
include: Fix the spelling of some comments.
Signed-off-by: Francois Gouget <fgouget(a)free.fr>
---
include/wine/iaccessible2.idl | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/wine/iaccessible2.idl b/include/wine/iaccessible2.idl
index 0091c529f0d..34c1f169939 100644
--- a/include/wine/iaccessible2.idl
+++ b/include/wine/iaccessible2.idl
@@ -1350,7 +1350,7 @@ IA2_STATE_PINNED = 0x80000
@ref _indexes\n
@ref _enumBase\n
@ref _specialOffsets\n
- @ref _dicoveringInterfaces\n
+ @ref _discoveringInterfaces\n
@ref _changingInterfaces\n
@ref _applicationInfo\n
@ref _childIDs\n
@@ -1440,7 +1440,7 @@ IA2_STATE_PINNED = 0x80000
Since the same offset is associated with two different lines a special means is needed
to fetch text from the line where the caret is physically located.
- @section _dicoveringInterfaces Discovery of Interfaces
+ @section _discoveringInterfaces Discovery of Interfaces
In general AT (Assistive Technology) should try IAccessible2 interfaces, followed by using
the MSAA (Microsoft® Active Accessibility®) interfaces. (In cases where the an application
is known to have custom interfaces which provide information not supplied by IAccessible2
@@ -2381,7 +2381,7 @@ enum IA2TextBoundaryType {
that present textual information on the display like buttons,
text entry fields, or text portions of the document window. The interface
provides access to the text's content, attributes, and spatial location.
- However, text can not be modified with this interface. That is the task
+ However, text cannot be modified with this interface. That is the task
of the IAccessibleEditableText interface.
The text length, i.e. the number of characters in the text, is
@@ -3686,7 +3686,7 @@ interface IAccessibleHypertext : IAccessibleText
/** @brief This interface exposes information about hypertext in a document.
The %IAccessibleHypertext2 interface extends the functinality of the
- %IAccessibleHypertext inteface.
+ %IAccessibleHypertext interface.
*/
[object, uuid(CF64D89F-8287-4B44-8501-A827453A6077)]
interface IAccessibleHypertext2 : IAccessibleHypertext
@@ -4326,7 +4326,7 @@ interface IAccessibleTable : IUnknown
Please also refer to the IAccessibleTableCell interface.
If you want to support older applications you should also support the
- IAccessibleTable inteface.
+ IAccessibleTable interface.
*/
[object, uuid(6167f295-06f0-4cdd-a1fa-02e25153d869)]
interface IAccessibleTable2 : IUnknown
@@ -4821,7 +4821,7 @@ interface IAccessibleTableCell : IUnknown
[out, retval] boolean *isSelected
);
- /** @brief Returns a reference to the accessbile of the containing table.
+ /** @brief Returns a reference to the accessible of the containing table.
@param [out] table
Returns a reference to the IUnknown of the containing table.
Module: wine
Branch: master
Commit: 188e8988abf80d6264e1b255d99a664cb3a75ba1
URL: https://gitlab.winehq.org/wine/wine/-/commit/188e8988abf80d6264e1b255d99a66…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Sat Jul 9 15:57:55 2022 +0200
dbghelp: Fix the spelling of a comment.
Signed-off-by: Francois Gouget <fgouget(a)free.fr>
---
dlls/dbghelp/msc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c
index bec9dec2532..2fca1f229d1 100644
--- a/dlls/dbghelp/msc.c
+++ b/dlls/dbghelp/msc.c
@@ -803,7 +803,7 @@ static BOOL codeview_resolve_forward_type(struct codeview_type_parse* ctp, const
unsigned hash;
/* Unfortunately, hash of forward defs are computed on the whole type record, not its name
- * (unlike hash of UDT & enum implementations which is based primarly on the name... sigh)
+ * (unlike hash of UDT & enum implementations which is based primarily on the name... sigh)
* So compute the hash of the expected implementation.
*/
if (!codeview_type_extract_name(cvref, &nameref, &lenref, &decoratedref)) return FALSE;