reactos.git
8 years ago[MSFS]
Pierre Schweitzer [Sat, 10 Oct 2015 12:50:33 +0000 (12:50 +0000)]
[MSFS]
Fix a FIXME: properly reset timer when re-using a queued IRP for reading.
Also fix a possible race condition between time out DPC and IRP re-use.

Thanks to Thomas for his help with DPC & timers.

CORE-10245

svn path=/trunk/; revision=69483

8 years ago[MSFS]
Pierre Schweitzer [Sat, 10 Oct 2015 12:33:22 +0000 (12:33 +0000)]
[MSFS]
- Remove an useless (and unsafe!) counter
- Use the message counter in a thread-safe way in RW operations

svn path=/trunk/; revision=69482

8 years ago[MSFS]
Pierre Schweitzer [Sat, 10 Oct 2015 12:16:17 +0000 (12:16 +0000)]
[MSFS]
MessageEvent is no longer used, remove it

svn path=/trunk/; revision=69481

8 years ago[MSFS]
Pierre Schweitzer [Sat, 10 Oct 2015 12:08:45 +0000 (12:08 +0000)]
[MSFS]
Prevent a race condition on reading message from list.
Spotted by Thomas

svn path=/trunk/; revision=69480

8 years ago[NOTEPAD]
Eric Kohl [Sat, 10 Oct 2015 10:13:46 +0000 (10:13 +0000)]
[NOTEPAD]
Goto menu item should be disabled when wrap is on
#CORE-10278 #resolve

svn path=/trunk/; revision=69479

8 years ago[Win32k]
James Tabor [Sat, 10 Oct 2015 10:10:15 +0000 (10:10 +0000)]
[Win32k]
- Fix repaint from off screen. See CORE-10098.

svn path=/trunk/; revision=69478

8 years ago[MSFS]
Pierre Schweitzer [Sat, 10 Oct 2015 08:37:36 +0000 (08:37 +0000)]
[MSFS]
Addendum to r69475
By Thomas Faber

svn path=/trunk/; revision=69477

8 years ago[MSFS]
Pierre Schweitzer [Sat, 10 Oct 2015 08:31:25 +0000 (08:31 +0000)]
[MSFS]
Addendum to r69475

svn path=/trunk/; revision=69476

8 years ago[MSFS]
Pierre Schweitzer [Sat, 10 Oct 2015 08:29:05 +0000 (08:29 +0000)]
[MSFS]
Implement asynchronous reading from mailslot.
Patch by Nikita Pechenkin

Adjustements, style fixing by myself.

CORE-10245 #resolve #comment Modified patch committed with r69475. I have tested kernel32:mailslot and your provided test, both are passing 100%. Thanks!

svn path=/trunk/; revision=69475

8 years ago[XDK]
Pierre Schweitzer [Sat, 10 Oct 2015 07:55:42 +0000 (07:55 +0000)]
[XDK]
Properly define IO_CSQ function types

CORE-10245

svn path=/trunk/; revision=69474

8 years ago[BROWSEUI]
Giannis Adamopoulos [Fri, 9 Oct 2015 13:20:45 +0000 (13:20 +0000)]
[BROWSEUI]
- Implement showing and hiding the Go button. Patch by  Barrett Karish.
CORE-10154

svn path=/trunk/; revision=69473

8 years ago[PSDK] Correct addParameter() uri default value too. CORE-10320
Amine Khaldi [Fri, 9 Oct 2015 09:27:39 +0000 (09:27 +0000)]
[PSDK] Correct addParameter() uri default value too. CORE-10320

svn path=/trunk/; revision=69472

8 years ago[PSDK] Correct setStartMode() uri default value. CORE-10320
Amine Khaldi [Fri, 9 Oct 2015 09:12:57 +0000 (09:12 +0000)]
[PSDK] Correct setStartMode() uri default value. CORE-10320

svn path=/trunk/; revision=69471

8 years ago[SHELL32] Update German translation
Robert Naumann [Fri, 9 Oct 2015 06:26:34 +0000 (06:26 +0000)]
[SHELL32] Update German translation

svn path=/trunk/; revision=69470

8 years ago[SHELL32]
Giannis Adamopoulos [Fri, 9 Oct 2015 00:31:47 +0000 (00:31 +0000)]
[SHELL32]
- "Fix" SHChangeNotifyRegister to report file system changes. I am not really sure if these changes are correct but really make it work now.
CORE-1171

svn path=/trunk/; revision=69469

8 years ago[SHELL32]
Giannis Adamopoulos [Fri, 9 Oct 2015 00:27:34 +0000 (00:27 +0000)]
[SHELL32]
- CDefView: Implement updating the status bar . Based on patch by Barrett Karish
CORE-10300

svn path=/trunk/; revision=69468

