Commit graph

63622 commits

Author SHA1 Message Date
Ged Murphy 0baf2174fc [DEVMGR]
Fix building with cmake (msvc)
It needs my local ATL changes to build, I'll add these soon

svn path=/trunk/; revision=69325
2015-09-23 08:49:48 +00:00
Alex Ionescu 0e86ca73d0 [NTOSKRNL]: Properly respect the registry's Win32PrioritySeparation value instead of ignoring it.
[NTOSKRNL]: Actually apply the foreground priority boost to threads in a foreground process.
[NTOSKRNL]: Correctly handle the case where the quantum length and fixed/variable flag are set to "default", instead of falling back into the server case.
Thanks to WINSRV doing the right thing, ReactOS console apps now receive the priority separation boost. However, my tests show that it doesn't last as long as it should on Windows (quantums too short? bug in priority decrement?). Also, since Win32k.sys doesn't tell the kernel about foreground GUI apps, they don't get the boost. Someone needs to add a NtSetInformationProcess call in whatever win32k function determines active focus.
Dedicated to ThFabba who needs to write some tests ;-)

svn path=/trunk/; revision=69324
2015-09-23 05:10:58 +00:00
Hermès Bélusca-Maïto 81b8c2bb92 [NTVDM]
- Do not hardcode the number of XMS memory blocks that can map the HMA. It should be function of the MAX_ADDRESS value of our emulator.
- Require that MAX_ADDRESS should be greater or equal than 1 MB.

svn path=/trunk/; revision=69323
2015-09-23 01:45:18 +00:00
Pierre Schweitzer 9e06c66b38 [KMTESTS:IO]
Extend the IoCreateFile tests with two parts tests.
First part properly checks for opening/reparse handling on mount points (and ideally on symlinks, see below).
The other part checks for proper handling of the IO_STOP_ON_SYMLINK parameter.

Regarding symlink, I'm clearly not convinced that what I did is correct (hence the failure on both W2K3 & ROS). It seems to me that symlink resolution is up to the FSD and not to IO which only handles mount point traversal.
If someone (Alex?) can confirm/infirm and give more insight, that's more than welcome.

svn path=/trunk/; revision=69322
2015-09-22 22:31:08 +00:00
Ged Murphy 5aaa6edd08 [DEVMGR]
- A few cmake fixes

svn path=/trunk/; revision=69321
2015-09-22 21:44:19 +00:00
Ged Murphy e82b2a4870 [DEVMGR]
- Build the properties as C++
- Rearrange the folder structure
- The whole thing now builds and runs from VS (with a few hacks). CMake next

svn path=/trunk/; revision=69320
2015-09-22 18:23:03 +00:00
Giannis Adamopoulos 0ea9ff44f2 [SHELL32]
- Add a helper HCR_GetClassName function to load the name of a reg folder to a STRRET
- Further simplify CAdminToolsFolder, CFontsFolder and CMyDocsFolder

svn path=/trunk/; revision=69319
2015-09-22 18:11:32 +00:00
Pierre Schweitzer 49b29b7594 [KMTESTS:MM]
MmAllocatePagesForMdlEx() was added on Windows 2003 SP1. Import it for "older" systems.

