Commit graph

1500 commits

Author SHA1 Message Date
Joachim Henze 3fa352ba5d [0.4.12][COMCTL32] Fix regression CORE-16280
A very old regression. The visible symptom for us was, that the Apply button in our
desk.cpl was always visible, even in case no user input was done in the dlg yet.

I am still a bit afraid, because this patch is quite new and
it might unhide issues otherwhere, but since it fixes a regression,
I decided to take that risk.

This patch is a backport of 0.4.13-dev-908-g
344d559935
2019-08-18 15:02:24 +02:00
Joachim Henze 431cf0edc9 [0.4.12][COMCTL32] Fix regressions CORE-16316 & CORE-16275
Multiple invocations of ImageList_Destroy() could lead to double-free and
would crash applications since 0.4.12-RC-27-g
89f3036245

Many Thanks to patches author Mark Jansen.

Master is also affected by this bug but did not receive the fix yet.
2019-08-18 14:12:48 +02:00
Joachim Henze eb1a43d3f0 [0.4.12][SHELL32] ShellExecute again, fix regression CORE-16299
We unintentionally introduced CORE-16299 by
0.4.12-RC-47-g
625a5a0780

Thx to author Doug Lyons for this patch!

Master is also affected, but will be serviced later.
2019-08-11 16:44:02 +02:00
Joachim Henze 625a5a0780 [0.4.12][SHELL32] Improve ShellExecute
This fixes regression CORE-6412 and also fixes CORE-12927
by bringing us a bit closer to Wine implementation.

Thanks to patches author Doug Lyons.
The removed code looks like historic workaround code.

Automated tests do improve as well
VBox https://reactos.org/testman/compare.php?ids=68662,68696
KVM https://reactos.org/testman/compare.php?ids=68663,68697

cherry-pick of 0.4.13-dev-790-g
0f16d44b66
2019-08-06 20:39:35 +02:00
Joachim Henze 317ca41e75 [0.4.12][INPUT][INTL][SYSSETUP] Limit Combobox height CORE-16252
v6 comboboxes default to displaying up to 30entries and
give a bad user experience in 2nd stage
where we usually have low vertical screen resolution.
Therefore limit the height of the expanded boxes to
bring us close to how they were drawn before 0.4.12-dev-882-g
e3e173ffaa

Adding CBS_NOINTEGRALHEIGHT gives similar result for both:
comctl32 v5 and v6 comboboxes.

Similar commit went into 0.4.13-dev-740-g
8b67edd8fa
2019-07-30 23:21:54 +02:00
Joachim Henze 27da885632 [0.4.12][COMCTL32] Fix regression CORE-14619 "Checkbox buttons theming"
It regressed by Wine sync in 0.4.9-dev-719-g
b3fb8555bf

The fix has not been committed to master yet,
it is a partial sync to Wine Staging 3.3

Thanks to the patches author Andreas Maier <staubim@quantentunnel.de>
JIRA username 'andy-123'

two testbot runs:
https://reactos.org/testman/compare.php?ids=68367,68369
https://reactos.org/testman/compare.php?ids=68367,68371
2019-06-22 00:09:47 +02:00
Mark Jansen e9fb7dcee2 [0.4.12][INPUT] Don't race the system to free an imagelist
Fixes CORE-16121
"reproducible heap assertion at 2nd setup stage when
adding additional keyboard layouts"

https://reactos.org/testman/compare.php?ids=68231,68234

