Commit graph

65712 commits

Author SHA1 Message Date
Pierre Schweitzer f0a44d618b [EXT2]
Upgrade the driver to release 0.66.

CORE-11295 #resolve #comment Committed in r71411

svn path=/trunk/; revision=71411
2016-05-26 17:10:02 +00:00
Pierre Schweitzer e6b12e4774 [NTOSKRNL]
Cherry pick r71407 by Trevor Thompson:
- Rewrote FsRtlGetNextBaseMcbEntry(), FsRtlLookupBaseMcbEntry(), and FsRtlNumberOfRunsInBaseMcb() using simpler logic.

This finally fixes broken MCB handling in ReactOS and allows FSDs relying on MCB to properly work in ReactOS!

CORE-11002 #resolve #comment Fixed in r71409

svn path=/trunk/; revision=71409
2016-05-26 16:35:45 +00:00
Eric Kohl a5a8ffb511 [SERVMAN]
GetServiceConfig: Use only the required access rights. Makes servman usable for non-admin users.

svn path=/trunk/; revision=71408
2016-05-26 15:48:46 +00:00
Pierre Schweitzer 0b68260492 [NTOSKRNL]
Rework a bit the way mapping and pinning is working in ReactOS Cc. This is still wrong regarding the way Windows does it, but at least, it offers us more features for a more compatible behavior exposed to FSDs.
First of all, reintroduce the mutex used to lock VACB. Moving there to a resource wasn't enough to work address the issue. This reverts r71387.
Introduce the resource in the BCB, as it should be. This resource will be unused until pinning occurs. In such case, the VACB mutex gets unused so that we can get the BCB released by another thread without deadlocking the associated VACB.
The VACB can be locked again after the last unpinning operation.
Basically, that fixes drivers than pin in a thread and unpin in another thread, after having changed BCB owner. Until now, it would just have deadlock or crashed ReactOS.
The implementation of this preserves hacks and stubplementations already in place in Cc (let's say it's another hack on top of hacks).
It was successfully tested with Ext2Fsd 0.66.

Short summary:
- Replace the VACB resource by a mutex
- Introduce a resource in the BCB
- Fixed CcPinRead() implementation so that it respects PIN_EXCLUSIVE flag
- Implement CcUnpinDataForThread() so that it can unpin data which ownership was changed
- Implement CcSetBcbOwnerPointer() so that it properly set BCB owner and allows unpinning with CcUnpinDataForThread()

CORE-11310 #resolve #comment Committed in r71406

svn path=/trunk/; revision=71406
2016-05-26 12:09:05 +00:00
Pierre Schweitzer c43741c804 [NTOSKRNL]
On CcInitializeCacheMap() call, keep track of the PinAccess value so that we can later check it on pinning.
It shouldn't be set to FALSE when the user attempts to perform pinning

CORE-11310

svn path=/trunk/; revision=71404
2016-05-26 11:50:42 +00:00
Hermès Bélusca-Maïto 3caf22d458 [USER32]: Remove a leftover from r59868.
svn path=/trunk/; revision=71403
2016-05-26 00:53:54 +00:00
Hermès Bélusca-Maïto 642c228981 [KERNEL32]: Indentation fix only.
svn path=/trunk/; revision=71402
2016-05-25 20:49:40 +00:00
Mark Jansen bf1990897f [APPHELP_APITEST] Remove some code duplication.
svn path=/trunk/; revision=71400
2016-05-25 17:22:47 +00:00
David Quintana b6bc3df218 [KERNEL32]
* Return TRUE from SetThreadStackGuarantee. Allows .NET 2.0 setup to complete and consequently allows some .net apps to work in ReactOS. Patch by the self-proclaimed Master of The Universe, Samuel Serapión.

svn path=/trunk/; revision=71399
2016-05-25 14:47:02 +00:00
Thomas Faber 412f0d26d0 [NTOS:EX]
- Use the calling thread instead of the passed-in thread to validate APC status in ExReleaseResourceForThreadLite. The latter can be user-set and might not be a KTHREAD at all.
CORE-11315 #resolve