8 years agoFix the fix
Stefan Ginsberg [Thu, 8 Oct 2015 17:19:40 +0000 (17:19 +0000)]
Fix the fix

svn path=/trunk/; revision=69467

8 years ago[KERNEL32] Fix bug in CreateFiberEx that made it replace the CONTEXT_FULL bits rather...
Stefan Ginsberg [Thu, 8 Oct 2015 16:26:29 +0000 (16:26 +0000)]
[KERNEL32] Fix bug in CreateFiberEx that made it replace the CONTEXT_FULL bits rather than ORing in CONTEXT_FLOATING_POINT when caller wanted FPU state saved. SwitchToFiber checks for CONTEXT_FULL OR CONTEXT_FLOATING_POINT so the save/restore would fail. Moreover, fix BaseInitializeContext that was not checking CONTEXT_FLOATING_POINT correctly for some fibers and, as a result, not initializing FPU context correctly for callers of ConvertThreadToFiberEx. Finally, because trying to access address 0x6 is generally a bad idea, fix SwitchToFiber to use the correct shared user data offsets. Misc cleanup all around. Bonus: Sort TEB/PEB asm offsets and add GDI Batch Count offset, needed soon.

svn path=/trunk/; revision=69466

8 years ago[NTDLL] Expose the last of the system call exports so that we finally, once and for...
Stefan Ginsberg [Thu, 8 Oct 2015 12:22:33 +0000 (12:22 +0000)]
[NTDLL] Expose the last of the system call exports so that we finally, once and for all, have the whole NTOS API properly exposed to user mode. Only real change is some NtLoadKey* functionality, rest is a bunch of EFI stubs.

svn path=/trunk/; revision=69464

8 years ago[SYSDM] Change the applet icon to a new, better looking one. By Ismael Ferreras Morez...
Robert Naumann [Wed, 7 Oct 2015 12:33:47 +0000 (12:33 +0000)]
[SYSDM] Change the applet icon to a new, better looking one. By Ismael Ferreras Morezuelas CORE-10107

svn path=/trunk/; revision=69463

8 years ago[NTOBJSHEX]
Thomas Faber [Wed, 7 Oct 2015 10:23:06 +0000 (10:23 +0000)]
[NTOBJSHEX]
- Correctly handle NULL ppidl in EnumerateNext as required by Skip() callers
- Don't reenumerate NT directories every time EnumerateNext is called from Skip()
CORE-10311 #resolve

svn path=/trunk/; revision=69462

8 years ago[RAPPS(_new)]
Hermès Bélusca-Maïto [Tue, 6 Oct 2015 01:14:02 +0000 (01:14 +0000)]
[RAPPS(_new)]
Remove few trailing whitespace in lang resources.

svn path=/trunk/; revision=69461

8 years ago[RAPPS(_new)]
Hermès Bélusca-Maïto [Tue, 6 Oct 2015 01:13:31 +0000 (01:13 +0000)]
[RAPPS(_new)]
- French translation update.
- Sync french translation with rapps_new.

svn path=/trunk/; revision=69460

8 years ago[RAPPS]
Thomas Faber [Tue, 6 Oct 2015 00:22:07 +0000 (00:22 +0000)]
[RAPPS]
- Add support for SHA-1 validation of completed downloads. Patch by Ismael Ferreras Morezuelas
CORE-10301 #resolve

svn path=/trunk/; revision=69459

8 years ago[WIN32SS::WINSRV] Improve the FILE header section. Brought to you by Adam Stachowicz...
Amine Khaldi [Mon, 5 Oct 2015 12:21:25 +0000 (12:21 +0000)]
[WIN32SS::WINSRV] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114

svn path=/trunk/; revision=69458

8 years ago[SCHANNEL] Fix missing p in the function pointers. By Ismael Ferreras Morezuelas...
Amine Khaldi [Mon, 5 Oct 2015 11:43:41 +0000 (11:43 +0000)]
[SCHANNEL] Fix missing p in the function pointers. By Ismael Ferreras Morezuelas. CORE-9065

svn path=/trunk/; revision=69457

8 years ago[RAPPS]
Thomas Faber [Mon, 5 Oct 2015 11:25:49 +0000 (11:25 +0000)]
[RAPPS]
- Fix another potential buffer overflow

svn path=/trunk/; revision=69456

8 years ago[RAPPS]
Thomas Faber [Mon, 5 Oct 2015 09:17:21 +0000 (09:17 +0000)]
[RAPPS]
- Fix buffer overflow when displaying the URL in download dialog

svn path=/trunk/; revision=69455

8 years ago[BOOTLIB]:
Alex Ionescu [Mon, 5 Oct 2015 07:25:27 +0000 (07:25 +0000)]
[BOOTLIB]:
- Implement BiInitializeAndValidateHive, BiLoadHive. Leveraging our existing cmlib and the previously committed code, we are now able to read the BCD file, parse it as a registry hive, and lookup the BCD Objects subkey! The BCD Data Store is now available to the Boot Manager (which also validates that reading from ETFS works).

