Commit graph

68660 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto 7ee1b6a5f5 Code styling:
[NDK]: Make a #define value look less "magical".
[ARC]: Write "BaseDllName" using the regular case used in other parts of ReactOS' code.

svn path=/trunk/; revision=74644
2017-05-24 23:52:56 +00:00
Hermès Bélusca-Maïto d452b9b684 [FSLIB]: Minor fixes:
- Stub and export VfatxChkdsk();
- Sync and fix the file code headers;
- In the libs, use NTAPI instead of WINAPI;
- Use 4-space indentation (instead of tabs).

svn path=/trunk/; revision=74643
2017-05-24 23:32:46 +00:00
Benedikt Freisen bc7078eaf3 [MSPAINT]
- Determine and adapt to actual status bar height instead of assuming a fixed height.  This improves theme support.

svn path=/trunk/; revision=74642
2017-05-24 19:31:43 +00:00
Giannis Adamopoulos c04750f246 [WIN32l:NTGDI] -Check the return value IntGetOutlineTextMetrics and stop using garbage from the pool in case of error. CORE-13089, CORE-12752
svn path=/trunk/; revision=74633
2017-05-23 09:40:07 +00:00
Giannis Adamopoulos d7e4f26d1a [WIN32K] -Simplify the parameters passed to GetFontPenalty and FindBestFontFromList. Make SubstituteFontRecurse update a LOGFONT and get rid of some needless allocations.
svn path=/trunk/; revision=74630
2017-05-22 18:17:49 +00:00
Thomas Faber bb1fb70eb3 [CMLIB]
- Fix an assert that only works by chance

svn path=/trunk/; revision=74628
2017-05-22 13:48:11 +00:00
Thomas Faber ea547f81f4 [NTOS:MM]
- In MmDumpArmPfnDatabase, actually print all usage buckets to provide a complete and verifiable view of the database

svn path=/trunk/; revision=74627
2017-05-22 13:37:44 +00:00
Thomas Faber d855861c41 [NTOS:MM]
- Make PFN tracing work... somewhat

svn path=/trunk/; revision=74626
2017-05-22 13:30:44 +00:00
Thomas Faber b0da8bcfdf [CALC]
- Remove Czech koruna from currency conversions... their exchange rate is not a constant
- While here, add new Euro currencies, and improve the accuracy of some conversion rates

svn path=/trunk/; revision=74625
2017-05-22 13:13:45 +00:00
Thomas Faber 88a76ad2f0 [HHPCOMP]
- Avoid casting pointers to 'unsigned long'

svn path=/trunk/; revision=74624
2017-05-22 12:50:08 +00:00
Thomas Faber 945dd20eae [HAL]
- Correctly prepare the I/O port map for V86 mode by making HalpSavedIoMap actually point to it instead of to the parent structure. Fixes boot with video BIOS code that relies on I/O ports FF00 through FFFF.
CORE-13306 #resolve

svn path=/trunk/; revision=74623
2017-05-22 12:20:31 +00:00
Giannis Adamopoulos 7fe1fd0766 [WIN32K] -Reduce the ridiculous number of string allocations done by FindBestFontFromList and GetFontPenalty. CORE-13274
svn path=/trunk/; revision=74613
2017-05-21 16:47:07 +00:00
Mark Jansen 275c4e77d8 [WIN32SS] Improve IntGetFontLocalizedName by less strict matching on language id's. Patch by Katayama Hirofumi MZ. CORE-13239 #comment Thanks!
svn path=/trunk/; revision=74612
2017-05-21 12:24:57 +00:00
Mark Jansen 562561d422 [KERNEL32] Format the stack trace generated on an unhandled exception so that log2lines can parse it. CORE-13232 #resolve
svn path=/trunk/; revision=74611
2017-05-21 11:31:56 +00:00
Mark Jansen 9c22d4b0b8 [SHIMS] Add IgnoreDebugOutput shim CORE-10369
svn path=/trunk/; revision=74610
2017-05-20 20:22:25 +00:00
Mark Jansen 817f78086f [BOOTDATA] Create an empty HKLM\...\AppCompatFlags\Layers key to silence logging.
svn path=/trunk/; revision=74609
2017-05-20 20:06:46 +00:00
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