Commit graph

159886 commits

Author SHA1 Message Date
Paul Gofman
cc3fc9a47d crypt32: Set correct exponent length in decoded BCRYPT_RSAKEY_BLOB. 2022-09-30 11:53:35 +02:00
Alexandre Julliard
46d084aca8 winegstreamer: Respect debug channels configuration for error output.
Avoids spamming stderr when debug output is disabled.
2022-09-29 19:03:08 +02:00
Alexandre Julliard
db4ea9ef22 windowscodecs: Redirect TIFF debug output to the Wine debug functions. 2022-09-29 17:59:49 +02:00
Kevin Puetz
0fb2d0f04e vbscript: Don't abort when trying to TRACE() functions with many arguments.
__wine_dbg_output accumulates the output characters in a debug_info
structure, flushing it when it encounters '\n'. If debug_info plus the
new string exceed 1024 characters, append_output will print

> wine_dbg_output: debugstr buffer overflow

and then crash the process via abort().

wine_dbgstr_variant limits the length printed for any individual argument,
but a function with multiple parameters can still plausibly exceed 1024.

Fixed by formatting the TRACE for each argument on a separate line,
as similar places (like oleaut32/typelib.c:dump_DispParms) do.
2022-09-29 17:59:36 +02:00
Gabriel Ivăncescu
e24791268d mshtml: Silence a FIXME when parameter is missing.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-09-29 17:59:24 +02:00
Gabriel Ivăncescu
b60f9b73f6 mshtml: Allocate events via event type.
The reason for the re-ordering in event types is due to querying the
IIDs, where the order matters (MouseEvent must be queried before UIEvent,
for example).

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-09-29 17:59:22 +02:00
Gabriel Ivăncescu
ecf808034c mshtml: Expand event_info to include a special entry for EVENTID_LAST.
This simplifies the rest of the code.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-09-29 17:59:19 +02:00
Gabriel Ivăncescu
951780b8f0 mshtml: Use actual Gecko event type for MessageEvent and StorageEvent.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-09-29 17:59:19 +02:00
Gabriel Ivăncescu
f60127f01a mshtml: Implement url prop for StorageEvent.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-09-29 17:59:19 +02:00
Gabriel Ivăncescu
797030483e include/mshtml: Move some forward interface declarations to match Windows SDK.
Currently, these forward declarations make widl add IHTMLDocument2's `URL`
symbol before the other, lowercased, `url` symbols to the type library
(from IHTMLMetaElement, IDOMStorageEvent, etc). Since the typelib symbols
are case insensitive, `URL` ends up stored instead of `url`, which doesn't
match native.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-09-29 17:59:17 +02:00
Gabriel Ivăncescu
8a2883d3e9 mshtml: Override document.URL's name when adding it from the mshtml typelib.
Because the typelib should contain the lowercase `url` symbol instead.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-09-29 17:59:14 +02:00
Rémi Bernon
5663146890 mf/tests: Factor IMFTransform_Get(Input|Output)StreamInfo checks together. 2022-09-29 16:04:02 +02:00
Rémi Bernon
1f5ab7cab8 winegstreamer: Stop requiring input type in H264 decoder GetInputStreamInfo. 2022-09-29 16:04:01 +02:00
Rémi Bernon
eaee9b5bef winegstreamer: Keep input / output stream info in struct h264_decoder.
And calculate the sizes when media type is successfully changed.
2022-09-29 16:04:00 +02:00
Rémi Bernon
72d18a4822 winegstreamer: Keep input / output stream info in struct wma_decoder.
And calculate the sizes when media type is successfully changed.
2022-09-29 16:03:58 +02:00
Rémi Bernon
7878903855 winegstreamer: Keep input / output stream info in struct video_processor.
And calculate the sizes when media type is successfully changed.
2022-09-29 16:03:56 +02:00
Rémi Bernon
e06284fd26 winegstreamer: Keep input / output stream info in struct resampler.
And calculate the sizes when media type is successfully changed.
2022-09-29 16:03:55 +02:00
Rémi Bernon
d98eae895b winegstreamer: Keep input / output stream info in struct color_convert.
And calculate the sizes when media type is successfully changed.
2022-09-29 16:03:52 +02:00
Rémi Bernon
076f348cd1 winegstreamer: Remove FIXME / stub! from optional transform methods. 2022-09-29 16:03:52 +02:00
Rémi Bernon
41d9806677 mf/tests: Test miscellaneous and optional IMFTransform methods. 2022-09-29 16:03:52 +02:00
Rémi Bernon
53dedf69d7 winegstreamer: Return E_NOTIMPL from color_convert GetInputStreamAttributes. 2022-09-29 16:03:52 +02:00
Rémi Bernon
899b264846 winegstreamer: Check Video Processor Get(OutputStream)Attributes pointers. 2022-09-29 16:03:52 +02:00
Rémi Bernon
c0d9139d3c winegstreamer: Implement WMA decoder GetStreamLimits / GetStreamCount. 2022-09-29 16:03:52 +02:00
Rémi Bernon
a42af15cfe winegstreamer: Implement H264 decoder GetStreamLimits / GetStreamCount. 2022-09-29 16:03:52 +02:00
Eric Pouech
50dc4ad0bf dbghelp: SymFromName* should first look in local context.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-29 16:02:56 +02:00
Alistair Leslie-Hughes
3e0deb3596 msdasql: Select statements return -1 for affected rows in ICommandText Execute. 2022-09-29 15:33:02 +02:00
Alistair Leslie-Hughes
d47201918c msdasql: Implement IColumnsInfo GetColumnInfo.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2022-09-29 15:33:00 +02:00
Georg Lehmann
98f91b30ed winevulkan: Update to VK spec version 1.3.230. 2022-09-29 12:36:05 +02:00
Rémi Bernon
2ba08dc0ad winegstreamer: Implement IWMSyncReader2_GetAllocateForStream. 2022-09-29 12:35:48 +02:00
Rémi Bernon
5aa60f778a winegstreamer: Implement IWMSyncReader2_SetAllocateForStream. 2022-09-29 12:35:48 +02:00
Rémi Bernon
57afb52dfc winegstreamer: Implement IWMSyncReader2_GetAllocateForOutput. 2022-09-29 12:35:47 +02:00
Rémi Bernon
7eb50d5e57 winegstreamer: Implement IWMSyncReader2_SetAllocateForOutput. 2022-09-29 12:35:47 +02:00
Rémi Bernon
45598d76e4 winegstreamer: Factor wm reader sample allocator error checks. 2022-09-29 12:35:47 +02:00
Rémi Bernon
42e98094a3 wmvcore/tests: Test IWMReaderAllocatorEx usage and parameters. 2022-09-29 12:35:47 +02:00
Rémi Bernon
0c51f462a7 wmvcore/tests: Test IWMSyncReader2_(Get|Set)AllocateFor(Output|Stream). 2022-09-29 12:35:45 +02:00
Francois Gouget
8bfb1ecf25 tests: Print unhandled exception messages in colour.
Note that quite often the unhandled exception messages actually come
from Windows or Wine and these cannot be colorized.
2022-09-28 21:43:44 +02:00
Paul Gofman
a58c625187 msi: Disable FS redirection for temporary file in cabinet_copy_file(). 2022-09-28 21:23:16 +02:00
Alex Henrie
1be02b2b60 winegstreamer: Fix memory leak in get_available_media_type (Coverity). 2022-09-28 21:23:11 +02:00
Jacek Caban
1f1713b07e winevulkan: Separate 32-bit and 64-bit conversion functions. 2022-09-28 15:39:14 +02:00
Jacek Caban
c39a71e3cd winevulkan: Pass VkVariable to ConversionFunction constructor. 2022-09-28 15:39:12 +02:00
Alexandre Julliard
fe7df46118 gdiplus: Get the compositing mode directly from the graphics object.
GdipGetCompositingMode() fails when the object is busy, which happens
when flushing changes in GdipReleaseDC().

