Commit graph

71074 commits

Author SHA1 Message Date
Joachim Henze
11bf8fa047 [0.4.8] revert [NTDLL/LDR] Overhaul sxs work
This reverts commit 0.4.8-dev-502-g
7000fe2340.

This reverts commit 0.4.8-dev-503-g
f318a25e10.

The two changes were done once to work towards better
shim-supporting APIs of newer Windows versions on demand
in the future. Luckily we do not depend on them yet.

Giannis already fixed most regressions of the 2 commits
before branching 0.4.8RC (e.g. 2nd stage theme-selector).

Unfortunately we still have issues atm with the existing mixture
of Wine comctl32 v5 vs v6.
The image-lists of both are not compatible as Giannis told us.

We revert both commits for this release to fix CORE-14433
(missing icons due to incompatible image-lists). We can not
simply add a manifest here, because 3rd party apps are affected.

I double-checked, all of those (formerly affected) apps
are working fine and show the icons after the revert:
2nd-stage-theme-selection, MS Excel Viewer 2007 open-dlg,
MSVCPP 6 installer open-dlg, FaxViewer save-dlg,
MS Word Viewer 2003 open-dlg

This revert also obsoletes works/fixes like
2f11904000.
2018-03-14 19:24:33 +01:00
Thomas Faber
795c7f70cc [0.4.8] cherry-pick [WINSRV] Don't try to remove messages from the queue without dispatching them. CORE-13734
To prevent the visible symptom
'sporadic NTOSKRNL work queue deadlock when exiting command.com'

This partially reverts r58615 / 01729482ae.

(cherry picked from commit 3159de5573)
cherry-picked by Joachim Henze
2018-03-07 19:25:23 +01:00
Thomas Faber
4a16f8a721 [0.4.8] cherry-pick [NTOS:EX] Worker threads must not exit with a critical region held. CORE-13734
To prevent the visible symptom
'sporadic NTOSKRNL work queue deadlock when exiting command.com'

(cherry picked from commit 2b8f4f6e24)
cherry-picked by Joachim Henze
2018-03-07 19:23:41 +01:00
Joachim Henze
dba2f743c5 [0.4.8] [SETUPAPI] Apply yet uncommitted fix for CORE-12616 PR-408
This commit was *not* committed to master yet.
I'll leave the ticket unresolved until it'll be.

This fixes a regression introduced in SVN r73442:
Our setup created undesired temporary files and left them
in the temp folder. Also we saw a slight one-time-increase
in memory consumption.

This patch was the work of Carlo Bramini
He proposed the fix on 2016-12-30 already.

There are ongoing discussions about an alternative approach
to the initial problem that SVN r73442 tried to address.
Serge Gautherie can and shall be evaluate that alternative
later during 0.4.9dev.

For now many thanks to Carlo Bramini for this fix.
2018-03-06 21:20:31 +01:00
Joachim Henze
8dc16094ba [0.4.8] [WIN32SS] D3DKMT commit fix of zefklop for CORE-13714
This commit was *not* committed to master yet.
I'll leave the ticket unresolved until it'll be.

We had the palette for some games regressed starting with r75061
when using VBEMP (and our inbuilt Mesa, not the rapps Mesa).
This wasn't noticed early because the same commit led to
many games crashing as well. After we recovered from the crashes
later, we were confronted with a regressed palette state.
E.g. in Diablo II, Anno 1602, MS Age of Empires.

With that commit the palette now looks like in r75060 again.
Palette in Rapps Mesa is now equal again to palette inbuilt Mesa.
The palette is still not perfect -
(CORE-10738 still needs to be addressed later).

Many thanks to zefklop!
2018-03-06 21:06:07 +01:00
Pierre Schweitzer
f4b2e5310b [0.4.8] cherry-pick [SHELL32] Fix a directory handle leak when browsing folders
A bit of history: in r71528, I tried to fix our explorer often
crashing while browsing directories. It was linked to the fact
that a notification result may arrive while the notification
structure had already been deleted.

The fix for this was actually broken and was leading to a double
leak: the notification structure was leaked. But also the handle
to the directory that had been browsed!
This means that the directory couldn't be modified anymore as
a leaked handle to it was still open.

Actually, when notifications are cancel, the kernel properly
calls the notification routine, but with a specific error code.
So the correct fix is to stop handling that notification when
we receive this error code. This is the correct fix with no leaks.

