Commit graph

76393 commits

Author SHA1 Message Date
Amine Khaldi
bd00327109 [WMIUTILS] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:10:01 +01:00
Amine Khaldi
6b9bd93fe6 [WLDAP32] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:09:39 +01:00
Amine Khaldi
cb01e5ecac [WINTRUST_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:09:17 +01:00
Amine Khaldi
d296bbebbe [WINTRUST] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:08:52 +01:00
Amine Khaldi
a2da235c67 [WINSPOOL_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:08:30 +01:00
Amine Khaldi
79d5eedcb4 [WINSCARD] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:08:06 +01:00
Amine Khaldi
11f4618984 [WINMM_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:07:44 +01:00
Amine Khaldi
a4f791d920 [WININET_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:07:21 +01:00
Amine Khaldi
56601978c4 [PSDK] Add missing define. CORE-16441 2019-12-07 13:06:57 +01:00
Amine Khaldi
c239cdd4e6 [WININET] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:06:34 +01:00
Amine Khaldi
412bce85f2 [WINHTTP_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:06:11 +01:00
Amine Khaldi
5bd6580fc6 [WINHTTP] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:05:48 +01:00
Amine Khaldi
611eb5508c [WINEMP3.ACM] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:05:25 +01:00
Amine Khaldi
cc48f9d4d6 [WINDOWSCODECS_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:05:00 +01:00
Amine Khaldi
f6a1733daf [WINDOWSCODECS] Sync with Wine Staging 4.18. CORE-16441 2019-12-07 13:04:33 +01:00
Katayama Hirofumi MZ
4c5b21f06c
[REGEDIT] Improve arrow button visual (#2133)
Add IDI_ARROW resource icon and use it for the arrow button.
2019-12-07 10:09:44 +09:00
Katayama Hirofumi MZ
007f32a223
[WIN32SS][WINSRV] Do CJK font choose workaround (#2134)
Don't choose Asian charset font if there is no preferred font for CJK. CORE-12451
2019-12-06 22:18:51 +09:00
Katayama Hirofumi MZ
2f8d847c91
[KERNEL32_APITEST] Adjust ConsoleCP testcase for Win10 JPN (#2131)
CORE-12451
2019-12-05 22:07:00 +09:00
Katayama Hirofumi MZ
1dcdb4c2d0
[WIN32SS][WINSRV] Optimize console background drawing (#2132)
Console needs speed. This PR will optimize drawing of console.
- Set NULL to the background brush.
- Skip WM_ERASEBKGND.
2019-12-05 20:19:00 +09:00
Katayama Hirofumi MZ
2fad488a85
[SHELL32] Add 'm_' prefix to CFSFolder members (#2129)
CORE-7585
2019-12-05 05:35:25 +09:00
Timo Kreuzer
e26c8bc66f [ROSTESTS] Skip some flaky test / do not count successes 2019-12-04 01:24:49 +01:00
Katayama Hirofumi MZ
c082d08cf3 [SHELL32] Delete unused CNewMenu::m_wszPath 2019-12-03 13:46:35 +09:00
Hermès Bélusca-Maïto
4431418999
[VIDEOPRT] Protect access to HwResetAdaptersList with spinlock. 2019-12-03 02:46:38 +01:00
Serge Gautherie
ad21227ac8
[NTOS:PO] PopShutdownHandler(): Fully screen-center images. Addendum to 55aed4f8.
CORE-16342
2019-12-03 02:10:37 +01:00
Katayama Hirofumi MZ
4420f4e0ca
[CPL][INPUT] Fix bullet (#2124)
CORE-13807
2019-12-02 18:04:41 +09:00
Katayama Hirofumi MZ
55aed4f8fa [NTOSKRNL][INBV] Fix IDB_SHUTDOWN_MSG position
Make "shutdown.bmp" (IDB_SHUTDOWN_MSG: 213x11px) horizontally centered.
2019-12-02 16:55:02 +09:00
Hermès Bélusca-Maïto
0ad65796bb
[WIN32K][VIDEOPRT] Improve initialization and interfacing with INBV.
CORE-12149

VIDEOPRT:
=========

Improve interfacing with INBV, so as to detect when an external module
acquired INBV display ownership, and whether ownership is being released
later on. (This does NOT rely on hooking!)

For this purpose we improve the IntVideoPortResetDisplayParameters(Ex)
callback that gets registered with an InbvNotifyDisplayOwnershipLost()
call during initialization, and we add a monitoring thread.

The callback is called whenever an external module calls
InbvAcquireDisplayOwnership(), for example the bugcheck code or the KDBG
debugger in SCREEN mode. When this happens, a flag that tells the
monitoring thread to start monitoring INBV is set (ReactOS-specific),
and the display adapters get reset with HwResetHw() (as done on Windows).

Due to the fact that this INBV callback can be called at *ANY* IRQL, we
cannot use dispatcher synchronization mechanisms such as events to tell
the INBV monitoring thread to start its operations, so we need to rely
instead on a flag to be set. And, since INBV doesn't provide with any
proper callback/notification system either, we need to actively monitor
its state by pooling. To reduce the load on the system the monitoring
thread performs 1-second waits between each check for the flag set by
the INBV callback, and during checking the INBV ownership status.

When the INBV ownership is detected to be released by an external module,
the INBV callback is re-registered (this is *MANDATORY* since the
external module has called InbvNotifyDisplayOwnershipLost() with a
different callback parameter!), and then we callout to Win32k for
re-enabling the display.

This has the virtue of correctly resetting the display once the KDBG
debugger in SCREEN mode is being exited, and fixes CORE-12149 .

The following additional fixes were needed:

VIDEOPRT & WIN32K:
==================

Remove the registration with INBV that was previously done in a ReactOS-
specific hacked IRP_MJ_WRITE call; it is now done correctly during the
video device opening done by EngpRegisterGraphicsDevice() in the VIDEOPRT's
IRP_MJ_CREATE handler, as done on Windows.

WIN32K:
=======

- Stub the VideoPortCallout() support, for VIDEOPRT -> WIN32 callbacks.
  This function gets registered with VIDEOPRT through an
  IOCTL_VIDEO_INIT_WIN32K_CALLBACKS call in EngpRegisterGraphicsDevice().

- Only partially implement the 'VideoFindAdapterCallout' case, that just
  re-enables the primary display by refreshing it (using the new function
  UserRefreshDisplay()).

VIDEOPRT:
=========

- PVIDEO_WIN32K_CALLOUT is an NTAPI (stdcall) callback.

- In the IntVideoPortResetDisplayParameters(Ex) callback, reset all the
  "resettable" adapters registered in the HwResetAdaptersList list.
  We thus get rid of the global ResetDisplayParametersDeviceExtension.

- Make the IntVideoPortResetDisplayParameters(Ex) callback slightly more
  robust (using SEH) against potential HwResetListEntry list corruption
  or invalid DriverExtension->InitializationData.HwResetHw() that would
  otherwise trigger a BSOD, and this would be disastrous since that
  callback is precisely called when INBV is acquired, typically when the
  BSOD code initializes the display for displaying its information...

Extras:
- Validate the IrpStack->MajorFunction in IntVideoPortDispatchDeviceControl()
  and implement IRP_MJ_SHUTDOWN handling. Stub out the other IOCTLs that
  are handled by VIDEOPRT only (and not by the miniports).

- VIDEOPRT doesn't require IRP_MJ_INTERNAL_DEVICE_CONTROL (unused).

- Implement IOCTL_VIDEO_PREPARE_FOR_EARECOVERY that just resets the
  display to standard VGA 80x25 text mode.
2019-12-02 02:33:20 +01:00
Katayama Hirofumi MZ
c076d5819c [USERENV] Improve Japanese translation again 2019-12-02 07:05:57 +09:00
Katayama Hirofumi MZ
364e22fa14 [SHELL32] Improve Japanese translation 2019-12-02 07:03:18 +09:00
Katayama Hirofumi MZ
b582d6ff45
[SHELL32] Improve and fix SendTo (#2122)
Because of timing of SendTo folder initialization, SendTo My Documents didn't work well.
Now My Documents item is working well. CORE-12562
2019-12-02 04:06:20 +09:00
Amine Khaldi
92c3c814bb [WBEMPROX_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:45:25 +01:00
Amine Khaldi
628f4c996c [WBEMPROX] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:45:00 +01:00
Amine Khaldi
e5a5f62909 [PSDK] Add GetSystemFirmwareTable. CORE-16441 2019-12-01 19:44:36 +01:00
Amine Khaldi
36873c4934 [WBEMDISP] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:44:13 +01:00
Amine Khaldi
658118f098 [VSSAPI] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:43:49 +01:00
Amine Khaldi
f1e575c3d2 [VERSION] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:43:24 +01:00
Amine Khaldi
7d76303d2d [VBSCRIPT_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:43:01 +01:00
Amine Khaldi
285df607d2 [PSDK] Update activscp.idl. CORE-16441 2019-12-01 19:42:38 +01:00
Amine Khaldi
9a0ddc1388 [VBSCRIPT] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:42:07 +01:00
Amine Khaldi
573d40fbaa [USP10_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:41:41 +01:00
Amine Khaldi
29ff85ba5d [USP10] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:41:14 +01:00
Amine Khaldi
7a62c32bcc [USER32_WINETEST] Sync with Wine Staging 4.18 except win.c (PR #1980). CORE-16441 2019-12-01 19:40:48 +01:00
Amine Khaldi
87801a65f7 [PSDK] Add some missing definitions. CORE-16441 2019-12-01 19:40:17 +01:00
Amine Khaldi
98e4a3ece1 [URLMON_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:39:54 +01:00
Amine Khaldi
6c3c2e33f6 [URLMON] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:39:31 +01:00
Amine Khaldi
7cddbe34e2 [UPDSPAPI] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:39:04 +01:00
Amine Khaldi
174271931a [TWAIN_32] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:38:39 +01:00
Amine Khaldi
3edf37e269 [TAPI32] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:38:13 +01:00
Amine Khaldi
5a267e6b9e [T2EMBED] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:37:45 +01:00
Amine Khaldi
d9010a8166 [RICHED32_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:37:14 +01:00