reactos.git
3 years ago[RDBSS]
Pierre Schweitzer [Sat, 27 May 2017 20:20:27 +0000 (20:20 +0000)]
[RDBSS]
Properly initialize pRdbssScavenger in RxDeviceObject to avoid NULL-ptr deref

CORE-11327

svn path=/trunk/; revision=74686

3 years ago[RXCE]
Pierre Schweitzer [Sat, 27 May 2017 17:41:58 +0000 (17:41 +0000)]
[RXCE]
Make RxpTrackDereference()/RxpTrackReference() when they're noop.

CORE-11327

svn path=/trunk/; revision=74684

3 years ago[RDBSS]
Pierre Schweitzer [Sat, 27 May 2017 17:29:11 +0000 (17:29 +0000)]
[RDBSS]
[RXCE]
Try to make use of wrapper more 'properly'. Now, we use wrappers for ASSERT and memory management.
This allows us to allocate memory with low priority (which isn't supported by ReactOS yet :-().

Note that we go a bit farther than MS: we also define RxFreePoolWithTag() and make use of it.
This should make Thomas happy :-)

CORE-11327

svn path=/trunk/; revision=74683

3 years ago[RXCE]
Pierre Schweitzer [Sat, 27 May 2017 16:50:29 +0000 (16:50 +0000)]
[RXCE]
Implement FCB refcounting

CORE-11327

svn path=/trunk/; revision=74682

3 years ago[RXCE]
Pierre Schweitzer [Sat, 27 May 2017 12:34:38 +0000 (12:34 +0000)]
[RXCE]
Implement operation verification, this is notably based on FatVerifyOperationIsLegal.

CORE-11327

svn path=/trunk/; revision=74681

3 years ago[EXPLORER] -Make the taskbar grip get its size from the theme. This fixes one of...
Giannis Adamopoulos [Sat, 27 May 2017 10:44:44 +0000 (10:44 +0000)]
[EXPLORER] -Make the taskbar grip get its size from the theme. This fixes one of the last theme related problems in explorer itself. Also simplify some theme drawing code.

svn path=/trunk/; revision=74680

3 years ago[SYSSETUP][UNATTENDED] Allow changing the resolution automatically. CORE-13315
Mark Jansen [Sat, 27 May 2017 09:37:16 +0000 (09:37 +0000)]
[SYSSETUP][UNATTENDED] Allow changing the resolution automatically. CORE-13315

svn path=/trunk/; revision=74679

3 years ago[RXCE]
Pierre Schweitzer [Sat, 27 May 2017 09:36:42 +0000 (09:36 +0000)]
[RXCE]
- Make RxpUndoScavengerFinalizationMarking() more smart: only warn about unimplemented if there's scavenger mark
- Implement FCB operations (release/acquire) tracker

CORE-11327

svn path=/trunk/; revision=74678

