Commit graph

68594 commits

Author SHA1 Message Date
Mark Jansen 4f86a02439 [SLAYER] Remove the shell extension. CORE-13111 #resolve
svn path=/trunk/; revision=74608
2017-05-20 19:58:04 +00:00
Mark Jansen 153601c7a2 [WIN32SS] Reduce the amount of calls to IntGetFontLocalizedName, since this was identified as a source of recent slower drawing. CORE-13274
Thanks to Thomas, Giannis and Joachim.

svn path=/trunk/; revision=74607
2017-05-20 18:59:00 +00:00
Eric Kohl 019092990f [INF]
Make code page and language group names translatable.
CORE-11885

svn path=/trunk/; revision=74606
2017-05-20 13:46:48 +00:00
Thomas Faber c1c815b13d [WIN32K:NTGDI]
- Simplify list walk in FindBestFontFromList

svn path=/trunk/; revision=74605
2017-05-20 12:11:08 +00:00
Eric Kohl a51b9dd514 [INF]
Make language (locale) names translatable.
CORE-11885

svn path=/trunk/; revision=74604
2017-05-20 09:53:15 +00:00
Thomas Faber c52bb16926 [HAL]
- Fix a broken DPRINT

svn path=/trunk/; revision=74603
2017-05-19 21:37:50 +00:00
Mark Jansen f64b823282 [GDI32_APITEST] Improve GetFontResourceInfoW tests. Patch by Katayama Hirofumi MZ. ROSTESTS-269 #resolve #comment Thanks!
svn path=/trunk/; revision=74602
2017-05-19 20:26:49 +00:00
Mark Jansen bbe72b0163 [APPHELP] Initial implementation of ApphelpCheckRunAppEx. CORE-10368
svn path=/trunk/; revision=74601
2017-05-19 20:13:08 +00:00
Thomas Faber a9757a1ab0 [NTDLL:LDR]
- Fix logic error in LdrpInit that caused us to busy-wait instead of sleep. This makes LibreOffice start up in a few seconds instead of sitting around at 100% CPU for a minute or two.
CORE-13268 #resolve

svn path=/trunk/; revision=74600
2017-05-19 19:11:14 +00:00
Thomas Faber 8a30da51a0 [RTL]
- Do not change RTL_HANDLE_TABLE::CommittedHandles when committing a new page of handle entries. This value must always point to the beginning of the allocation, to correctly track the entire committed range. Fixes LibreOffice Writer (and ntdll_apitest) crash.
CORE-13271 #resolve

svn path=/trunk/; revision=74599
2017-05-19 18:22:46 +00:00
Thomas Faber 10e08033ca [NTDLL_APITEST]
- Add a test for RTL handle tables
CORE-13271

svn path=/trunk/; revision=74598
2017-05-19 18:05:12 +00:00
Hermès Bélusca-Maïto 48d95feba1 [SCSIPORT]: Fixes:
- In SpiScanAdapter(), after an SCSI INQUIRY command has succeeded and we are setting up a LUN extension structure,
  cache in its InquiryData member the inquiry data retrieved from the INQUIRY command (alternatively we might just cache
  a pointer to a valid "LunInfo" since the latter are also cached elsewhere).
- This allows SpiBuildDeviceMap(), which is called just after SpiScanAdapter(), to correctly report in the registry SCSI tree
  the correct Identifier and DeviceType values for the enumerated logical units.
- Use ExFreePoolWithTag in SpiScanAdapter().

svn path=/trunk/; revision=74597
2017-05-19 16:14:10 +00:00
Hermès Bélusca-Maïto 2e3ea31302 [SCSIPORT]: Code formatting only.
svn path=/trunk/; revision=74596
2017-05-19 16:08:40 +00:00
Hermès Bélusca-Maïto 87d9dfae0d [SCSIPORT]: Fixes + documentation:
- In SpiSendInquiry():
  * use ExFreePoolWithTag;
  * if IoBuildDeviceIoControlRequest() fails, exit correctly the loop so that the allocated buffers are cleaned up;
- In SpiBuildDeviceMap():
  * support new peripheral type names, as documented in the links in the comments;
  * fix the "CommunicationsPeripheral" name (communication'S') as documented, and as done in windows' scsiport driver.

svn path=/trunk/; revision=74595
2017-05-19 15:02:02 +00:00
Hermès Bélusca-Maïto b00727337e [SCSIPORT]: Code formatting in the functions I'm going to touch next (in addition, add few "continue;" inside some loops so that I can reduce the indent level of code blocks).
svn path=/trunk/; revision=74594
2017-05-19 14:49:23 +00:00
Giannis Adamopoulos 5f36105c74 [UXTHEME] -Use and RTL handle table for HTHEME handles. In this way we can ensure that a value we take is valid even if it is non NULL. We can also detect leaks.
svn path=/trunk/; revision=74593
2017-05-19 11:02:44 +00:00
Giannis Adamopoulos 94f9c1a7c1 [UXTHEME] Greatly reduce the number of times we open the theme data for the non client area.
- Implement OTD_NONCLIENT for OpenThemeDataEx and OpenThemeDataFromFile.
- Open the WINDOW or the SCROLLBAR theme classes only when needed. Use OpenThemeDataEx instead of the internal MSSTYLES_OpenThemeClass. Cache the open theme in the WND_DATA for later use.