svn path=/trunk/; revision=69454

8 years ago[HIVEBCD]:
Alex Ionescu [Mon, 5 Oct 2015 07:22:11 +0000 (07:22 +0000)]
[HIVEBCD]:
- The Objects key is in the root, not under Description.
[MKHIVE]:
- Make it *actually* build a BCD hive. It was doing nothing before, because it turns out that irrespective of what appear to be dynamic, command-line driven behavior modes, all of mkhive's logic is deeply tied together through C-level changes and knowledge. (for example, that's why calling it with a single .inf, it still wants to build 6 hives for you). There were also some copy/pasta bugs in the BCD handling code, now fixed.

svn path=/trunk/; revision=69453

8 years ago[BOOTLIB]:
Alex Ionescu [Mon, 5 Oct 2015 05:53:40 +0000 (05:53 +0000)]
[BOOTLIB]:
- Fix multiple bugs in ETFS code (confusion between file offset vs. disk offset)
- Implement EtfsGetInformation, EtfsSetInformation, and fix ETFS_FILE definition to make this easy.
- Implement EtfsRead.
- Fix multiple bugs in file I/O code (swapped/reversed validation checks)
- Make BlStatusPrint call EfiPrintf on debug builds, even without BD.
- Add some additional error logging.

svn path=/trunk/; revision=69452

8 years ago[BOOTLIB]:
Alex Ionescu [Mon, 5 Oct 2015 04:51:32 +0000 (04:51 +0000)]
[BOOTLIB]:
- Fix a regression
- Add a few more flags
- Don't look for BCD in "Microsoft" directory

svn path=/trunk/; revision=69451

8 years ago[BOOTLIB]:
Alex Ionescu [Mon, 5 Oct 2015 01:02:56 +0000 (01:02 +0000)]
[BOOTLIB]:
- Fix BCD bugs.

svn path=/trunk/; revision=69450

8 years ago[INTL]
Eric Kohl [Sun, 4 Oct 2015 21:57:03 +0000 (21:57 +0000)]
[INTL]
- Improve the internal locale storage. Replace the array of strings by a customized struct.
- Implement the locale customization properly. The customization property sheet modifies the internal locale storage rather than the registry. Now, cancelling changes works properly.

CORE-10074

svn path=/trunk/; revision=69449

8 years agoPeople's local builds use PCH by default, rosbuilds do not. A recipe for success.
Alex Ionescu [Sun, 4 Oct 2015 21:11:48 +0000 (21:11 +0000)]
People's local builds use PCH by default, rosbuilds do not. A recipe for success.

svn path=/trunk/; revision=69448

8 years ago[BOOTLIB]:
Alex Ionescu [Sun, 4 Oct 2015 21:07:12 +0000 (21:07 +0000)]
[BOOTLIB]:
- WIP work to begin reading, parsing, mounting and loading the BCD hive into a data store. Untested, has missing pieces.
- Implement BlFileSet/GetInformation, BlFileReadEx, BlFileReadAtOffsetEx and helper structures/functions. Document multiple previously unknown/magic flags.
- Implement BlMmAllocatePhysicalPages. Stub BlMmFreePhysicalPages.
- Implement MmUnmapVirtualAddress, BlMmUnmapVirtualAddressEx when operating in real mode.
- Implement ImgpGetFileSize, ImgpReadFileAtOffset, ImgpOpenFile, ImgpCloseFile, BlImgAllocateImageBuffer, BlImgLoadImageWithProgress2.
- Implement BdDebuggerInitialized, BlBdDebuggerEnabled, BlStatusPrint, BlStatuserror. Stub BlBdPullRemoteFile.
- Implement BlGetBootOptionDevice.
- Implement BiReferenceHive, BiDereferenceHive, BiCloseKey, BiOpenKey. Stub BiFlushKey, BiLoadHive.
- Implement BiAddStoreFromFile, BcdOpenStoreFromFile.
- Stub BlUtlUpdateProcess and BlResourceFindMessage.
- Other misc. cleanups.
[BOOTMGR]:
- Implement BmpFatalErrorMessageFilter, BmErrorPurge, BmpErrorLog, BmFatalErrorEx.
- Implement BmpFwGetFullPath.
- Implement BmOpenDataStore.
- Stub BmOpenBootIni

svn path=/trunk/; revision=69447

8 years ago[CMLIB]:
Alex Ionescu [Sun, 4 Oct 2015 20:24:52 +0000 (20:24 +0000)]
[CMLIB]:
- Missing header change from previous commit.

svn path=/trunk/; revision=69446