This commit is a complete r71528 revert with the appropriate fix.

CORE-10941
CORE-12843

(cherry picked from commit da8a41b97b)
cherry-picked by Joachim Henze with many thanks to Pierre.
2018-03-06 20:51:08 +01:00
Katayama Hirofumi MZ
5231a7f996 [0.4.8] cherry-pick [SHELL32] Fix item order in Folder Options (#415)
This fixes regression CORE-14393 for russian ros setups.

(cherry picked from commit 1f4c636453)
cherry-picked by Joachim Henze
2018-03-06 00:18:54 +01:00
Giannis Adamopoulos
64dcc95c50 [0.4.8] cherry-pick [SHIMGVW] -Add the 123 manifest to load the v6 comctl32. CORE-14415
This shows that we may have problems in the future with applications using just comctl32 v5

(cherry picked from commit 2f11904000)
cherry-picked by Joachim Henze
2018-03-01 18:35:16 +01:00
Pierre Schweitzer
6345fd1342 [0.4.8] cherry-pick [NTOKSRNL] Don't blindly schedule read-ahead on CcCopyRead() call.
This avoids locking Cc for too long by trying to read-ahead data which
is already in cache.
We now will only schedule a read ahead if next read should bring us
to a new VACB (perhaps not in cache).

This notably fixes Inkscape setup which was slown down by read-ahead
due to continous 1 byte reads.

Thanks to Thomas for his help on this issue.

CORE-14395

(cherry picked from commit c4f58bbfd8)
cherry-picked by Joachim Henze
2018-03-01 18:34:29 +01:00
Thomas Faber
af545fe3f3 [0.4.8] cherry-pick [DHCPCSVC] Fix a memory leak in bind_lease introduced in r14645 (!). CORE-14353
(cherry picked from commit 87d3fdf99e)
cherry-picked by Joachim Henze
2018-02-23 00:40:44 +01:00
Thomas Faber
0b826120b5 [0.4.8] cherry-pick [IPHLPAPI] Fix memory leak in getNumRoutes. CORE-14353
Thx for that gem Thomas. I let it idle for an hour. It solves the leak.
cherry-picked by Joachim Henze
2018-02-21 20:40:45 +01:00
Joachim Henze
10b06f1e4b {0.4.8] [WIN32SS] Revert the risky rls-hack 0.4.8-RC-8-gbfcab8b
This reverts bfcab8b0b4
I was sceptical regarding that patch already when I committed it.
I revert it now because it would introduce more regressions like
CORE-14354. The risk is not worth it.
Ofc this will bring back BSOD CORE-13907 & CORE-11678.
2018-02-20 03:43:43 +01:00
Mark Jansen
95884e63fd {0.4.8] cherry-pick [COMCTL32] Export GetWindowSubclass by name.
CORE-14346

(cherry picked from commit b02d78586c)
cherry-picked by Joachim Henze
2018-02-19 14:55:25 +01:00
Pierre Schweitzer
48c6d74279 {0.4.8] cherry-pick [NTOSKRNL] Fix mismatching spinlock release in CcPerformReadAhead()
(cherry picked from commit dd392b9d6c)
cherry-picked by Joachim Henze (as recommended by Pierre)
2018-02-19 14:54:56 +01:00
Pierre Schweitzer
e1d6372651 [0.4.8] cherry-pick [NTOSKRNL] Don't make CcScheduleReadAhead() too noisy
cherry-picked by Joachim Henze
2018-02-19 14:54:12 +01:00
Mark Jansen
7828afe83c [0.4.8] cherry-pick [RAPPS] Various fixes
- Ask the user if they want to continue on cab certificate problems
- Fix memory leaks in failure paths
- Properly disable caching

(cherry picked from commit 07f3691cd8)
cherry-picked by Joachim Henze
2018-02-19 14:33:00 +01:00
Mark Jansen
0908d634ad [0.4.8] cherry-pick [RAPPS] Some fixes to our completely broken cert pinning attempt
- We should not open a new connection to request a certificate.
- Update the issuer / subject for the LE certificate.
- User proper types.
- Require all fields that we check to be present.

Without checking the public key or the entire certificate it's still not secure, but we are a step closer.
Dedicated to Joachim Henze
CORE-14350

cherry-picked by Joachim Henze
2018-02-19 14:32:34 +01:00
Joachim Henze
bfcab8b0b4 [0.4.8] [WIN32SS] a risky fix to avoid BSOD CORE-13907 & CORE-11678
object2.patch in CORE-11678 is from jimtabor and Work in Progress.

As expected it mitigates CORE-11678 by preventing the
sporadic BSOD upon closing CCleaner. But it will always lead to
the program remaining in taskmgr upon closing instead.
User can manually kill the app from taskmgr.

To my own surprise this patch also reliably hides the BSOD in
HxD portable for me (CORE-13907).

I am still sceptical regarding this patch and will carefully
watch out for surprises like zombie processes during the test-cycle.
2018-02-18 02:10:54 +01:00
Joachim Henze
1906186e83 [0.4.8] [RDBSS] avoid CORE-13938
Pierre recommended this hack-fix for 0.4.8rls before.
Avoids "GetVolumeInformation now fails on NFS volume"

I will not retest any RDBSS functionality myself in my tests,
maybe some other tester would be kind enough to retest this?

Please note that I replaced #if 0 with #if 1
as discussed with Pierre. That's different to the patch in ticket.
2018-02-17 20:28:15 +01:00
Joachim Henze
6b8b704e6f [AFD] Apply unfinished patch to avoid BSODs CORE-14048 & CORE-12520
Fixes BSODs when starting Deluge Torrent 1.3.12.1 & QBitTorrent 3.2.0
due to running "Out of NP Expansion Pool"

This patch is still WIP of ThFabba.
2018-02-17 19:52:32 +01:00
Joachim Henze
937c2615e6 [0.4.8] [USP10] Apply unfinished patch to avoid CORE-14226
Thomas linked the patch in Wine Bug 44410
I tested it for some weeks without noticing any side-effects.
It avoids text rendering regressions in some setups like UltraISO
2018-02-17 19:29:24 +01:00
Thomas Faber
766ef24948 [0.4.8] Revert r73436 to avoid trouble with VirtualBox Guest Additions. CORE-13172 CORE-12700 CORE-12765
cherry-picked by Joachim Henze
2018-02-17 19:06:16 +01:00
Joachim Henze
51f9494d48 [0.4.8] [CDFS_NEW] Mute contable assertion to avoid CORE-14067 2018-02-17 18:58:07 +01:00
Thomas Faber
9274859438 [0.4.8] Mask WndProc exceptions to hide all tickets linked to CORE-11915
(cherry picked from commit 04d7a3c0d0)
by Joachim Henze
2018-02-17 18:33:51 +01:00
Colin Finck
429767ac69 [0.4.8] cherry-pick [CMAKE] Call "git describe" with the --long parameter to always output the format we are used to. 2018-02-17 18:23:34 +01:00
Joachim Henze
5f7cfe0ff8 [0.4.8] Change KERNEL_VERSION_BUILD_TYPE "RC"
as first commit before! adding the git tag
2018-02-17 17:59:30 +01:00
Hermès Bélusca-Maïto
b77840d3a2
[SHELL32_APITEST] Run the CUserNotification worker test function in a thread to copy with possible test timeouts. CORE-13177 2018-02-17 16:02:22 +01:00
Pierre Schweitzer
bdae0cce66
[NTOSKRNL] Don't call OOM dumper in case we were trying to allocate more than 100 pages.
In such case, we'll consider the caller is bogus and we'll fail in silence.
Dedicated to Mark (again!)
2018-02-17 15:09:38 +01:00
Pierre Schweitzer
01fcb02880
[NTOSKRNL] Allow more chars in ExpTagAllowPrint().
Dedicated to Mark
2018-02-17 15:06:29 +01:00
Pierre Schweitzer
69f51d1533
[FASTFAT] Drop read ahead locking routines in favor of lazy writer routines.
This avoids code duplication while being consistent with MS FastFAT.
2018-02-17 13:49:15 +01:00
Hermès Bélusca-Maïto
175e78e50f
[SHELL32] Fix COM registration of IShellFolder, IShellLinkA/W, IQueryContinue and IUserNotification classes. 2018-02-16 23:31:39 +01:00
Pierre Schweitzer
6061c78e91
[EXPLORER] Update French translation 2018-02-16 19:36:25 +01:00
Katayama Hirofumi MZ
338799bf8b improve SHGetFileInfo (#118)
This patch reduces failures of SHGetFileInfo function. CORE-7159
* improve WideByteToWideChar calls
* fix bugs related to file attributes and SHGFI_EXETYPE
* SHGFI_USEFILEATTRIBUTES and SHGFI_ICON fix
* s/sizeof(temppsfi)/0/
2018-02-16 11:00:08 +00:00
Serge Gautherie
cd4db318d0 [D3D9][ARPING] Add missing va_start() and va_end() (#371) 2018-02-16 10:28:25 +01:00
Hermès Bélusca-Maïto
d1265b932c
[COM_APITEST] Reenable two known interfaces (#367). Caught by Thomas. 2018-02-16 00:15:41 +01:00
Doug Lyons
8ea42001d9
[I8042PRT] Apply a workaround for Dell Latitude D610
CORE-14324
2018-02-15 22:49:39 +01:00
Hermès Bélusca-Maïto
02d17df031
[SHELL32_APITEST] Add a test for the CUserNotification implementation. CORE-13177 2018-02-15 22:38:38 +01:00
Hermès Bélusca-Maïto
fe4704fa64
[SHELL32] Implement the CUserNotification class, which implements the IUserNotification interface. CORE-13177 2018-02-15 22:38:22 +01:00
Hermès Bélusca-Maïto
70bbdca202
[COM_APITEST] Add tests for IUserNotification. CORE-13177 2018-02-15 22:37:32 +01:00
Hermès Bélusca-Maïto
cd83ed1ac5
[PSDK] Add definitions for IUserNotification, IQueryContinue, and IUserNotification2 and IUserNotificationCallback (Vista+).
CORE-13177
2018-02-15 22:36:50 +01:00
Serge Gautherie
46f96733bd [SC] Disable debug messages on user interface (#382) 2018-02-15 13:58:17 +00:00
Ivan Labutin
5ae2750467
[HAL] Implement APIC-based profiling for x64. 2018-02-15 12:45:29 +01:00
Thomas Faber
ad68422a7b
[IP] Silence "TCP operation failed" debug spam. 2018-02-15 12:26:35 +01:00
Giannis Adamopoulos
67f99833cd [SHELL32] CNewMenu: Don't use CWM_GETISHELLBROWSER.
CDefaultContextMenu: Set the site for context menu extensions
CNewMenu: Get SID_IFolderView service of the site to get the IShellView
2018-02-15 00:58:22 +02:00
Giannis Adamopoulos
b97886ea9f [SHELL32] Fix the toolbar buttons in the file open dialog
CDefView: Make GetItemObject return an IContectMenu after setting itself as the site.
CDefViewBckgrndMenu: Make the inner context menu use the same site. Implement handling CMDSTR_VIEWLISTA and CMDSTR_VIEWDETAILSA.
CDefaultContextMenu: CMDSTR_VIEWLISTA and CMDSTR_VIEWDETAILSA shouldn't be handled in this class.
Fixes CORE-14327 and the two buttons that change the view mode
2018-02-15 00:23:18 +02:00
Joachim Henze
e4aa45f63a [SHELL32] Fix glitch in de-DE.rc
checkbox captions are too long.
issue was introduced by 3624c5d6fd

fixes CORE-14329 for de-DE
2018-02-14 20:12:10 +01:00
Giannis Adamopoulos
111c40e012 [SHELL32] CDefViewBckgrndMenu: Fix handling string verbs.
It shouldn't be necessary for QueryContextMenu to be called before InvokeCommand.
Move retrieving the IContextMenu of the folder to the initialization of the class.
CORE-12866
2018-02-14 00:03:35 +02:00
Hermès Bélusca-Maïto
eb3987e172
[SHLWAPI] Import wine commit 2c163225730e88 as addendum to the SHCreateWorkerWindowW/A fixes from commit 770bf93. 2018-02-13 22:30:59 +01:00
Luo Yufan
37b9ca3fe3 [TRANSLATION][INF] Update Simplified Chinese translation. (#378) 2018-02-13 22:16:25 +01:00
Mark Jansen
fb7caa7452
[COMCTL32] Import wine commit 71cf0a31d99feb to fix the name column width in rapps. 2018-02-13 19:48:18 +01:00