svn path=/trunk/; revision=69318
2015-09-22 18:05:45 +00:00
Amine Khaldi bff3154159 [CLUSAPI] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed by me. CORE-8174
svn path=/trunk/; revision=69317
2015-09-22 17:19:14 +00:00
Amine Khaldi 3e7d2f5da8 [CARDS] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed by me. CORE-8174
svn path=/trunk/; revision=69316
2015-09-22 17:15:37 +00:00
Amine Khaldi 75eb8a98c5 [BATT] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed by me. CORE-8174
svn path=/trunk/; revision=69315
2015-09-22 17:08:38 +00:00
Amine Khaldi 0391638490 [CPLS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69314
2015-09-22 17:04:32 +00:00
James Tabor d18e3d9664 [RosApps|WineFile]
Patch by Jared Smudde - Sync wine File with wine. See ROSAPPS-302.

svn path=/trunk/; revision=69313
2015-09-22 00:40:19 +00:00
James Tabor a53aa543b4 [Win32SS]
- Fix MDI menu redraw. Tested with WineFile.

svn path=/trunk/; revision=69312
2015-09-22 00:38:48 +00:00
Pierre Schweitzer 7b90b413a5 [MOUNTMGR]
While we're at calling IoCreateFile, skip parameters checking, we know our parameters are alright.

svn path=/trunk/; revision=69311
2015-09-21 19:11:06 +00:00
Pierre Schweitzer 70824cb35c [MOUNTMGR]
MagicValue--;

svn path=/trunk/; revision=69310
2015-09-21 16:49:49 +00:00
Eric Kohl ee2780fe5f [INTL]
Implement a save routine for the GeoID. Stores the current GeoID in the default user profile too, if required.
CORE-10172 #resolve

svn path=/trunk/; revision=69309
2015-09-20 19:34:51 +00:00
Eric Kohl 0634e43fab [INTL]
- Unicodify the CPL. Get rid of <tchar.h>.
- Pass a pointer to all getter and setter functions of the customization property sheet pages.
- Remove the "Property of" text from the property sheets.
- Convert "SendMessage(GetDlgItem(..." to "SendDlgItemMessage(...".

svn path=/trunk/; revision=69308
2015-09-20 19:00:10 +00:00
Pierre Schweitzer 40d3c19242 [NTDLL_APITESTS]
Add more tests

svn path=/trunk/; revision=69307
2015-09-20 17:51:41 +00:00
Robert Naumann aa61add155 [SHELL32] Add missing DS_MODALFRAME style to extended properties dialog. Patch by Jared Smudde CORE-10219
svn path=/trunk/; revision=69306
2015-09-20 16:25:39 +00:00
Pierre Schweitzer 9fce9f4c34 [NTDLL_APITESTS]
Properly init string length

svn path=/trunk/; revision=69305
2015-09-20 14:04:48 +00:00
Pierre Schweitzer 2a99e6260e [NTDLL_APITESTS]
Add more tests

svn path=/trunk/; revision=69304
2015-09-20 13:32:34 +00:00
Pierre Schweitzer 1e31c8d334 [NTDLL_APITESTS]
Add a few tests for RtlGenerate8dot3Name()

svn path=/trunk/; revision=69303
2015-09-20 10:42:05 +00:00
Thomas Faber 47083e371b [HAL]
- Print a message if EISA DMA support is detected. Detection should probably not even be attempted unless the machine supports EISA; the print will show whether that's correct.
CORE-9895

svn path=/trunk/; revision=69302
2015-09-20 09:45:59 +00:00
Thomas Faber bdce828d6d [IDL]
- ms-dtyp.idl doesn't need UNICODE_STRING

svn path=/trunk/; revision=69301
2015-09-20 06:21:41 +00:00
Thomas Faber e5d4c337e6 [KMTESTS:KE]
- Add tests for acquiring mutants recursively
CORE-10218

svn path=/trunk/; revision=69300
2015-09-19 23:59:02 +00:00
Aleksandar Andrejevic 97f2b6b128 [NTVDM]
Also save and restore the registers around other mouse callbacks
and the DOS driver routine calls.


svn path=/trunk/; revision=69299
2015-09-19 22:42:13 +00:00
Aleksandar Andrejevic 7c44fa3b89 [NTVDM]
Save and restore BP, DS and ES when calling the mouse callback.


svn path=/trunk/; revision=69298
2015-09-19 22:29:45 +00:00
Aleksandar Andrejevic d9a6ce4f12 [NTVDM]
Save and restore the general purpose and segment registers around Int32Call
calls in the BIOS. Also, make sure CF doesn't get set by the called interrupt
procedure.


svn path=/trunk/; revision=69297
2015-09-19 22:12:56 +00:00
Thomas Faber 2ea155305a [KMTESTS]
- Add missing OBJ_KERNEL_HANDLE
- OBJ_KERNEL_HANDLE in user mode has no effect... no reason to make a define around it
CORE-10207

svn path=/trunk/; revision=69296
2015-09-19 21:46:40 +00:00
Pierre Schweitzer cd8e7fa978 [MOUNTMGR]
Fix CVE-2015-1769:
- When opening remote databases, don't attempt to migrate w2k database to current format.
- Also, when opening/creating the remote database, don't allow following symlinks anymore.
In case a symlink would be detected, an error message will be printed.

Commit dedicated to Alex :-).

CORE-10216 #resolve #comment Fixed with r69295

svn path=/trunk/; revision=69295
2015-09-19 21:23:45 +00:00
Thomas Faber 25eb471cdf [BLUE][RTL][VIDEOPRT]
- Add missing OBJ_KERNEL_HANDLE
CORE-10207