cherry-picked from 0.4.13-dev-459-g
f3d1d38041
2019-06-18 01:39:38 +02:00
Joachim Henze c49b6a4bd5 [0.4.12][LPK] Fix for regression CORE-16115. (#1654)
Fixes "STDU Viewer 1.6.375 crashing"
A regression of 0.4.12-dev-933-g
7143e411c4

Proposed changes of author Baruch Rutman aka "peterooch" peterooch@gmail.com:

- Use the total extent (width) and font metrics (height) as values
  to put in the lpSize variable instead of calling ScriptString_pSize()
  in the LpkGetTextExtentExPoint() function.

- Use GetTextExtentExPointWPri in more cases as another effort to get the data.

Many thanks for that prompt fix!
Master got fixed similar in 0.4.13-dev-445-g
22064d7787
2019-06-15 17:50:36 +02:00
Joachim Henze 152ee20578 [0.4.12][MSI] Fix regression CORE-14646
Pressing Next-button in setup of "1C Enterprise (training version) 8.3.10.2252"
did not have any effect anymore. Setup could not be completed anymore.

The regession was introduced to ros by 0.4.8-dev-739-g
f8b992f2d3
and was confirmed being a Wine-regression in
https://bugs.winehq.org/show_bug.cgi?id=45445

Thanks to Fabian Maurer for communicating to Wine and thanks to
Thomas Faber for regenerating cond.tab.c from the fixed source file cond.y
using BISON.

I also committed the same fix to master during 0.4.13-dev.
2019-06-14 23:02:55 +02:00
Joachim Henze 9513c9bf12 [0.4.12][COMCTL32] Workaround v6 button redraw regressions CORE-13278 & CORE-16093
Most likely not correct, as it breaks comctl32:buttonv6 tests
https://reactos.org/testman/compare.php?ids=68146,68147

But greatly improves perceived flickering when hovering
with the mouse about buttons in unthemed mode.
We still fear that this workaround could break buttons that
intend to change their appearance when being hovered.

We workaround only the RC, but will leave master affected for now.
2019-06-12 20:12:21 +02:00
Joachim Henze 4c1b17e54f [0.4.12][COMCTL32] Addendum to last commit
CORE-14433, CORE-15892, CORE-15118, CORE-15529
Similar to commit5 from PR#1211
2019-06-09 22:41:25 +02:00
Joachim Henze 89f3036245 [0.4.12][COMCTL32] Fix multiple regressions v5/v6 imagelist when SxS
The problems began when we committed the two SxS commits
0.4.8-dev-502-g
7000fe2340
and
0.4.8-dev-503-g
f318a25e10
Since then incompatible comctl32 v5/v6 imagelist were in mixed usage.

The new comctl32 patch fixes the following regressions:
- CORE-14433 MSVCPP 6 installer browseForFolder-dlg lacked icons
- CORE-14433 MS Word Viewer 2003 open-dlg lacked icons
- CORE-15118 OCR CuneiForm 12 lacked icons in the menubar
- CORE-15892 DosBOX 0.74.2 NSIS-installer lacked checkboxes
- CORE-15529 Bulk Rename utility lacked icons

Fixing comctl32 directly was applied to 0.4.12RC for the first time.
Older releases always used a partial SxS revert instead.
Master is still unpatched to date.

The fix is a combination of the first 4 commits of PR#1211 and
the attached is_valid.diff. Thanks to everyone involved:
Giannis Adamopoulos, Mark Jansen and Andreas Maier!
2019-06-09 11:54:37 +02:00
Joachim Henze 63ed1f8601 [0.4.12][COMCTL32] Fix regression with disabled menubar buttons in IDA5free CORE-14209
The patch was not committed to master yet. Currently is still under review in PR-1599.
The patch also improves the rendering of disabled menubar buttons for SumatraPDF CORE-10601.

Even after the patch we are not perfect at deciding when to draw masked
and when to draw desaturated in 32bpp, but it definitely improves end users experience.

Many Thanks to the patches author
Andreas Maier <staubim@quantentunnel.de>
JIRA-nick: andy-123
2019-06-02 13:15:37 +02:00
Joachim Henze ef5c312d7b [0.4.12][MSHTML] Fake Success in HTMLDocument_put_bgColor()
This avoids at startup of Instant Messenger "QIP 2005 8095"
a message-box with "OLE Error 8004001".
The issue is a subtask of CORE-11537
Many Thanks to the patches author
Andreas Maier <staubim@quantentunnel.de>
JIRA-nick: andy-123

Note you still need to install Gecko 2.40 and Samba 1.3 from rapps for QIP.

cherry picked from commit 0.4.13-dev-327-g
bc3eed68ca
2019-06-01 22:58:31 +02:00
Joachim Henze 9ebb42a4c0 [0.4.12] [JSCRIPT] Fix regression CORE-13810 "Vypress Chat 2.1.9 MSI setup fatal error"
The regression was unhidden by MSI-winesync 1.5.10 almost 7years ago:
8939969e21

Finally we can fix it by adding MS enumerator extension to Jscript.
Many thanks to the patches author
Andreas Maier <staubim@quantentunnel.de>
JIRA-nick: andy-123

The patch is WIP and was not committed to master yet.

https://reactos.org/testman/compare.php?ids=67482,67485
2019-05-17 00:47:16 +02:00
Joachim Henze fbe1fbe32b [0.4.12] [NTDLL/LDR] Revert the 0.4.12-workaround for comctl32 imagelist
This reverts 0.4.12-RC-2-g
f57e9ed926
and therefore brings the SxS state back to master. It allows many SxS-dependent apps to run again that broke by the new 0.4.12-workaround.
e.g: Miranda 0.10.48

Unfortunately this will expose many issues for the first time in the 0.4.12release (same way like in master),
that I could properly hide in all past releases by a different workaround (that we can not longer use due to heavy 0.4.12-dev SxS works)

This commit reintroduces:
- CORE-14433 MSVCPP 6 installer open-dlg, MS Word Viewer 2003 open-dlg lacks icons
- CORE-15118 OCR CuneiForm 12 lacks icons in the menubar
- CORE-15892 DosBOX 0.74.2 NSIS-installer lacks checkboxes

We think that all those issues are caused by incompatible comctl32 v5/v6 imagelists actually.
If time will allow it, I might experiment with some macros later to hide the comctl32-issue leaving SxS intact.
2019-05-09 20:14:20 +02:00
jimtabor d94028f042 [0.4.12] [DDraw] Fix DxDiag tests. Fixes regression CORE-15905
After the DC work is done while before releasing the DC flush the GDI batch.
See CORE-15905. Someone may need to notify wine about this change.

cherry picked from commit 0.4.13-dev-7-g
84d518b190
2019-04-13 14:49:32 +02:00
Joachim Henze 703df88aec [0.4.12] Revert "[MSAFD] Implement socket options SO_SNDBUF and SO_RCVBUF"
To avoid CORE-15804 MSTSC fails to connect with error "ERROR: Bad packet header"

This reverts commit 0.4.12-dev-752-g
6bc61f63f1.
2019-04-11 01:19:29 +02:00
Joachim Henze 8449527b88 [0.4.12] [COMCTL32] Appease regression CORE-14671 & CORE-14701
Fixes the icons on some buttons being flipped vertically.
Known affected apps: Lazarus IDE, Double Commander, Peazip.

Beside that it also fixes transparency regressions in DVDStyler 3.0.4 (CORE-14701).

Thanks to patches author Doug Lyons.

The patch has not been committed to master yet and has the known side-effect
of introducing flipped icons in the options-listview of Double-Commander
that are drawn correctly without the hackfix.

like in last release
(cherry picked from commit b906163dc1)
2019-04-10 15:44:33 +02:00
Joachim Henze be54d69f5c [0.4.12] Avoid regression CORE-14955 "Ddraw fullscreen crashes"
This brings us back to before commit 0.4.10-dev-55-g
7af3969e9f

and therefore downgrades D3D8,D3D9,DDRAW,WINED3D to 3.3 for this rls.

This is same versions as we had in 0.4.10rls (I used same revert then)

Purpose of this revert is to fix crashes when Ddraw apps switch
into fullscreen with VBEMP and inbuilt Mesa.
I tested, before:
 DxDiag crashed when switching to fullscreen,
 Diablo II crashed immediately,
 Monster-Truck-Madness 2 demo crashed after main menu

Afterwards all of these apps do run.
DXTN does still work after that, even with VBEMP and inbuilt Mesa.

This will be the interim fix, which I will keep for rls at least
until someone manages to fix CORE-14955 properly in master with current Wine.

analog to 0.4.10-RC-17-g
bb4c55d650
2019-04-10 13:25:10 +02:00
Joachim Henze f57e9ed926 [0.4.12] [NTDLL/LDR] Avoid multiple regressions
By reverting just commit 0.4.8-dev-502-g
7000fe2340.

It fixes:
- CORE-14433 MSVCPP 6 installer open-dlg, MS Word Viewer 2003 open-dlg lacks icons
- CORE-15118 OCR CuneiForm 12 lacks icons in the menubar
- CORE-15892 DosBOX 0.74.2 NSIS-installer lacks checkboxes

We think that all those issues are caused by incompatible comctl32 v5/v6
imagelists actually.

Please notice, that in the past ros-releases, I used to revert additionally
0.4.8-dev-503-g
f318a25e10
but since a lot of LDR work was done during 0.4.12-dev I was forced to
minimize the needed revert this time in order to not threaten
recent LDR-work done by Mark & Thomas
2019-04-09 22:09:45 +02:00
Katayama Hirofumi MZ c65156002c
[SHELL32] Fix SHFileOperation Move operation (#1487)
Reduce failures of Move operation of shell32!SHFileOperation function. CORE-13450
2019-04-08 21:59:33 +09:00
Stanislav Motylkov d2a2632fd9 [SYSSETUP] Update Russian translation
Addendum to 5d4d48a, 21b7648, and ea799b7.
2019-04-07 23:51:34 +02:00
Foxlet ea799b74f1 [SYSSETUP] Add Mizu to syssetup. 2019-04-07 22:47:20 +02:00
Hervé Poussineau 11d11cf6d0 [CMAKE] Temporarly disable pch in some modules to fix travis-ci
Problem appeared after 09c4d0a74b
2019-04-07 21:00:49 +02:00
Hervé Poussineau 10ecbaddd0 [ADVAPI32] Send correct type to ElfrChangeNotify()
This fixes the following compiler error:
../dll/win32/advapi32/service/eventlog.c:658:59: error: passing argument 3 of 'ElfrChangeNotify' makes integer from pointer without a cast [-Werror=int-conversion]
dll/win32/advapi32/eventlogrpc_c.h:391:20: note: expected 'ULONG {aka long unsigned int}' but argument is of type 'HANDLE {aka void *}'
2019-04-07 18:32:29 +02:00
Hervé Poussineau cb031ac957 [ACLAYERS] Use correct prototypes
FARPROC is defined in windef.h as "typedef INT_PTR (WINAPI *FARPROC)();"
2019-04-07 18:32:29 +02:00
Hervé Poussineau 09c4d0a74b [CMAKE] Prevent out-of-bound accesses in parser/lexer files
which try to remove path prefix from them.
2019-04-07 18:32:29 +02:00
Joachim Henze b71429059a [COMCTL32] Improve status bar margin for unthemed and themed CORE-15834
Improve further what was recently committed in
0.4.12-dev-361-g
da9accfba6
2019-04-07 15:15:25 +02:00
Katayama Hirofumi MZ f762aa3dd2 [SHELL32] Fix explorer file item label background CORE-15937 2019-04-07 21:38:00 +09:00
Katayama Hirofumi MZ 15537c3bbe
[KERNEL32] Support Japanese calendar (#1482)
Implement the Japanese calendar in kernel32. Locale info and date formatting. CORE-15920
2019-04-07 20:20:23 +09:00
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
There is no need to compile our DLLs as shared libraries since we are
managing symbols exports and imports through spec files.

On my system, this reduces the configure-time by a factor of two.
2019-04-06 17:43:38 +02:00
Katayama Hirofumi MZ c7bebe40cb
[KERNEL32] Improve MultiByteToWideChar (#1477)
Reduce MultiByteToWideChar failures. CORE-13349
2019-04-06 20:11:07 +09:00
Katayama Hirofumi MZ 6150baf414 [SHELL32] pl-PL.rc escape sequence fix 2019-04-06 11:41:08 +09:00
Adam Słaboń 21b7648f15 [SYSSETUP] Add Lunar theme option to 2nd setup stage
This adds Lunar theme option to the 2nd setup stage theme chooser page.
2019-04-06 01:10:52 +02:00
Mark Jansen 5d4d48a850
[SYSSETUP] Add a theme chooser that can handle multiple styles 2019-04-05 21:56:31 +02:00
Adam Słaboń 7047aa80ef [TRANSLATION] Polish translation update
Polish translation update for calc, fltmc, magnify, notepad, osk, sndvol32, usetup, fdebug, appwiz, mmsys, sysdm, acppage, ziplfdr, browseui, cryptui, jscript, shell32, themeui and inf. Added translation for cyrptext, vcdcontroltool, and (not yet complete) getuname.
2019-04-05 10:34:10 +02:00
Katayama Hirofumi MZ f55ded91a4
[SHIMGVW] Fix cursor (#1471)
Fix the cursor of shimgvw.dll. CORE-15219
2019-04-05 16:52:11 +09:00
Katayama Hirofumi MZ d04b4e65d6
[SHELL32] Implement Explorer background image (Retrial of #801) (#1463)
IconArea_Image, IconArea_Text and IconArea_TextBackground values in desktop.ini in a folder will be supported. It denies network paths. CORE-5516
2019-04-05 07:59:35 +09:00
Mark Jansen d71712e909
[SYSSETUP] Ask for common controls v6 when using v6 features 2019-04-03 19:44:27 +02:00
Mark Jansen bae083355d
[SYSSETUP] Add a missing break 2019-04-03 19:44:16 +02:00
Maxim Smirnov 39c0fd5722 [SHELL32] Fix version info in the file dialog 2019-04-03 00:51:24 +02:00
Julien Schueller 23d0aead53 [KERNEL32] Fix typo in kernel32.spec (#1453) 2019-04-02 15:48:41 +02:00
Timo Kreuzer be97da34ac [NETAPI32] Fix NetUserEnum to work on x64
The previous implementation used the resume_handle parameter to return a pointer to the active enumeration context, but resume_handle is a DWORD. To support 64 bit pointers, the enumeration context is inserted into a global linked list and given a unique 32 bit value as identifier for later lookup.
The way the function is implemented, leaking a data structure while the MSDN description does not indicate that, seems a little questionable in general, but that is something that I leave to the original author to investigate.
2019-04-02 01:45:51 +02:00
Timo Kreuzer 61e35141e8 [SETUPAPI] Use ClassInstallReserved field instead of Reserved to store a pointer.
The Reserved field is ULONG and we need ULONG_PTR. ClassInstallReserved was unused so far. I have no idea whether this is correct, but it cannot be more incorrect than what we had.
2019-04-01 22:20:39 +02:00
Hervé Poussineau 6cc607bac2 [SETUPAPI] SetupDiGetDeviceInfoListClass: fix buffer overflow (and return correct results) 2019-04-01 11:38:32 +02:00
Hervé Poussineau faa938e9dc [USERENV] Initialize variable before using it 2019-04-01 11:38:32 +02:00
Hervé Poussineau 6a1c78b37b [GLU32] Prevent a warning when comparing 'this' against 0 2019-04-01 11:38:32 +02:00
Hervé Poussineau 6668178cff [PSDK] Remove throw specifiers, deprecated in C++11 2019-04-01 11:38:32 +02:00
Thomas Faber ca86ee9c03
[MBEDTLS] Update to version 2.7.10. CORE-15895 2019-03-30 14:57:40 +01:00