svn path=/trunk/; revision=71398
2016-05-25 10:27:17 +00:00
Hermès Bélusca-Maïto 6305b9d645 [NTDLL]
Add exports for RtlOemStringToUnicodeSize, RtlUnicodeStringToAnsiSize and RtlUnicodeStringToOemSize as redirections to suitable Rtlx*** functions, as done in our ntoskrnl (and as on Windows either).
This should fix MSYS2 start on ReactOS.
CORE-10459 #comment Please retest!

svn path=/trunk/; revision=71397
2016-05-24 19:57:29 +00:00
Mark Jansen eb98416097 [CRT] Partially sync strtoi64 with Wine Staging 1.9.9. Patch by Samuel Serapión CORE-11174 #resolve #comment Thanks!
svn path=/trunk/; revision=71396
2016-05-24 19:27:57 +00:00
Pierre Schweitzer fff779dd5b [KMTESTS]
Add test for ExSetResourceOwnerPointer() and ExReleaseResourceForThreadLite()

CORE-11310

svn path=/trunk/; revision=71395
2016-05-24 08:13:17 +00:00
Eric Kohl 51881431dd [SERVICES]
- RChangeServiceConfigA/W: Modify or delete password secrets.
[ADVAPI32]
- ChangeServiceConfigA, CreateServiceA: Convert passwords to Unicode before passing them to the remote functions.

svn path=/trunk/; revision=71394
2016-05-23 21:48:32 +00:00
Pierre Schweitzer 0977ee2d46 [NTOSKRNL]
Fix misleading comment

svn path=/trunk/; revision=71393
2016-05-23 21:14:49 +00:00
Pierre Schweitzer 990c8c2740 [NTOSKRNL]
In Cc, replace the Vacb mutex by a Bcb resource.
Note that the resource is still placed in the Vacb by it belongs to the Bcb.
This is required to really implement CcSetBcbOwnerPointer().

CORE-11310

svn path=/trunk/; revision=71387
2016-05-23 19:47:39 +00:00
Eric Kohl 197eafa50e [SERVICES]
RCreateServiceW: Store a given password as a secret.

svn path=/trunk/; revision=71386
2016-05-23 15:02:37 +00:00
Eric Kohl 1dc0ccde6a [ADVAPI32]
Implement LogonUserEx[A/W].

svn path=/trunk/; revision=71385
2016-05-23 13:53:24 +00:00
Hermès Bélusca-Maïto dca4fd46af [ADVAPI32]: Implement all the Elf*** event log APIs as wrappers around the corresponding RPC calls, and the Win32 APIs just become calls to the Elf*** APIs.
svn path=/trunk/; revision=71384
2016-05-23 02:03:49 +00:00
Hermès Bélusca-Maïto 4b98341168 [IDL]: Whitespace fixes only.
svn path=/trunk/; revision=71383
2016-05-22 22:20:25 +00:00
Thomas Faber a315554938 [RTL]
- Return the ACE pointer from RtlFirstFreeAce also if it is at the end of the ACL buffer.
CORE-11304 #resolve

svn path=/trunk/; revision=71382
2016-05-22 22:11:54 +00:00
Mark Jansen f03661d8e1 [APPHELP][APPHELP_APITEST] Add more db tests and implement SdbGetDatabaseVersion. CORE-10367
svn path=/trunk/; revision=71381
2016-05-22 20:39:41 +00:00
Mark Jansen a6879a9948 [APPHELP][APPHELP_APITEST] Implement most of sdbread and sdbwrite, mainly the work of Mislav Blaževic, with some small additions from me. CORE-10367
svn path=/trunk/; revision=71380
2016-05-22 20:27:02 +00:00
Thomas Faber 5a7f64ba98 [SETUPAPI]
- Fix Buffer overflow in FixupServiceBinaryPath

