Current code attempts to copy a file to itself. File is not actually copied; instead, a file sharing error is received. This result is ugly and differs from native. Behavior now appears to be the same as native with changes in this MR .
--
v5: cmd: Don't attempt to copy a file to itself.
cmd: Reset return_code after successful COPY.
https://gitlab.winehq.org/wine/wine/-/merge_requests/9112
Current code attempts to copy a file to itself. File is not actually copied; instead, a file sharing error is received. This result is ugly and differs from native. Behavior now appears to be the same as native with changes in this MR .
--
v4: cmd: Don't attempt to copy a file to itself.
cmd/tests: Add tests for COPY to self.
https://gitlab.winehq.org/wine/wine/-/merge_requests/9112
win32u: change the stretch mode of dst hdc from BlackOnWhite to ColorOnColor when using StretchBlt in TransparentBlt.
In NtGdiTransparentBlt function, the StretchBlt mode of dst hdc is not set. The Default StretchBlt Mode in wine is BlackOnWhite. It is not correct to use this StretchBltMode in TransparentBlt dealing with color bitmap. According to MSDN, it should be converted to ColorOnColor.
My test code shows that, the image converted by wine generates a lot of chromatic noise.
[test_blt.c](/uploads/26101bc7bdb27400d02c8ff5bf741864/test_blt.c)
[test_blt.exe](/uploads/98ee3ab7ce0d590e1511bd8a5fb5a1bb/test_blt.exe)



--
v3: win32u: change the stretch mode of dst hdc from BlackOnWhite to ColorOnColor when using StretchBlt in TransparentBlt.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8988
selfreg.c was copied from dlls/msi/tests and load_resource was copied
from dlls/setupapi/tests/install.c.
Two of the tests are marked todo because Wine currently doesn't support
the UnregisterOCXs command, only RegisterOCXs.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56209
--
v8: advpack: Ignore lines that begin with '@' in (Un)RegisterOCXs sections.
https://gitlab.winehq.org/wine/wine/-/merge_requests/4878