svn path=/trunk/; revision=69294
2015-09-19 21:10:11 +00:00
Pierre Schweitzer cb09321830 [PSDK]
Define STATUS_STOPPED_ON_SYMLINK

svn path=/trunk/; revision=69293
2015-09-19 20:51:20 +00:00
Pierre Schweitzer 582d858bfd [MOUNTMGR]
Implement ReconcileThisDatabaseWithMasterWorker() which was the last missing bit of our MountMgr :-)

svn path=/trunk/; revision=69292
2015-09-19 20:37:09 +00:00
Pierre Schweitzer 88648de586 [MOUNTMGR]
Our ReconcileThisDatabaseWithMasterWorker() routine will expect two parameters: the device extension + the device to which reconcile remote database.
So, fix our code accordingly

svn path=/trunk/; revision=69291
2015-09-19 14:50:04 +00:00
Stefan Ginsberg 37f1637343 [WIN32SS} So ehm DBG is always defined to 0 or 1 (unless one messes around with it, like in Uniata...) so consistently check with #if and not #ifdef or else debug code gets in the free build.
svn path=/trunk/; revision=69290
2015-09-19 14:25:52 +00:00
Pierre Schweitzer b6e2424ed5 [MOUNTMGR]
Include ntdddisk.h

svn path=/trunk/; revision=69289
2015-09-19 14:16:06 +00:00
Pierre Schweitzer 69066e3298 [PSDK]
Add GPT attributes for PARTITION_BASIC_DATA_GUID partitions

svn path=/trunk/; revision=69288
2015-09-19 14:15:01 +00:00
Hermès Bélusca-Maïto 38e457ddc1 [NTVDM]: Fix usage of RtlCompareMemory.
svn path=/trunk/; revision=69287
2015-09-19 14:02:22 +00:00
Stefan Ginsberg ecc1e62543 [KD] Stub out the (new) unsupported KD API messages a bit more by adding 2 missing ones, likely API names and associated structures. Thanks to Mark Jensen for finding out the structs.
svn path=/trunk/; revision=69286
2015-09-19 13:58:08 +00:00
Amine Khaldi 8346163901 [CRT] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69285
2015-09-19 13:50:57 +00:00
Pierre Schweitzer 9391f1ae05 [MOUNTMGR]
Implement the IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS:
- Implement MountMgrQueryVolumePaths()
- Implement MountMgrValidateBackPointer()
- Implement MountMgrQueryDosVolumePaths()
- Rename a struct var to reflect its real usage

svn path=/trunk/; revision=69284
2015-09-19 13:03:41 +00:00
Thomas Faber 7a7073bedc [KMTESTS:KE]
- Add a small stress test for scheduling behavior after event set/wake
CORE-10212

svn path=/trunk/; revision=69283
2015-09-19 12:57:51 +00:00
Thomas Faber 8b7a8bb461 [KMTESTS:KE]
- Make KeEvent test count constant to prevent it from appearing flaky in Testman

svn path=/trunk/; revision=69282
2015-09-19 12:39:01 +00:00
Thomas Faber 619d1a2474 [KMTESTS:KE]
- Skip tests that assert on checked builds
- Avoid excessive stack usage
- Avoid some signed vs unsigned comparisons

svn path=/trunk/; revision=69281
2015-09-19 12:15:16 +00:00
Eric Kohl cc6ad8cd09 [INTL]
Implement the "Apply all settings to the current user account and to the default user profile" feature.
CORE-10172

svn path=/trunk/; revision=69280
2015-09-19 12:14:35 +00:00
Thomas Faber 981add1069 [KMTESTS:KE]
- Don't skip most of the KeEvent test on checked builds
- Don't try to run things at stupid IRQLs

svn path=/trunk/; revision=69279
2015-09-19 11:27:18 +00:00
Amine Khaldi 0df4362cc7 [AVIFIL32] Get back Dll{Register,Unregister}Server exports. They do not exist in native but we need to register this dll. CORE-8174
svn path=/trunk/; revision=69278
2015-09-18 21:20:42 +00:00
Thomas Faber 12e643e2f1 [NTOS:OB]
- Improve DPRINT in NtWaitForMultipleObjects

svn path=/trunk/; revision=69277
2015-09-18 19:42:56 +00:00
Amine Khaldi 8bbd0b4c2c [AVIFIL32] Order the exports, remove some, correct AVIFileCreateStream redirection and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed and slightly changed by me. CORE-8174
svn path=/trunk/; revision=69276
2015-09-18 19:40:16 +00:00