Fixes a test crash on Gitlab CI.
2022-09-28 15:39:04 +02:00
Alexandre Julliard
967c39fa51 wmvcore/tests: Reduce the number of printed todos. 2022-09-28 15:39:04 +02:00
Eric Pouech
1c5eadb482 dbghelp: Improve de-duping global symbols information (PDB).
We have dups in global / file static variables definition:
- between compiland stream and global (DBI) stream
  (we need to de-dup these)
- still adding variables only present global DBI stream
- keeping in mind, we need to keep:
  + two variables of different names at same address (aliasing)
  + variables of same name at different addresses
    (MS linker generate those)

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-28 15:28:58 +02:00
Eric Pouech
908004c3a9 dbghelp: Don't load invalid records for global symbol stream.
Only load records that are listed in global hash file when handling
the global symbol stream.
Do the same thing for the public symbols.

When using MS linker in incremental mode:
- old variable definitions are kept in the (DBI) global symbol stream
  along side the new definition
- but only the latest (valid) definition is referenced from the hash
  table

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-28 15:28:56 +02:00
Eric Pouech
108cd66933 dbghelp: Fix variable storage information (Dwarf).
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-28 15:28:56 +02:00
Eric Pouech
0e345d6c43 dbghelp: Fix container for global variables (Dwarf).
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-28 15:28:56 +02:00
Eric Pouech
a523361b10 dbghelp: Add support for static variables at function scope (PDB).
These should be stored in function's children vector.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-28 15:28:53 +02:00
Zebediah Figura
e654b631f2 widl: Generate "static inline" instead of "static FORCEINLINE" for COM inline wrappers.
mingw-w64 defines __forceinline (and therefore FORCEINLINE) as
"extern __inline__ __attribute__((__always_inline__,__gnu_inline__)). This means
that COM inline wrappers specify multiple storage classes and hence cannot be
compiled.

Wine defines FORCEINLINE simply as "inline" (and uses "static" everywhere), so
this is a non-issue for Wine. However, since Wine and mingw-w64 share the source
code of widl and of most IDL headers, this patch changes the definition for both
projects.

There's no reason to force inlining here, especially since the wrappers need to
be manually enabled, and we don't need to match PSDK semantics where these
wrappers don't even exist.

In practice, use "__inline__" instead of "inline" for GNU C targets, to preserve
compatibility with C89 in mingw-w64 headers.
2022-09-28 15:27:51 +02:00
Paul Gofman
cb87c14fec winex11.drv: Do not skip taskbar and pager for app window. 2022-09-28 15:14:25 +02:00
Eric Pouech
a014f19bdd winedump: Dump PDB public symbols' stream.
Add relevant structures to include/mscvpdb.h.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-27 18:29:34 +02:00