Pierre Schweitzer
01b580d876
[WIN32K] Deny deviceless calls to EngDeviceIoControl
...
This fixes BSOD happening in ntoskrnl coming from win32k under certain
conditions with 3rd party display drivers (such as VBox or VMware)
2018-12-31 20:35:17 +01:00
Katayama Hirofumi MZ
f757a13519
[FONT][WIN32SS] Partially implement font/text rotation ( #1207 )
...
Partially implement font/text rotation by LOGFONT.lfEscapement and improve the rendering image. If the angle was not a multiple of 90 degrees, then the background won't be filled. CORE-11848, CORE-15319
2018-12-31 18:56:43 +09:00
Timo Kreuzer
71fefa32db
[NDK][NTOS] Add global definition of INIT_FUNCTION/INIT_SECTION ( #779 )
...
* Add an NDK header to define INIT_FUNCTION/INIT_SECTION globally
* Use _declspec(allocate(x)) and _declspec(code_seg(x)) on MSVC versions that support it
* Use INIT_FUNCTION on functions only and INIT_SECTION on data only (required by MSVC)
* Place INIT_FUNCTION before the return type (required by MSVC)
* Make sure declarations and implementations share the same modifiers (required by MSVC)
* Add a global linker option to suppress warnings about defined but unused INIT section
* Merge INIT section into .text in freeldr
2018-12-30 12:19:11 +01:00
Thomas Faber
e3c8002dfc
[WIN32K:NTUSER] Reference menus owned by a popup menu. CORE-15504
2018-12-30 00:25:01 +01:00
Mark Jansen
86ea03bf51
[FONT][WIN32SS] Re-add casts for gcc
2018-12-29 20:06:04 +01:00
Mark Jansen
85db46d75c
[FONT][WIN32SS] Remove casts
2018-12-29 19:47:00 +01:00
Mark Jansen
971c657b80
[FONT][WIN32SS] Hold the freetype lock while accessing freetype data
2018-12-29 19:47:00 +01:00
Mark Jansen
2e44e5ce54
[FONT][WIN32SS] Fix a memory leak
2018-12-29 19:47:00 +01:00
Mark Jansen
1f13b95e5b
[FONT][WIN32SS] Fix a memory leak
2018-12-29 19:47:00 +01:00
Mark Jansen
1d1b7f46fc
[FONT][WIN32SS] Hold the freetype lock while accessing freetype data
2018-12-29 19:47:00 +01:00
Mark Jansen
436d8d962a
[FONT][WIN32SS] Hold the freetype lock while accessing freetype data
2018-12-29 19:46:59 +01:00
Mark Jansen
2fa400b521
[FONT][WIN32SS] Do not return an uninitialized variable
2018-12-29 19:46:59 +01:00
Thomas Faber
c526f94b8c
[WIN32K:NTUSER] Acquire the user lock exclusively in NtUserGetSystemMenu. CORE-15512
2018-12-28 13:59:33 +01:00
Katayama Hirofumi MZ
65f0926086
[MENU][WIN32SS] Fix non-menubar menu text Y position ( #1199 )
...
CORE-15226
2018-12-28 12:12:42 +09:00
Katayama Hirofumi MZ
6ee576f91d
[FONT][WIN32SS] Optimize a bit
2018-12-27 09:23:49 +09:00
Katayama Hirofumi MZ
be84465883
[FONT][WIN32SS] Follow-up of #1184
2018-12-25 21:54:33 +09:00
Katayama Hirofumi MZ
d6cfeaef51
[FONT][WIN32SS] Refactor rendering text background ( #1184 )
...
Simplify the background filling codes. CORE-14856
2018-12-25 20:41:25 +09:00
Katayama Hirofumi MZ
968c8f37f1
[WIN32SS] Fix RLE4 bitmap decoding ( #1188 )
...
CORE-10553, CORE-11399
2018-12-25 18:04:21 +09:00
Giannis Adamopoulos
1a8d9f12d6
[NTUSER] Implement creating the system threads
...
- Add UserCreateSystemThread function that will signal csrss to create a new system thread.
- NtUserCreateWindowStation: Create the raw input thread and the desktop thread when the IO window station gets created.
- IntMakeHungWindowGhosted: Create the ghost system thread that will own all ghost windows.
- Let the raw input thread manage the window station of csrss.
[USERSRV] Remove system threads creating hack
- Implement SrvCreateSystemThreads
- Don't create the system threads in UserServerDllInitialization.
2018-12-19 16:13:18 +02:00
Giannis Adamopoulos
3ec7b163c9
[WINSRV] Add a hack to fix giving the api port to win32k
...
- Register our api port with win32k in SrvRegisterLogonProcess because UserClientConnect is never really called.
[NTUSER] Silence a noisy trace
2018-12-19 16:13:18 +02:00
Giannis Adamopoulos
dad76af8a4
[NTUSER] Fix desktop and window station assignment for csrss
...
- NtUserSetInformationThread: Stub UserThreadUseActiveDesktop and UserThreadRestoreDesktop
- Properly mark the first thread that enters win32k belonging to csrss. At this point we assume that since gpepCSRSS isn't initialized yet, it probably is the first thread.
[WINSRV] Use NtUserSetInformationThread to set the current desktop when needed
-When csrss needs to use user32 or enter win32k, it first needs to assign the current thread to a desktop.
2018-12-19 16:13:18 +02:00
Giannis Adamopoulos
298a46acbf
[NTUSER] Don't crash when the current thread doesn't have a desktop
2018-12-19 16:13:18 +02:00
Giannis Adamopoulos
b2a5f5dbb3
[WINSRV] Fix setting the console title
2018-12-19 16:13:18 +02:00
Katayama Hirofumi MZ
00dd17e6e5
[USER32] App Switcher Arrow keys ( #1136 )
...
Implement Arrow keys on App Switcher (Alt+Tab). CORE-15449
2018-12-16 08:42:20 +09:00
Katayama Hirofumi MZ
aa04a0a6d3
[WIN32SS] Replace ASSERT(FALSE); in IntGhostWindowFromHungWindow ( #1116 )
...
CORE-11944
2018-12-12 08:03:49 +09:00
Katayama Hirofumi MZ
43e2089476
[WIN32SS][FONT] Check NULL of Face->style_name ( #1113 )
...
CORE-15433
2018-12-11 18:32:39 +09:00
Katayama Hirofumi MZ
f469acacec
[WIN32SS][USER32] Add Ghost codes (retrial of #1100 ) ( #1112 )
...
CORE-11944
2018-12-11 12:30:59 +09:00
Katayama Hirofumi MZ
99b055a506
Revert "[WIN32SS][USER32] Add codes for Ghost Window ( #1100 )" ( #1110 )
...
This reverts commit 1adefd180c
. ReactOS wouldn't startup.
2018-12-11 11:30:00 +09:00
Katayama Hirofumi MZ
1adefd180c
[WIN32SS][USER32] Add codes for Ghost Window ( #1100 )
...
CORE-11944
2018-12-11 10:48:23 +09:00
Pierre Schweitzer
958ae44599
[WIN32SS] Shhhhh!
2018-12-09 22:00:53 +01:00
Pierre Schweitzer
53a313f456
[USER32] Complete French translation
2018-12-09 09:38:31 +01:00
Stanislav Motylkov
6c7094acb8
[USER32] Update russian translation
...
Addendum to 6a944b5
.
2018-12-08 23:36:06 +01:00
Katayama Hirofumi MZ
e90954304d
[WIN32SS][FONT] Add some assertions ( #1098 )
2018-12-06 12:47:02 +09:00
Katayama Hirofumi MZ
93757884c1
[WIN32SS][FONT] Improve FamilyUnknown Penalty ( #1097 )
...
CORE-15419
2018-12-06 09:32:02 +09:00
Katayama Hirofumi MZ
88ddb37acb
[WIN32SS][FONT] Use HHEA table metrics if (fsSelection & 0x80) ( #1093 )
...
This PR will fix too tiny glyph rendering. CORE-15166
2018-12-05 21:05:42 +09:00
Katayama Hirofumi MZ
3fd2deefac
[USER32] Fix Task Switcher ( #1086 )
...
CORE-10481
2018-12-03 04:26:15 +09:00
Katayama Hirofumi MZ
6a944b556a
[USER32] Add Ghost window class ( #1082 )
...
CORE-11944
2018-12-02 18:51:44 +09:00
Katayama Hirofumi MZ
b09487fb44
[WIN32SS] Add IntGoGhost function (stub) ( #1081 )
...
CORE-11944
2018-12-01 20:59:07 +09:00
Giannis Adamopoulos
225c5c4a20
[WINSRV] Wait for the process to exit after calling NtTerminateProcess
...
NtTerminateProcess just queues an apc in every thread of the target process which in turn kills each thread. We need to wait so that all processes have enough time to exit before shutting down.
2018-11-27 10:28:31 +02:00
Andrew Boyarshin
f48eb70af3
[WIN32K][NTUSER] Specify constant name explicitly ( #1067 )
...
Reduce confusion by specifying the omitted constant HWND_TOP == 0.
2018-11-25 14:31:23 +01:00
Andrew Boyarshin
62ec69278d
[WIN32K][NTUSER] Tiny codestyle fix to NtUserLockWindowUpdate ( #1066 )
...
Fix indentation (inconsistent with the rest of the file) and return actual BOOL.
2018-11-25 14:31:04 +01:00
Pierre Schweitzer
6416ee982f
[WIN32SS] Don't leak memory on failure in IntGdiWidenPath().
...
CID 1441350
2018-11-16 22:07:08 +01:00
Pierre Schweitzer
2255d5f5b6
[WIN32SS] Avoid an user-after-free in FontFamilyFillInfo().
...
CID 1441367
2018-11-16 22:07:08 +01:00
Ercan Ersoy
44323e610f
[TRANSLATION] Turkish translations of many components. ( #1026 )
2018-11-11 18:13:48 +01:00
Katayama Hirofumi MZ
64e217e97c
[WIN32SS][FONT] Fix regression of #1004 ( #1012 )
...
Signed-off-by: Doug Lyons <douglyons@douglyons.com>
CORE-15333
2018-11-05 16:24:23 +09:00
Katayama Hirofumi MZ
7f679a116b
[WIN32SS][FONT] Fix ntmCellHeight value to usWinAscent + usWinDescent ( #1010 )
...
CORE-15331
2018-11-05 06:03:53 +09:00
Katayama Hirofumi MZ
2737d9144d
[WIN32SS][FONT] Define IntUnicodeStringToBuffer function and use it ( #1004 )
...
- Define IntUnicodeStringToBuffer function to copy the contents of a UNICODE_STRING to a string buffer with a UNICODE_NULL correctly.
- Use it.
JIRA issue: N/A
2018-11-03 05:42:58 +09:00
Katayama Hirofumi MZ
4abba2b7ac
[WIN32SS][FONT] Improve Precision Penalty ( #1006 )
2018-11-03 05:37:05 +09:00
Katayama Hirofumi MZ
08cfe38ec6
[WIN32SS][FONT] Add ASSERT_FREETYPE_LOCK_HELD(); in FillTMEx ( #1005 )
...
Add a assertion for locking, in FillTMEx function of freetype.c. CORE-15166
2018-11-02 18:53:50 +09:00
Katayama Hirofumi MZ
5d26cf5e2a
[WIN32SS][FONT] Move IntUnLockFreeType(); in ftGdiGetTextMetricsW ( #1002 )
...
Adjust timing of FreeType unlocking in ftGdiGetTextMetricsW function of "freetype.c". JIRA issue: N/A
2018-11-02 16:29:18 +09:00