svn path=/trunk/; revision=74592
2017-05-19 10:01:50 +00:00
Ged Murphy 48014fdd4b Forgot to add the cmake changes
svn path=/trunk/; revision=74591
2017-05-19 09:46:41 +00:00
Ged Murphy 4466aba674 [FLTMGR]
- Add a rather messy header that I've been slowly building as I'm starting to understand the internals.
- Mostly taken from the MS PDBs and info gained from OSR and Alex Carp's blog. (https://fsfilters.blogspot.co.uk)

svn path=/trunk/; revision=74590
2017-05-19 09:42:00 +00:00
Ged Murphy 7a5211283a [FLTMGR]
- Implement FltCreateCommunicationPort, FltCloseCommunicationPort, FltCloseClientPort, and stub FltSendMessage
- Add two new object types for the server port and client ports
- Implement object type callbacks for closing and deleting these new ports
- Create the comms object and create the symbolic link (FltMgrMsg) to allow usermode to open a handle to the comms layer (aka FilterConnectCommunicationPort)
- Although untested, the comms layer objects should be mostly setup, and we should be able to open a connection from usermode.

svn path=/trunk/; revision=74589
2017-05-19 09:37:38 +00:00
Ged Murphy fb1948e7d4 [FLTMGR}
- Implement FltAcquirePushLockExclusive, FltAcquirePushLockShared and FltReleasePushLock. Lifted from ntos' internal pushlock routines.
- Implement FltpObjectPointerReference and partially implement FltpObjectPointerDerference

svn path=/trunk/; revision=74588
2017-05-19 09:15:35 +00:00
Giannis Adamopoulos a652c58c19 [UXTHEME] -Rename WND_CONTEXT to WND_DATA to avoid confusion with the DRAW_CONTEXT. The WND_DATA is information valid throughout the life of a window and DRAW_CONTEXT is information throughout a draw operation in the non client area of the window.
svn path=/trunk/; revision=74587
2017-05-19 08:45:49 +00:00
Ged Murphy 68bca6631d [FLTMGR]
- Add the missing IOCTLs that were added to fltlib

svn path=/trunk/; revision=74586
2017-05-19 08:21:41 +00:00
Hermès Bélusca-Maïto 6ab86eb6cc [NTOS]: Use the correct access rights for ZwOpenDirectoryObject call.
svn path=/trunk/; revision=74585
2017-05-18 23:46:44 +00:00
Hermès Bélusca-Maïto 2e25bf12d0 [NTOS]: Close an opened handle after usage.
svn path=/trunk/; revision=74584
2017-05-18 23:32:00 +00:00
Ged Murphy 4baf3f8e4f [FLTLIB]
- Implement FilterConnectCommunicationPort
- Add the remaining IOCTLs fltlib sends to the fltmgr

svn path=/trunk/; revision=74583
2017-05-18 22:06:49 +00:00
Eric Kohl e53736f6e0 [INTL]
- Add custom draw function for the codepages listview.
- User gray text color for codepages that cannot be uninstalled.
CORE-13242

svn path=/trunk/; revision=74582
2017-05-18 21:56:24 +00:00
Thomas Faber 17c95d5279 [VIDEOPRT]
- Guard Ke386CallBios calls against concurrent execution.
CORE-13214

svn path=/trunk/; revision=74581
2017-05-18 21:29:24 +00:00
Giannis Adamopoulos 7fd7537957 [UXTHEME] -Remove a debug print that was never meant to be committed.
svn path=/trunk/; revision=74580
2017-05-18 17:53:33 +00:00
Giannis Adamopoulos 313744b524 [UXTHEME] -Apply some suggestions by Thomas.
svn path=/trunk/; revision=74579
2017-05-18 17:15:22 +00:00
Peter Hater a1a782be93 [MSTSC] Addendum to r74577. CORE-13263
svn path=/trunk/; revision=74578
2017-05-18 08:57:26 +00:00
Peter Hater 2796bd5d20 [MSTSC] Fix BSOD when we can't acquire context from CryptoAPI. CORE-13263 #resolve
svn path=/trunk/; revision=74577
2017-05-18 08:47:30 +00:00
Thomas Faber 1338881e3b [BOOTLIB]
- Avoid uninitialized ComputeHash variable in BlImgLoadImageWithProgress2
CORE-13265 #resolve