svn path=/trunk/; revision=71379
2016-05-22 19:09:49 +00:00
Hermès Bélusca-Maïto 859060f887 [EVENTVWR]
- Fix the flags used in LoadLibraryEx calls for loading DLLs as resource files.
- Use a nice flag (FORMAT_MESSAGE_MAX_WIDTH_MASK) in FormatMessage calls so that no useless extra newlines are appended to the message strings that are recovered.
  This is especially useful when some strings as localized event log names are retrieved to be displayed in the menu (amongst other things)...
  This fixes CORE-8915 and fixes also the presentation of some event descriptions.
- Fix BuildLogList.

svn path=/trunk/; revision=71378
2016-05-22 19:00:55 +00:00
Hermès Bélusca-Maïto 5e80e9c714 [EVENTVWR]
- Set window parent for different MessageBox calls.
- Add a notice in ShowStatusMessageThread concerning a potential bug.
- Rename strings "Save Protocol" into "Save Event Log"; adjust translations in this regard.

svn path=/trunk/; revision=71377
2016-05-22 17:17:33 +00:00
Hermès Bélusca-Maïto bd5fd5d6c0 [EVENTVWR]
- Fix a typo in the "loading, wait" dialog.
- Use a RichEdit control for the detailed event description text, so that we can have for free clickable URLs.
- Use "Courier New" as the font for the event data text, so that we can have finer grained control over the font size...

svn path=/trunk/; revision=71376
2016-05-22 16:19:55 +00:00
Pierre Schweitzer e923b0875b [PSDK]
Define STATUS_FILE_LOCKED_WITH_ONLY_READERS and STATUS_FILE_LOCKED_WITH_WRITERS

CORE-11295

svn path=/trunk/; revision=71375
2016-05-22 13:22:52 +00:00
Eric Kohl aab801e496 [EVENTVWR]
Display event data properly.

svn path=/trunk/; revision=71374
2016-05-22 12:15:30 +00:00
Thomas Faber be92945d81 [SCHANNEL]
- Set received length to zero when the receive result is MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY instead of pretending we got data
CORE-11285 #resolve

svn path=/trunk/; revision=71373
2016-05-22 10:56:22 +00:00
Thomas Faber 88af808d05 [SCHANNEL]
- Correctly check for ROS_SCHAN_IS_BLOCKING
CORE-11285

svn path=/trunk/; revision=71372
2016-05-22 10:53:23 +00:00
Thomas Faber 0a56cd3a03 [UNIATA]
- When handling CD READ_CAPACITY requests in AtapiInterrupt__, fully rewind the DataBuffer instead of relying on the last read length. Fixes crash on first stage boot in KVM.
CORE-11286 #resolve
CORE-11296

svn path=/trunk/; revision=71371
2016-05-22 10:25:24 +00:00
Pierre Schweitzer 02fde17b6f [VFATLIB]
Update the amount of FAT entries taking into account that the first two are reserved and thus not usable.

Patch by Wim Hueskes

CORE-11283 #resolve #comment Committed in r71370, thanks for your patch!

svn path=/trunk/; revision=71370
2016-05-22 07:56:45 +00:00
Pierre Schweitzer 3fa137bf9c [SYSSETUP]
Update acknowledgements regarding imported FSDs in ReactOS.

Thanks Matt Wu and Mark Harmstone for your great work!

svn path=/trunk/; revision=71369
2016-05-22 07:56:23 +00:00
Hermès Bélusca-Maïto c1ecc98f60 [EVENTVWR]
- Fix the window styles of the edit boxes in the event details dialog.
- Refactor some parts of the code to reduce the level of code indentation.
- Replace malloc/free by their Win32 counterparts HeapAlloc/HeapFree.
- When caching the full contents of a given event log, don't load at this point the event text/data. Only load those when opening the event details dialog.

svn path=/trunk/; revision=71368
2016-05-22 00:34:40 +00:00
Hermès Bélusca-Maïto 2c1a9b0f07 [EVENTVWR]
- Finish to convert the app to full unicode;
- Don't hardcode buffer lengths in function calls;
- Remove useless #pragma incantation;
- Whitespace fix.