3 years ago[EXPLORER] -Reload the theme data only when the orientation changes (we ended up...
Giannis Adamopoulos [Sat, 27 May 2017 09:09:01 +0000 (09:09 +0000)]
[EXPLORER] -Reload the theme data only when the orientation changes (we ended up reloading it every few seconds).

svn path=/trunk/; revision=74677

3 years ago[RXCE]
Pierre Schweitzer [Sat, 27 May 2017 08:39:42 +0000 (08:39 +0000)]
[RXCE]
Implement reference tracing

CORE-11327

svn path=/trunk/; revision=74676

3 years ago[RDBSS]
Pierre Schweitzer [Fri, 26 May 2017 20:52:18 +0000 (20:52 +0000)]
[RDBSS]
[RXCE]
[DDK]
Add an initial implementation of the RXCE and RDBSS libraries that are used to implement mini-redirectors
The associated headers are also added to DDK

The implementation is partial (really!) and is only working for read-only operations.

It leaks memory as hell (no refcounting implemented) and thus, objects freeing is not implemented.

It was tested with NFS41 driver. With such RDBSS, it's possible for the driver to mount a remote share, to list
files, to query their properties, to query volume properties, and finally to read files (with some corruption under
specific conditions).

Please refrain from committing in this (especially for modifying whitespaces or fixing comments...), this is still WIP
and under development, it would mess with my local changes!

In itself, it doesn't bring anything to ReactOS yet, as no mini redirector is available in ReactOS source tree.
This may come later on with NFS41.

More to follow...

CORE-11327

svn path=/trunk/; revision=74674

3 years ago[MSAFD] Don't update shared state on close if we still have active references to...
Peter Hater [Fri, 26 May 2017 15:27:45 +0000 (15:27 +0000)]
[MSAFD] Don't update shared state on close if we still have active references to the socket. Checked also by ws2_32:close API test CORE-12029

svn path=/trunk/; revision=74673

3 years ago[WS2_32_APITESTS] Add close tests ROSTESTS-279
Peter Hater [Fri, 26 May 2017 14:02:25 +0000 (14:02 +0000)]
[WS2_32_APITESTS] Add close tests ROSTESTS-279

svn path=/trunk/; revision=74672

3 years ago[WS2_32_APITESTS] Fix broadcast test ROSTESTS-278
Peter Hater [Fri, 26 May 2017 14:00:47 +0000 (14:00 +0000)]
[WS2_32_APITESTS] Fix broadcast test ROSTESTS-278

svn path=/trunk/; revision=74671

3 years ago[WS2_32] Revert r74669
Peter Hater [Fri, 26 May 2017 13:44:01 +0000 (13:44 +0000)]
[WS2_32] Revert r74669

svn path=/trunk/; revision=74670

3 years ago[WS2_32] Set last error on exit on some functions
Peter Hater [Fri, 26 May 2017 11:51:33 +0000 (11:51 +0000)]
[WS2_32] Set last error on exit on some functions

svn path=/trunk/; revision=74669

3 years ago[MSAFD] Add some parameters check for WSPBind. Inspired by results of bind test
Peter Hater [Fri, 26 May 2017 10:32:01 +0000 (10:32 +0000)]
[MSAFD] Add some parameters check for WSPBind. Inspired by results of bind test

svn path=/trunk/; revision=74668

3 years ago[WS2_32_APITESTS] Fix broadcast test ROSTESTS-278
Peter Hater [Fri, 26 May 2017 10:31:50 +0000 (10:31 +0000)]
[WS2_32_APITESTS] Fix broadcast test ROSTESTS-278

svn path=/trunk/; revision=74667

3 years ago[WS2_32_APITESTS] Add rebind and bind to broadcast tests ROSTESTS-278
Peter Hater [Fri, 26 May 2017 09:02:08 +0000 (09:02 +0000)]
[WS2_32_APITESTS] Add rebind and bind to broadcast tests ROSTESTS-278

svn path=/trunk/; revision=74666

3 years ago[GDIPLUS]
Pierre Schweitzer [Fri, 26 May 2017 08:31:10 +0000 (08:31 +0000)]
[GDIPLUS]
Import Wine commit (by Vincent Povirk):
b8a8e1bde9382897927945ec0b58b8a2fcfcfe59, Check SHADEBLENDCAPS only for printer devices.

In short, this avoids black boxes in GOG setup. This may help other software having rendering issues due to alpha layer.

svn path=/trunk/; revision=74665

3 years ago[WS2_32_APITESTS] Fix GCC build ROSTESTS-278
Peter Hater [Fri, 26 May 2017 07:11:13 +0000 (07:11 +0000)]
[WS2_32_APITESTS] Fix GCC build ROSTESTS-278

svn path=/trunk/; revision=74664

3 years ago[WS2_32_APITESTS] Improve bind test output ROSTESTS-278
Peter Hater [Fri, 26 May 2017 07:08:06 +0000 (07:08 +0000)]
[WS2_32_APITESTS] Improve bind test output ROSTESTS-278

svn path=/trunk/; revision=74663

3 years ago[INCLUDEs:ARC]: Fix some structure members of LOADER_PARAMETER_EXTENSION and SETUP_LO...
Hermès Bélusca-Maïto [Fri, 26 May 2017 02:15:54 +0000 (02:15 +0000)]
[INCLUDEs:ARC]: Fix some structure members of LOADER_PARAMETER_EXTENSION and SETUP_LOADER_BLOCK. Add some documentation & links regarded these structures to document which members change/disappear starting some NT version.
Also, turn some Win32 LPSTR into NT' PSTR or PCHAR types.

svn path=/trunk/; revision=74662

3 years ago[ACPICA]
Thomas Faber [Thu, 25 May 2017 19:39:38 +0000 (19:39 +0000)]
[ACPICA]
- Use the compiler's native 64 bit math support instead of emulating it with 32 bit operations.
CORE-13316

svn path=/trunk/; revision=74658

3 years ago[SYSDM]: Fix a SendDlgItemMessage(LB_GETITEMDATA) call that missed the index of the...
Hermès Bélusca-Maïto [Thu, 25 May 2017 18:36:45 +0000 (18:36 +0000)]
[SYSDM]: Fix a SendDlgItemMessage(LB_GETITEMDATA) call that missed the index of the list item being selected. This fixes setting the page file for the actual selected disk.
Caught by "cagey45" contributor on the forums: https://reactos.org/forum/viewtopic.php?f=9&t=16439 ; see also CORE-1151.

svn path=/trunk/; revision=74657

3 years ago[ACPICA]
Thomas Faber [Thu, 25 May 2017 18:27:30 +0000 (18:27 +0000)]
[ACPICA]
- Fix our broken support for the Windows-GCC configuration (again) by providing proper implementations of ACPI_DIV_64_BY_32 and ACPI_SHIFT_RIGHT_64.
CORE-13316 #resolve

svn path=/trunk/; revision=74656

3 years ago[WS2_32_APITESTS] Set the size of addr when calling getsockname ROSTESTS-278
Peter Hater [Thu, 25 May 2017 15:57:38 +0000 (15:57 +0000)]
[WS2_32_APITESTS] Set the size of addr when calling getsockname ROSTESTS-278

svn path=/trunk/; revision=74655

3 years ago[BOOTDATA]
Eric Kohl [Thu, 25 May 2017 15:53:10 +0000 (15:53 +0000)]
[BOOTDATA]
- Sort keyboard layouts and make them translatable.
- Remove quotation marks from service display names and descriptions and fix a typo.
CORE-11885

svn path=/trunk/; revision=74654

3 years ago[WS2_32_APITESTS] Remove compile warning disable for GCC. Thanks Thomas. ROSTESTS-278
Peter Hater [Thu, 25 May 2017 15:12:40 +0000 (15:12 +0000)]
[WS2_32_APITESTS] Remove compile warning disable for GCC. Thanks Thomas. ROSTESTS-278

svn path=/trunk/; revision=74653

3 years ago[WS2_32] Dereference socket in case of parameter check failure. Thanks Thomas. ROSTES...
Peter Hater [Thu, 25 May 2017 14:51:16 +0000 (14:51 +0000)]
[WS2_32] Dereference socket in case of parameter check failure. Thanks Thomas. ROSTEST-278

svn path=/trunk/; revision=74652

3 years ago[WS2_32_APITESTS] Add some bind API tests
Peter Hater [Thu, 25 May 2017 14:43:57 +0000 (14:43 +0000)]
[WS2_32_APITESTS] Add some bind API tests

svn path=/trunk/; revision=74651

3 years ago[WS2_32] Add some parameters check for getsockname. Use value size for size check...
Peter Hater [Thu, 25 May 2017 14:42:24 +0000 (14:42 +0000)]
[WS2_32] Add some parameters check for getsockname. Use value size for size check instead of type in bind. ROSTEST-278

svn path=/trunk/; revision=74650

3 years ago[WS2_32] Perform parameters check on bind. ROSTESTS-278
Peter Hater [Thu, 25 May 2017 12:34:33 +0000 (12:34 +0000)]
[WS2_32] Perform parameters check on bind. ROSTESTS-278

svn path=/trunk/; revision=74649

3 years agoCode styling:
Hermès Bélusca-Maïto [Wed, 24 May 2017 23:52:56 +0000 (23:52 +0000)]
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

3 years ago[FSLIB]: Minor fixes:
Hermès Bélusca-Maïto [Wed, 24 May 2017 23:32:46 +0000 (23:32 +0000)]
[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

3 years ago[MSPAINT]
Benedikt Freisen [Wed, 24 May 2017 19:31:43 +0000 (19:31 +0000)]
[MSPAINT]
- Determine and adapt to actual status bar height instead of assuming a fixed height.  This improves theme support.

svn path=/trunk/; revision=74642

3 years ago[WIN32l:NTGDI] -Check the return value IntGetOutlineTextMetrics and stop using garbag...
Giannis Adamopoulos [Tue, 23 May 2017 09:40:07 +0000 (09:40 +0000)]
[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

3 years ago[WIN32K] -Simplify the parameters passed to GetFontPenalty and FindBestFontFromList...
Giannis Adamopoulos [Mon, 22 May 2017 18:17:49 +0000 (18:17 +0000)]
[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

3 years ago[CMLIB]
Thomas Faber [Mon, 22 May 2017 13:48:11 +0000 (13:48 +0000)]
[CMLIB]
- Fix an assert that only works by chance

svn path=/trunk/; revision=74628

3 years ago[NTOS:MM]
Thomas Faber [Mon, 22 May 2017 13:37:44 +0000 (13:37 +0000)]
[NTOS:MM]
- In MmDumpArmPfnDatabase, actually print all usage buckets to provide a complete and verifiable view of the database

svn path=/trunk/; revision=74627

3 years ago[NTOS:MM]
Thomas Faber [Mon, 22 May 2017 13:30:44 +0000 (13:30 +0000)]
[NTOS:MM]
- Make PFN tracing work... somewhat

svn path=/trunk/; revision=74626

3 years ago[CALC]
Thomas Faber [Mon, 22 May 2017 13:13:45 +0000 (13:13 +0000)]
[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

3 years ago[HHPCOMP]
Thomas Faber [Mon, 22 May 2017 12:50:08 +0000 (12:50 +0000)]
[HHPCOMP]
- Avoid casting pointers to 'unsigned long'

svn path=/trunk/; revision=74624

3 years ago[HAL]
Thomas Faber [Mon, 22 May 2017 12:20:31 +0000 (12:20 +0000)]
[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

3 years ago[WIN32K] -Reduce the ridiculous number of string allocations done by FindBestFontFrom...
Giannis Adamopoulos [Sun, 21 May 2017 16:47:07 +0000 (16:47 +0000)]
[WIN32K] -Reduce the ridiculous number of string allocations done by FindBestFontFromList and GetFontPenalty. CORE-13274

svn path=/trunk/; revision=74613

3 years ago[WIN32SS] Improve IntGetFontLocalizedName by less strict matching on language id...
Mark Jansen [Sun, 21 May 2017 12:24:57 +0000 (12:24 +0000)]
[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

3 years ago[KERNEL32] Format the stack trace generated on an unhandled exception so that log2lin...
Mark Jansen [Sun, 21 May 2017 11:31:56 +0000 (11:31 +0000)]
[KERNEL32] Format the stack trace generated on an unhandled exception so that log2lines can parse it. CORE-13232 #resolve

svn path=/trunk/; revision=74611

3 years ago[SHIMS] Add IgnoreDebugOutput shim CORE-10369
Mark Jansen [Sat, 20 May 2017 20:22:25 +0000 (20:22 +0000)]
[SHIMS] Add IgnoreDebugOutput shim CORE-10369

svn path=/trunk/; revision=74610

3 years ago[BOOTDATA] Create an empty HKLM\...\AppCompatFlags\Layers key to silence logging.
Mark Jansen [Sat, 20 May 2017 20:06:46 +0000 (20:06 +0000)]
[BOOTDATA] Create an empty HKLM\...\AppCompatFlags\Layers key to silence logging.

svn path=/trunk/; revision=74609

3 years ago[SLAYER] Remove the shell extension. CORE-13111 #resolve
Mark Jansen [Sat, 20 May 2017 19:58:04 +0000 (19:58 +0000)]
[SLAYER] Remove the shell extension. CORE-13111 #resolve

svn path=/trunk/; revision=74608

3 years ago[WIN32SS] Reduce the amount of calls to IntGetFontLocalizedName, since this was ident...
Mark Jansen [Sat, 20 May 2017 18:59:00 +0000 (18:59 +0000)]
[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

3 years ago[INF]
Eric Kohl [Sat, 20 May 2017 13:46:48 +0000 (13:46 +0000)]
[INF]
Make code page and language group names translatable.
CORE-11885

svn path=/trunk/; revision=74606

3 years ago[WIN32K:NTGDI]
Thomas Faber [Sat, 20 May 2017 12:11:08 +0000 (12:11 +0000)]
[WIN32K:NTGDI]
- Simplify list walk in FindBestFontFromList

svn path=/trunk/; revision=74605

3 years ago[INF]
Eric Kohl [Sat, 20 May 2017 09:53:15 +0000 (09:53 +0000)]
[INF]
Make language (locale) names translatable.
CORE-11885

svn path=/trunk/; revision=74604

3 years ago[HAL]
Thomas Faber [Fri, 19 May 2017 21:37:50 +0000 (21:37 +0000)]
[HAL]
- Fix a broken DPRINT

svn path=/trunk/; revision=74603

3 years ago[GDI32_APITEST] Improve GetFontResourceInfoW tests. Patch by Katayama Hirofumi MZ...
Mark Jansen [Fri, 19 May 2017 20:26:49 +0000 (20:26 +0000)]
[GDI32_APITEST] Improve GetFontResourceInfoW tests. Patch by Katayama Hirofumi MZ. ROSTESTS-269 #resolve #comment Thanks!

svn path=/trunk/; revision=74602

3 years ago[APPHELP] Initial implementation of ApphelpCheckRunAppEx. CORE-10368
Mark Jansen [Fri, 19 May 2017 20:13:08 +0000 (20:13 +0000)]
[APPHELP] Initial implementation of ApphelpCheckRunAppEx. CORE-10368

svn path=/trunk/; revision=74601

3 years ago[NTDLL:LDR]
Thomas Faber [Fri, 19 May 2017 19:11:14 +0000 (19:11 +0000)]
[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

3 years ago[RTL]
Thomas Faber [Fri, 19 May 2017 18:22:46 +0000 (18:22 +0000)]
[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

3 years ago[NTDLL_APITEST]
Thomas Faber [Fri, 19 May 2017 18:05:12 +0000 (18:05 +0000)]
[NTDLL_APITEST]
- Add a test for RTL handle tables
CORE-13271

svn path=/trunk/; revision=74598

3 years ago[SCSIPORT]: Fixes:
Hermès Bélusca-Maïto [Fri, 19 May 2017 16:14:10 +0000 (16:14 +0000)]
[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

3 years ago[SCSIPORT]: Code formatting only.
Hermès Bélusca-Maïto [Fri, 19 May 2017 16:08:40 +0000 (16:08 +0000)]
[SCSIPORT]: Code formatting only.

svn path=/trunk/; revision=74596

3 years ago[SCSIPORT]: Fixes + documentation:
Hermès Bélusca-Maïto [Fri, 19 May 2017 15:02:02 +0000 (15:02 +0000)]
[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

3 years ago[SCSIPORT]: Code formatting in the functions I'm going to touch next (in addition...
Hermès Bélusca-Maïto [Fri, 19 May 2017 14:49:23 +0000 (14:49 +0000)]
[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

3 years ago[UXTHEME] -Use and RTL handle table for HTHEME handles. In this way we can ensure...
Giannis Adamopoulos [Fri, 19 May 2017 11:02:44 +0000 (11:02 +0000)]
[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

3 years ago[UXTHEME] Greatly reduce the number of times we open the theme data for the non clien...
Giannis Adamopoulos [Fri, 19 May 2017 10:01:50 +0000 (10:01 +0000)]
[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

3 years agoForgot to add the cmake changes
Ged Murphy [Fri, 19 May 2017 09:46:41 +0000 (09:46 +0000)]
Forgot to add the cmake changes

svn path=/trunk/; revision=74591

3 years ago[FLTMGR]
Ged Murphy [Fri, 19 May 2017 09:42:00 +0000 (09:42 +0000)]
[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

3 years ago[FLTMGR]
Ged Murphy [Fri, 19 May 2017 09:37:38 +0000 (09:37 +0000)]
[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

3 years ago[FLTMGR}
Ged Murphy [Fri, 19 May 2017 09:15:35 +0000 (09:15 +0000)]
[FLTMGR}
- Implement FltAcquirePushLockExclusive, FltAcquirePushLockShared and FltReleasePushLock. Lifted from ntos' internal pushlock routines.
- Implement FltpObjectPointerReference and partially implement FltpObjectPointerDerference

svn path=/trunk/; revision=74588

3 years ago[UXTHEME] -Rename WND_CONTEXT to WND_DATA to avoid confusion with the DRAW_CONTEXT...
Giannis Adamopoulos [Fri, 19 May 2017 08:45:49 +0000 (08:45 +0000)]
[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

3 years ago[FLTMGR]
Ged Murphy [Fri, 19 May 2017 08:21:41 +0000 (08:21 +0000)]
[FLTMGR]
- Add the missing IOCTLs that were added to fltlib

svn path=/trunk/; revision=74586

3 years ago[NTOS]: Use the correct access rights for ZwOpenDirectoryObject call.
Hermès Bélusca-Maïto [Thu, 18 May 2017 23:46:44 +0000 (23:46 +0000)]
[NTOS]: Use the correct access rights for ZwOpenDirectoryObject call.

svn path=/trunk/; revision=74585

3 years ago[NTOS]: Close an opened handle after usage.
Hermès Bélusca-Maïto [Thu, 18 May 2017 23:32:00 +0000 (23:32 +0000)]
[NTOS]: Close an opened handle after usage.

svn path=/trunk/; revision=74584

3 years ago[FLTLIB]
Ged Murphy [Thu, 18 May 2017 22:06:49 +0000 (22:06 +0000)]
[FLTLIB]
- Implement FilterConnectCommunicationPort
- Add the remaining IOCTLs fltlib sends to the fltmgr

svn path=/trunk/; revision=74583

3 years ago[INTL]
Eric Kohl [Thu, 18 May 2017 21:56:24 +0000 (21:56 +0000)]
[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

3 years ago[VIDEOPRT]
Thomas Faber [Thu, 18 May 2017 21:29:24 +0000 (21:29 +0000)]
[VIDEOPRT]
- Guard Ke386CallBios calls against concurrent execution.
CORE-13214

svn path=/trunk/; revision=74581

3 years ago[UXTHEME] -Remove a debug print that was never meant to be committed.
Giannis Adamopoulos [Thu, 18 May 2017 17:53:33 +0000 (17:53 +0000)]
[UXTHEME] -Remove a debug print that was never meant to be committed.

svn path=/trunk/; revision=74580

3 years ago[UXTHEME] -Apply some suggestions by Thomas.
Giannis Adamopoulos [Thu, 18 May 2017 17:15:22 +0000 (17:15 +0000)]
[UXTHEME] -Apply some suggestions by Thomas.

svn path=/trunk/; revision=74579

3 years ago[MSTSC] Addendum to r74577. CORE-13263
Peter Hater [Thu, 18 May 2017 08:57:26 +0000 (08:57 +0000)]
[MSTSC] Addendum to r74577. CORE-13263

svn path=/trunk/; revision=74578

3 years ago[MSTSC] Fix BSOD when we can't acquire context from CryptoAPI. CORE-13263 #resolve
Peter Hater [Thu, 18 May 2017 08:47:30 +0000 (08:47 +0000)]
[MSTSC] Fix BSOD when we can't acquire context from CryptoAPI. CORE-13263 #resolve

svn path=/trunk/; revision=74577

3 years ago[BOOTLIB]
Thomas Faber [Wed, 17 May 2017 16:06:24 +0000 (16:06 +0000)]
[BOOTLIB]
- Avoid uninitialized ComputeHash variable in BlImgLoadImageWithProgress2
CORE-13265 #resolve

svn path=/trunk/; revision=74571

3 years ago[MSTSC] Fix parsing of settings. Patch by Stas'M. Thanks. CORE-13223
Peter Hater [Wed, 17 May 2017 10:53:54 +0000 (10:53 +0000)]
[MSTSC] Fix parsing of settings. Patch by Stas'M. Thanks. CORE-13223

svn path=/trunk/; revision=74568

3 years ago[MSTSC] Send computer name as client name when available. Patch by Stas'M. Thanks...
Peter Hater [Wed, 17 May 2017 10:47:39 +0000 (10:47 +0000)]
[MSTSC] Send computer name as client name when available. Patch by Stas'M. Thanks. CORE-13237

svn path=/trunk/; revision=74567

3 years ago[FORMAT]: Use a better variable type for the media flag.
Hermès Bélusca-Maïto [Tue, 16 May 2017 20:17:18 +0000 (20:17 +0000)]
[FORMAT]: Use a better variable type for the media flag.

svn path=/trunk/; revision=74566

3 years ago[SHELL32]: Fix a FIXME: Recognize the media type for formatting, by calling GetDriveT...
Hermès Bélusca-Maïto [Tue, 16 May 2017 20:16:43 +0000 (20:16 +0000)]
[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

3 years ago[MSTSC] Fix unwanted change
Peter Hater [Tue, 16 May 2017 18:01:31 +0000 (18:01 +0000)]
[MSTSC] Fix unwanted change

svn path=/trunk/; revision=74564

3 years ago[MSTSC] Fix adding module name and IP to logon packet. Patch by Stas'M. Minor modific...
Peter Hater [Tue, 16 May 2017 17:56:51 +0000 (17:56 +0000)]
[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

3 years agoAddendum to r74559: specify 'void' function aka. doesn't take any parameter. In C...
Hermès Bélusca-Maïto [Tue, 16 May 2017 17:45:52 +0000 (17:45 +0000)]
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

3 years ago[MSTSC] Enable taking settings folder using SHGetFolderLocation instead of using...
Peter Hater [Tue, 16 May 2017 17:37:48 +0000 (17:37 +0000)]
[MSTSC] Enable taking settings folder using SHGetFolderLocation instead of using "c:\". Patch by Stas'M. Thanks CORE-13225

svn path=/trunk/; revision=74561

3 years ago[MSTSC] Fix image corruption in 24bpp mode CORE-13224
Peter Hater [Tue, 16 May 2017 17:32:19 +0000 (17:32 +0000)]
[MSTSC] Fix image corruption in 24bpp mode CORE-13224

svn path=/trunk/; revision=74560

3 years ago[ACPI] Implement creating volatile registry keys for ACPI tables CORE-12942
Peter Hater [Tue, 16 May 2017 17:26:12 +0000 (17:26 +0000)]
[ACPI] Implement creating volatile registry keys for ACPI tables CORE-12942

svn path=/trunk/; revision=74559

3 years ago[MSTSC] Switch most MSTSC from internal "ssl" functions to CryptoAPI and implement...
Peter Hater [Tue, 16 May 2017 17:20:56 +0000 (17:20 +0000)]
[MSTSC] Switch most MSTSC from internal "ssl" functions to CryptoAPI and implement/enable certificate functions CORE-13259

svn path=/trunk/; revision=74558

3 years ago[MSTSC] Fix build
Peter Hater [Tue, 16 May 2017 17:03:20 +0000 (17:03 +0000)]
[MSTSC] Fix build

svn path=/trunk/; revision=74557

3 years ago[MSTSC] Bring MSTSC closer to latest rdesktop (1.83) CORE-13258
Peter Hater [Tue, 16 May 2017 16:37:29 +0000 (16:37 +0000)]
[MSTSC] Bring MSTSC closer to latest rdesktop (1.83) CORE-13258

svn path=/trunk/; revision=74556

3 years ago[INTL]
Eric Kohl [Mon, 15 May 2017 20:02:48 +0000 (20:02 +0000)]
[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

3 years ago[UXTHEME] -ThemeDrawCaptionText: Try to avoid a heap allocation when getting the...
Giannis Adamopoulos [Mon, 15 May 2017 16:05:14 +0000 (16:05 +0000)]
[UXTHEME] -ThemeDrawCaptionText: Try to avoid a heap allocation when getting the window caption.

svn path=/trunk/; revision=74552

3 years ago[UXTHEME] -Simplify ThemeDrawCaptionText.
Giannis Adamopoulos [Mon, 15 May 2017 15:34:43 +0000 (15:34 +0000)]
[UXTHEME] -Simplify ThemeDrawCaptionText.

svn path=/trunk/; revision=74551

3 years agoBL Library now works 100% in paging, protected mode. A picture is worth a thousand...
Alex Ionescu [Mon, 15 May 2017 01:38:49 +0000 (01:38 +0000)]
BL Library now works 100% in paging, protected mode. A picture is worth a thousand commits: 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

3 years agoVirtual memory works baby! Virtual Heap at 0x80000000 fully enabled. Next up, EFI...
Alex Ionescu [Sun, 14 May 2017 16:07:21 +0000 (16:07 +0000)]
Virtual memory works baby! Virtual Heap at 0x80000000 fully enabled. Next up, EFI Protocols with Paging Enabled.
[BOOTLIB]: Fix dumb bug in BlMmIsTranslationEnabled which would always return FALSE.
[BOOTLIB]: Fix dumber bug in MmDefInitializeTranslation which was freeing the page directories and self-map pages even in the success path. Causing us to zero out paging structures...
[BOOTLIB]: Cleanup and extend MmMdDbgDumpList for internal use, and add MmMdListPointerToName as another debug function.
[BOOTLIB]: Add a few more checkpoints in unimplemented paths.

svn path=/trunk/; revision=74545