svn path=/trunk/; revision=74571
2017-05-17 16:06:24 +00:00
Peter Hater be8b65c8a9 [MSTSC] Fix parsing of settings. Patch by Stas'M. Thanks. CORE-13223
svn path=/trunk/; revision=74568
2017-05-17 10:53:54 +00:00
Peter Hater 988b6396aa [MSTSC] Send computer name as client name when available. Patch by Stas'M. Thanks. CORE-13237
svn path=/trunk/; revision=74567
2017-05-17 10:47:39 +00:00
Hermès Bélusca-Maïto 4ed5e28c51 [FORMAT]: Use a better variable type for the media flag.
svn path=/trunk/; revision=74566
2017-05-16 20:17:18 +00:00
Hermès Bélusca-Maïto dddd4b38f6 [SHELL32]: Fix a FIXME: Recognize the media type for formatting, by calling GetDriveTypeW(). Based on what format.com does too.
svn path=/trunk/; revision=74565
2017-05-16 20:16:43 +00:00
Peter Hater a31e72a3f9 [MSTSC] Fix unwanted change
svn path=/trunk/; revision=74564
2017-05-16 18:01:31 +00:00
Peter Hater 973f7314b1 [MSTSC] Fix adding module name and IP to logon packet. Patch by Stas'M. Minor modification by me. Thanks. CORE-13234
svn path=/trunk/; revision=74563
2017-05-16 17:56:51 +00:00
Hermès Bélusca-Maïto 819142c996 Addendum to r74559: specify 'void' function aka. doesn't take any parameter. In C, a function whose prototype is () means "take an arbitrary number of args".
svn path=/trunk/; revision=74562
2017-05-16 17:45:52 +00:00
Peter Hater f5c285da13 [MSTSC] Enable taking settings folder using SHGetFolderLocation instead of using "c:\". Patch by Stas'M. Thanks CORE-13225
svn path=/trunk/; revision=74561
2017-05-16 17:37:48 +00:00
Peter Hater 450b66d358 [MSTSC] Fix image corruption in 24bpp mode CORE-13224
svn path=/trunk/; revision=74560
2017-05-16 17:32:19 +00:00
Peter Hater 44f1cf17c7 [ACPI] Implement creating volatile registry keys for ACPI tables CORE-12942
svn path=/trunk/; revision=74559
2017-05-16 17:26:12 +00:00
Peter Hater 8eede74d89 [MSTSC] Switch most MSTSC from internal "ssl" functions to CryptoAPI and implement/enable certificate functions CORE-13259
svn path=/trunk/; revision=74558
2017-05-16 17:20:56 +00:00
Peter Hater 688f2cec04 [MSTSC] Fix build
svn path=/trunk/; revision=74557
2017-05-16 17:03:20 +00:00
Peter Hater e4bc2f39da [MSTSC] Bring MSTSC closer to latest rdesktop (1.83) CORE-13258
svn path=/trunk/; revision=74556
2017-05-16 16:37:29 +00:00
Eric Kohl 4021832267 [INTL]
Advanced page: Show code pages again.
- Use SetupFindFirstLine and SetupFindNextLine to enumerate all code pages.
- Use heap memory functions instead of global memory functions.
- Get rid of TCHAR.
- Rename LPCPAGE to PCPAGE.
- Hack: Do not fail if EnumSystemCodePages returns FALSE. 

svn path=/trunk/; revision=74555
2017-05-15 20:02:48 +00:00
Giannis Adamopoulos 6ac34f176c [UXTHEME] -ThemeDrawCaptionText: Try to avoid a heap allocation when getting the window caption.
svn path=/trunk/; revision=74552
2017-05-15 16:05:14 +00:00
Giannis Adamopoulos 98917d7d98 [UXTHEME] -Simplify ThemeDrawCaptionText.
svn path=/trunk/; revision=74551
2017-05-15 15:34:43 +00:00
Alex Ionescu ba88179c67 BL Library now works 100% in paging, protected mode. A picture is worth a thousand commits: http://i.imgur.com/Zx2nQ6x.jpg
[BOOTLIB]: Add support for protocol open/close/lookup while paging and protected mode is enabled.
[BOOTLIB]: Implement support for dozens of UEFI functions while under protected mode.
[BOOTLIB]: Fix bugs in existing UEFI functions which were switching to _protected_ mode instead of _real mode_ before making the UEFI call.
[BOOTLIB]: Free dynamic descriptor in MmMdFreeDescriptor.
[BOOTLIB]: Implement BlHtDelete.
[BOOTLIB]: Implement re-initialize-all path in DsppInitialize.
[BOOTLIB]: Fix small bug in BlDisplayInvalidateOemBitmap
[BOOTLIB]: Fix bigger bug in BlDisplayGetOemBitmap :)

svn path=/trunk/; revision=74546
2017-05-15 01:38:49 +00:00