svn path=/trunk/; revision=71367
2016-05-21 21:44:14 +00:00
Hermès Bélusca-Maïto 3c65b5a5a2 [FREELDR]: Increase again the number of BIOS memory descriptors to 80.
CORE-11247 #comment Please retest.

svn path=/trunk/; revision=71366
2016-05-21 16:12:31 +00:00
Eric Kohl b666112fa1 [SAMSRV]
Implement SamrGetDomainPasswordInformation.

svn path=/trunk/; revision=71365
2016-05-21 15:05:49 +00:00
Eric Kohl c26a5012b8 [SAMSRV]
Add LM_OWF_PASSWORD and NT_OWF_PASSWORD types and use them.
See MS-NRPC sections 2.2.1.1.1 to 2.2.1.1.4.

svn path=/trunk/; revision=71364
2016-05-21 13:12:53 +00:00
Pierre Schweitzer 2eca65d304 [NETSHELL]
Update French translation

CORE-10955

svn path=/trunk/; revision=71363
2016-05-21 09:40:18 +00:00
Mark Jansen c04d14f8bb [MBEDTLS][SCHANNEL] Export mbedtls_ssl_config_free and use it. Patch by Peter Hater. CORE-11270 #resolve #comment Thanks!
svn path=/trunk/; revision=71362
2016-05-20 17:09:56 +00:00
Amine Khaldi 915ed50c3f [SDK][CMAKE] The CMake folder is part of our SDK. CORE-9111
svn path=/trunk/; revision=71361
2016-05-20 16:06:48 +00:00
Robert Naumann 507c4db50d [TASKMGR] improvement german: too long string in statusbar - Patch by Joachim Henze.
svn path=/trunk/; revision=71360
2016-05-19 22:41:08 +00:00
Hermès Bélusca-Maïto fe1096e0c0 [SDK/INCLUDE]: Fix a typo in ntstatus.mc (Debuger --> Debugger).
svn path=/trunk/; revision=71359
2016-05-19 22:18:11 +00:00
Hermès Bélusca-Maïto c294e76682 [SDK/INCLUDE]: Fix ntstatus.mc: extra end-line whitespace and erroneous newlines at the end of the messages.
svn path=/trunk/; revision=71358
2016-05-19 21:22:41 +00:00
Thomas Faber 28b4a2412b [AFD]
- Don't overwrite values in a completed IRP in ReceiveActivity
CORE-11276 #resolve

svn path=/trunk/; revision=71357
2016-05-19 21:17:18 +00:00
Eric Kohl 811a8408d0 [NETSHELL]
- Provide a common struct for the network setup data.
- Remember the typical/custom setup decision in order to return to the proper previous page when we click the 'Back' button on the domain page.
- Rename network setup page functions in a consistent way.
CORE-10955

svn path=/trunk/; revision=71356
2016-05-19 13:42:37 +00:00
Thomas Faber 6b27b08a69 [SERVICES]
- On service stop, set Service->lpImage to NULL after calling ScmDereferenceServiceImage, so the same image is not dereferenced again on service deletion
- Do not call ScmDereferenceServiceImage in CreateServiceListEntry, as the service should never have an image there
CORE-11273 #resolve

svn path=/trunk/; revision=71355
2016-05-19 13:01:04 +00:00
Thomas Faber 407f2e8218 [ACPI]
- Correctly double-null-terminate hardware IDs
CORE-11271 #resolve

svn path=/trunk/; revision=71354
2016-05-19 10:15:15 +00:00
Hermès Bélusca-Maïto 63318080ba [NETSHELL]
Addendum to r71348:
Fix MSVC build: "netshell\lang/de-DE.rc(87) : warning RC2182 : duplicate dialog control ID 3501" . Both IDC_NETWORK_TYPICAL and IDC_NETWORK_CUSTOM setup wizard pages had this same ID.
Obviously, GCC didn't catch this error. But the generated code would not have worked as expected.

CORE-10955 #comment [~milawynsrealm], please retest with r71353.

svn path=/trunk/; revision=71353
2016-05-18 21:49:31 +00:00