8 years ago[MKHIVE]:
Alex Ionescu [Sun, 4 Oct 2015 20:23:25 +0000 (20:23 +0000)]
[MKHIVE]:
- Whoever wrote mkhive ran into the problem I just did, and realized hey-i-dont-fucking-want-to-use-that-almost-copy-pasted-but-not-shared-code-so-why-dont-i-use-the-good-kernel-code-instead... but instead of taking the time to create a fucking library like I just did (cause that would be hard man, and fixing headers n' shit), just hard-coded the paths to the kernel files directly like a lazy shit. Fix mkhive to just rely on cmlib, which now has the files shared there.

svn path=/trunk/; revision=69445

8 years ago[CMLIB/NTOSKRNL]:
Alex Ionescu [Sun, 4 Oct 2015 20:18:49 +0000 (20:18 +0000)]
[CMLIB/NTOSKRNL]:
- Move cmindex.c and cmname.c to cmlib, because bootmgr/winload use the kernel's cm implementation, unlike our freeldr which uses an almost copy-pasted-but-not-shared-because-hey-why-not-have-to-fix-the-bugs-in-two-places-instead-of-just-one implementation.
- Minor fixes to headers to allow those two files to be used/built outside of ntoskrnl.

svn path=/trunk/; revision=69444

8 years ago[RAPPS]
Thomas Faber [Sun, 4 Oct 2015 19:39:23 +0000 (19:39 +0000)]
[RAPPS]
- Fix incorrect buffer sizes
- Use safe string functions
- Avoid extended chars in string literals

svn path=/trunk/; revision=69443

8 years ago[FS_REC]: Guard against ROUND_UP/DOWN already being defined.
Alex Ionescu [Sun, 4 Oct 2015 17:14:24 +0000 (17:14 +0000)]
[FS_REC]: Guard against ROUND_UP/DOWN already being defined.

svn path=/trunk/; revision=69442

8 years ago[NTOSKRNL]: Jerome _was_ nice enough to make our cells ordered (64222).
Alex Ionescu [Sun, 4 Oct 2015 17:13:38 +0000 (17:13 +0000)]
[NTOSKRNL]: Jerome _was_ nice enough to make our cells ordered (64222).

svn path=/trunk/; revision=69441

8 years ago[MBEDTLS] Update mbedtls to v2.1.1. By Ismael Ferreras Morezuelas with a fix by Roy...
Amine Khaldi [Sun, 4 Oct 2015 17:08:38 +0000 (17:08 +0000)]
[MBEDTLS] Update mbedtls to v2.1.1. By Ismael Ferreras Morezuelas with a fix by Roy Tam. CORE-9065

svn path=/trunk/; revision=69440

8 years ago[NTOS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
Amine Khaldi [Sun, 4 Oct 2015 11:54:25 +0000 (11:54 +0000)]
[NTOS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114

svn path=/trunk/; revision=69439

8 years ago[NTVDM] Revert r69435.
Amine Khaldi [Sun, 4 Oct 2015 11:49:28 +0000 (11:49 +0000)]
[NTVDM] Revert r69435.

svn path=/trunk/; revision=69438

8 years agoFix 0x%lu specifier in our skeleton service and its only user tcpsvcs.
Sylvain Petreolle [Sat, 3 Oct 2015 22:38:05 +0000 (22:38 +0000)]
Fix 0x%lu specifier in our skeleton service and its only user tcpsvcs.

svn path=/trunk/; revision=69437

8 years ago[ROSTESTS]
Sylvain Petreolle [Sat, 3 Oct 2015 22:21:19 +0000 (22:21 +0000)]
[ROSTESTS]
Fix 0x%lu specifier.
Add cmake file for notificationtest.

svn path=/trunk/; revision=69436

8 years ago[NTVDM] Improve the PCH situation.
Amine Khaldi [Sat, 3 Oct 2015 21:47:46 +0000 (21:47 +0000)]
[NTVDM] Improve the PCH situation.

svn path=/trunk/; revision=69435

8 years ago[user32_apitest]
Sylvain Petreolle [Sat, 3 Oct 2015 21:41:10 +0000 (21:41 +0000)]
[user32_apitest]
0x%lu does not mean anything correct.

svn path=/trunk/; revision=69434

8 years ago[NTVDM] Fix PCH w.r.t. using the debug routines. The PCH use here in itself could...
Amine Khaldi [Sat, 3 Oct 2015 19:17:55 +0000 (19:17 +0000)]
[NTVDM] Fix PCH w.r.t. using the debug routines. The PCH use here in itself could use *a lot* of improvements but that's another story.

svn path=/trunk/; revision=69433

8 years ago[NTVDM]
Hermès Bélusca-Maïto [Sat, 3 Oct 2015 18:57:06 +0000 (18:57 +0000)]
[NTVDM]
- French translation fix.
- Add PCH support.
- Properly track RC files dependencies. CORE-9806

svn path=/trunk/; revision=69432

8 years ago[NTVDM]
Hermès Bélusca-Maïto [Sat, 3 Oct 2015 15:06:24 +0000 (15:06 +0000)]
[NTVDM]
Usability fixes (part 2):
- Properly keep the mouse show state across screenbuffer switches.
- Use unicode strings for the disk menu items.
See r69428.

svn path=/trunk/; revision=69431

8 years ago[WIN32SS:GDI]
Hermès Bélusca-Maïto [Sat, 3 Oct 2015 13:30:15 +0000 (13:30 +0000)]
[WIN32SS:GDI]
Convert COLOR16 values to byte range before calling XLATEOBJ_iXlate.
This fixes gradient colors in some applications, as for example in Code::Blocks.
Patch by Vort. This is a fix for code written in revision r8117, so old !!
CORE-8652 #comment Committed in r69430, thanks guys!

svn path=/trunk/; revision=69430

8 years ago[RAPPS] Fix SSL certificate pinning, allow HTTPS links, add URL args support, some...
Amine Khaldi [Sat, 3 Oct 2015 08:39:05 +0000 (08:39 +0000)]
[RAPPS] Fix SSL certificate pinning, allow HTTPS links, add URL args support, some UX fixes, comment improvements and fix stopping the download process when pressing cancel. By Ismael Ferreras Morezuelas. CORE-9060 CORE-10289

svn path=/trunk/; revision=69429

8 years ago[NTVDM]
Hermès Bélusca-Maïto [Sat, 3 Oct 2015 02:36:35 +0000 (02:36 +0000)]
[NTVDM]
Usability fixes:
- Update the menu each time the user chooses to show or hide the mouse pointer.
- Keep the mouse show state across screenbuffer switches (text/graphics) (half-hackish at the moment; will be elegantly fixed later on).
- Update the floppy disk menu items each time the user mounts / ejects a disk; display the disk image file name currently mounted (CHAR strings used at the moment, WCHAR conversion will follow soon).

svn path=/trunk/; revision=69428

8 years ago[FAST486]
Aleksandar Andrejevic [Fri, 2 Oct 2015 15:11:24 +0000 (15:11 +0000)]
[FAST486]
Reading/writing to memory should #SS(0) when the segment is the stack segment,
and #GP(0) otherwise. It should never generate #NP.

svn path=/trunk/; revision=69427

8 years ago[INCLUDES] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE...
Amine Khaldi [Thu, 1 Oct 2015 18:12:45 +0000 (18:12 +0000)]
[INCLUDES] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114

svn path=/trunk/; revision=69426

8 years ago[RAPPS] Get rid of the flickering of the URL in the download dialog and decode it...
Amine Khaldi [Thu, 1 Oct 2015 09:37:55 +0000 (09:37 +0000)]
[RAPPS] Get rid of the flickering of the URL in the download dialog and decode it. By Ismael Ferreras Morezuelas. CORE-9060

svn path=/trunk/; revision=69425

8 years ago[FAST486]
Aleksandar Andrejevic [Thu, 1 Oct 2015 02:24:17 +0000 (02:24 +0000)]
[FAST486]
Fix the TSS limit validity check.
Implement I/O privilege checking.

svn path=/trunk/; revision=69424

8 years ago[NTVDM]: Fix the open-file dialog filter.
Hermès Bélusca-Maïto [Thu, 1 Oct 2015 02:03:31 +0000 (02:03 +0000)]
[NTVDM]: Fix the open-file dialog filter.

svn path=/trunk/; revision=69423

8 years ago[NTVDM]
Hermès Bélusca-Maïto [Thu, 1 Oct 2015 00:37:38 +0000 (00:37 +0000)]
[NTVDM]
- Temporarily hack the boot sequence to floppy, then hard disk. See r69421; will be improved in the future.
- Complete the BIOS 16-bit bootstrap code.

svn path=/trunk/; revision=69422

8 years ago[NTVDM]
Hermès Bélusca-Maïto [Thu, 1 Oct 2015 00:09:24 +0000 (00:09 +0000)]
[NTVDM]
- Add a basic boot sequence functionality (read from CMOS); will be improved in the future.
- Print a "FATAL BOOT FAILURE" error message when INT 18h is called.
- Fail startup if we cannot mount the available hard disk images.
- Improve some diagnostic error messages.

svn path=/trunk/; revision=69421

8 years ago[FAST486]
Aleksandar Andrejevic [Wed, 30 Sep 2015 21:08:31 +0000 (21:08 +0000)]
[FAST486]
- Don't forget to push the error code when the exception handler is a task gate.
- Use SS0/ESP0, SS1/ESP1, or SS2/ESP2 for ring 0/1/2 code task CALLs.

svn path=/trunk/; revision=69420

8 years ago[DEVMGR]
Ged Murphy [Wed, 30 Sep 2015 19:55:52 +0000 (19:55 +0000)]
[DEVMGR]
Add typedef for CStringAtlW. Fixes msvc build

svn path=/trunk/; revision=69419

8 years ago[CDROM]
Pierre Schweitzer [Wed, 30 Sep 2015 16:29:07 +0000 (16:29 +0000)]
[CDROM]
Properly implement support for IOCTL_DISK_GET_DRIVE_GEOMETRY, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, IOCTL_CDROM_GET_DRIVE_GEOMETRY_EX, IOCTL_DISK_GET_LENGTH_INFO in CdRomDeviceControl

CORE-10287 #resolve #comment Fixed with r69418

svn path=/trunk/; revision=69418

8 years ago[KMTESTS:IO]
Pierre Schweitzer [Tue, 29 Sep 2015 18:43:35 +0000 (18:43 +0000)]
[KMTESTS:IO]
[KMTESTS:OB]
Simplify kernel mode thread creation

svn path=/trunk/; revision=69417

8 years agoRemove legacy _KeNumberProcessors hack. While we are at it fix its type (CCHAR not...
Stefan Ginsberg [Tue, 29 Sep 2015 18:34:33 +0000 (18:34 +0000)]
Remove legacy _KeNumberProcessors hack. While we are at it fix its type (CCHAR not UCHAR) and remove it from the NDK as it is a public global provided by the DDK (where we properly define it with the "__CREATE_NTOS_DATA_IMPORT_ALIAS" fix when needed. Also, the variable KeActiveProcessors is not even exported from NTOS so move it to an internal header. Fix missed fix in UDFS as well in uncompiled file.

svn path=/trunk/; revision=69416

8 years ago[MOUNTMGR]
Pierre Schweitzer [Tue, 29 Sep 2015 18:22:38 +0000 (18:22 +0000)]
[MOUNTMGR]
Remove last hack

svn path=/trunk/; revision=69415

8 years ago[MOUNTMGR]
Pierre Schweitzer [Tue, 29 Sep 2015 17:30:54 +0000 (17:30 +0000)]
[MOUNTMGR]
Get rid of a hack, thanks to r69413

svn path=/trunk/; revision=69414

8 years ago[CRT]
Thomas Faber [Tue, 29 Sep 2015 17:24:48 +0000 (17:24 +0000)]
[CRT]
- Add "memcmp" library that is used by kernel drivers to get memcmp/RtlEqualMemory
CORE-10285 #resolve

svn path=/trunk/; revision=69413

8 years ago[NTOSKRNL]
Pierre Schweitzer [Tue, 29 Sep 2015 16:28:59 +0000 (16:28 +0000)]
[NTOSKRNL]
Don't bugcheck on unimplemented FsRtlOplockFsctrl(), FsRtlCurrentBatchOplock(), FsRtlCheckOplock()
Properly implement FsRtlInitializeOplock() (which is no-op on Windows 2k3)

CORE-10284 #resolve #comment Resolved with r69412

svn path=/trunk/; revision=69412

8 years ago[NTVDM]
Hermès Bélusca-Maïto [Mon, 28 Sep 2015 22:15:06 +0000 (22:15 +0000)]
[NTVDM]
- Add floppy image automount support from the registry, as it was done for HDDs in r69390 (it's really copy-paste & adaptation of the existing code).
- Increase HDD number support from 1 to 4 (maximum) for INT 13h.

svn path=/trunk/; revision=69411

8 years ago[CDROM]
Pierre Schweitzer [Mon, 28 Sep 2015 21:06:02 +0000 (21:06 +0000)]
[CDROM]
Finally implement support for IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, IOCTL_CDROM_GET_DRIVE_GEOMETRY_EX

svn path=/trunk/; revision=69410

8 years ago[CDROM]
Pierre Schweitzer [Mon, 28 Sep 2015 20:20:46 +0000 (20:20 +0000)]
[CDROM]
- Don't support IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, IOCTL_CDROM_GET_DRIVE_GEOMETRY_EX for now
- Properly implement IRP completion for IOCTL_DISK_GET_LENGTH_INFO, IOCTL_DISK_GET_DRIVE_GEOMETRY

svn path=/trunk/; revision=69409

8 years ago[NTVDM]
Aleksandar Andrejevic [Mon, 28 Sep 2015 18:55:26 +0000 (18:55 +0000)]
[NTVDM]
Fix a division-by-zero problem by storing the mouse driver's Width and Height
in DWORDs, thus avoiding the integer overflow which could make them zero.

svn path=/trunk/; revision=69408

8 years ago[FAST486]
Aleksandar Andrejevic [Mon, 28 Sep 2015 18:51:48 +0000 (18:51 +0000)]
[FAST486]
- Always use the descriptor type, and never the limit, to identify
legacy vs. modern TSSes.
- Don't forget to write back the modified TSS link.

svn path=/trunk/; revision=69407

8 years ago[CDROM]
Pierre Schweitzer [Mon, 28 Sep 2015 17:55:48 +0000 (17:55 +0000)]
[CDROM]
Implement IOCTL_DISK_GET_LENGTH_INFO, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, IOCTL_DISK_GET_DRIVE_GEOMETRY, IOCTL_CDROM_GET_DRIVE_GEOMETRY_EX.

Dedicated to Peter Hater
CORE-10272

svn path=/trunk/; revision=69406

8 years ago[TOOLS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE...
Amine Khaldi [Mon, 28 Sep 2015 17:31:37 +0000 (17:31 +0000)]
[TOOLS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114

svn path=/trunk/; revision=69405

8 years ago[RAPPS]
Daniel Reimer [Mon, 28 Sep 2015 16:16:37 +0000 (16:16 +0000)]
[RAPPS]
Update German translation.

svn path=/trunk/; revision=69404

8 years ago[SHELL32]
Giannis Adamopoulos [Mon, 28 Sep 2015 16:04:34 +0000 (16:04 +0000)]
[SHELL32]
- Actually use the localized name for Control Panel.

svn path=/trunk/; revision=69403

8 years ago[RAPPS]
Pierre Schweitzer [Mon, 28 Sep 2015 15:29:41 +0000 (15:29 +0000)]
[RAPPS]
Update French translation

svn path=/trunk/; revision=69402

8 years ago[RAPPS]
Christoph von Wittich [Mon, 28 Sep 2015 14:09:09 +0000 (14:09 +0000)]
[RAPPS]
add support for SSL certificate pinning

svn path=/trunk/; revision=69401

8 years ago[NTOS] Implement the KD Get/SetContextEx functionality (copying part of a CONTEXT...
Stefan Ginsberg [Mon, 28 Sep 2015 14:08:54 +0000 (14:08 +0000)]
[NTOS] Implement the KD Get/SetContextEx functionality (copying part of a CONTEXT via Offset + Byte Count instead of copying a whole context), and stub out KdpWriteCustomBreakpoint. Newer WinDbg uses the GetContextEx functionality regardless of whether we report it as supported or not, and didn't seem to fall back on the regular GetContext functionality when it was missing, so whatever it was using it for should work awesome now. This had no impact on the broken Registers window though. Also small fix to use the _M_XXX checks consistently.

svn path=/trunk/; revision=69400

8 years ago[NTOS] Fix kmtest
Stefan Ginsberg [Mon, 28 Sep 2015 12:48:14 +0000 (12:48 +0000)]
[NTOS] Fix kmtest

svn path=/trunk/; revision=69399

8 years ago[KMTESTS:OB]
Pierre Schweitzer [Mon, 28 Sep 2015 12:25:38 +0000 (12:25 +0000)]
[KMTESTS:OB]
Add a test dedicated to Stefan.

svn path=/trunk/; revision=69398

8 years ago[MBEDTLS] Add a resource file for the dll. By Ismael Ferreras Morezuelas with minor...
Amine Khaldi [Mon, 28 Sep 2015 12:09:26 +0000 (12:09 +0000)]
[MBEDTLS] Add a resource file for the dll. By Ismael Ferreras Morezuelas with minor changes by me. CORE-9065

svn path=/trunk/; revision=69397

8 years ago[RAPPS]
Pierre Schweitzer [Mon, 28 Sep 2015 11:50:58 +0000 (11:50 +0000)]
[RAPPS]
Thanks to r69394, switch rapps database download to https

svn path=/trunk/; revision=69396

8 years ago[GNUTLS] Get rid of what's left of the GnuTLS back-end. CORE-9065
Amine Khaldi [Mon, 28 Sep 2015 11:23:36 +0000 (11:23 +0000)]
[GNUTLS] Get rid of what's left of the GnuTLS back-end. CORE-9065

svn path=/trunk/; revision=69395

8 years ago[MBEDTLS] Use mbedtls as a lightweight schannel TLS/SSL back-end. This is an initial...
Amine Khaldi [Mon, 28 Sep 2015 09:43:08 +0000 (09:43 +0000)]
[MBEDTLS] Use mbedtls as a lightweight schannel TLS/SSL back-end. This is an initial checkpoint and more will follow in due time. Brought to you by Peter Hater, Ismael Ferreras Morezuelas, Sebastian Lackner and Michael Müller. CORE-9065

svn path=/trunk/; revision=69394

8 years ago[NTOS] Fix the Ob wait system calls to only catch the exceptions that are expected...
Stefan Ginsberg [Mon, 28 Sep 2015 09:01:11 +0000 (09:01 +0000)]
[NTOS] Fix the Ob wait system calls to only catch the exceptions that are expected to be raised by the Ke wait functions (and not potentially silently catching *any* exception and corrupting everything in the process). Also fixup some code logic. SEH Mega Fixup 1/???

svn path=/trunk/; revision=69393

8 years ago[NTDLL_APITEST]
Pierre Schweitzer [Mon, 28 Sep 2015 08:53:31 +0000 (08:53 +0000)]
[NTDLL_APITEST]
*.S expects length in chars

svn path=/trunk/; revision=69392

8 years ago[NTOS] Make SE routines use ExAllocateLocallyUniqueId instead of the system call...
Stefan Ginsberg [Mon, 28 Sep 2015 07:44:49 +0000 (07:44 +0000)]
[NTOS] Make SE routines use ExAllocateLocallyUniqueId instead of the system call variant (SeCreateAccessStateEx already did this, but with Exp*). Also, Ex(p)AllocateLocallyUniqueId can't fail so there is no need to return success all the time (and check for it...). This also just happens to move the first system call to phase 1 instead of 0.

svn path=/trunk/; revision=69391

8 years ago[NTVDM]
Hermès Bélusca-Maïto [Mon, 28 Sep 2015 01:36:31 +0000 (01:36 +0000)]
[NTVDM]
Read global settings from the register (in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NTVDM ; note that this is a ReactOS-only configuration key, because no equivalent functionality exists on windows), and currently initialize:
- the BIOS and ROM files to be used;
- the hard disks to be mounted at startup (they cannot be unmounted at runtime, contrary to the floppies) (maximum 4 hard disks).

svn path=/trunk/; revision=69390

8 years ago[RTL]
Pierre Schweitzer [Sun, 27 Sep 2015 20:54:20 +0000 (20:54 +0000)]
[RTL]
Major bugfixing session for RtlGenerate8dot3Name()... Up to know, AllowExtendedCharacters was totally ignored and any upcased char, as long as it was not in the forbidden list was accepted. This was bringing numerous problems (cf: apitest :-)).

So, now, the following fixes were brought:
- AllowExtendedCharacters isn't ignored any longer. If it's given, the unicode char is upcased, if it's not, as previously, the ansi char is upcased
- Be more strict in the allowed chars in name: only allow "graph" chars. This avoids generating broken names that aren't allowed in FAT
- In case no char could be added in the name, then, for the generation of the name checksum and use it as shortname
- When writing the checksum, don't use reversed order, but direct order, to match Windows behavior (as exposed with tests)
- When writing the checksum, use when possible bit operations instead of numerical operations for performances reasons (NFC)
- Rewrite RtlpGetCheckSum() with an algorithm that produces the exact same checksums than Windows 2003.

This whole commit fixes all apitests related (direct visible effect). As a bonus, it also fixes short names generation in FAT: we no longer produce broken volumes with international file names.
This also fixes less visible issues: we were producing unicode strings with null char in their middle (as exposed in tests), not sure about how all functions could handle this: likely not that good, this could have lead to various memory issues & corruptions.

CORE-10223 #resolve #comment Fixed with r69389

svn path=/trunk/; revision=69389

8 years ago[NTDLL_APITEST]
Pierre Schweitzer [Sun, 27 Sep 2015 20:41:14 +0000 (20:41 +0000)]
[NTDLL_APITEST]
Add more tests for RtlGenerate8dot3Name().
Not sure how many more are failing in ReactOS: they all pass in my WC (teasing :-))

CORE-10223

svn path=/trunk/; revision=69388

8 years ago[SHELLEXTS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE...
Amine Khaldi [Sun, 27 Sep 2015 18:40:24 +0000 (18:40 +0000)]
[SHELLEXTS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114

svn path=/trunk/; revision=69387

8 years ago[SHELLEXTS] Properly track resource file dependencies. CORE-9806
Amine Khaldi [Sun, 27 Sep 2015 18:37:23 +0000 (18:37 +0000)]
[SHELLEXTS] Properly track resource file dependencies. CORE-9806

svn path=/trunk/; revision=69386

8 years ago[CPLS] Properly track resource file dependencies. CORE-9806
Amine Khaldi [Sun, 27 Sep 2015 18:30:39 +0000 (18:30 +0000)]
[CPLS] Properly track resource file dependencies. CORE-9806

svn path=/trunk/; revision=69385

8 years ago[MMDEVAPI_WINETEST] Add missing dxsdk dependency.
Amine Khaldi [Sun, 27 Sep 2015 18:25:34 +0000 (18:25 +0000)]
[MMDEVAPI_WINETEST] Add missing dxsdk dependency.

svn path=/trunk/; revision=69384

8 years ago[NTOS:EX]
Thomas Faber [Sun, 27 Sep 2015 17:40:23 +0000 (17:40 +0000)]
[NTOS:EX]
- Remove push lock asserts that are prone to race conditions
CORE-10267 #resolve

svn path=/trunk/; revision=69383