Commit graph

60340 commits

Author SHA1 Message Date
Hervé Poussineau 2272ff8795 [FREELDR] Make the disk read buffer size dynamic
CORE-8772 CORE-8899 #resolve #comment Should be fixed in r65904. Thanks for reporting.

svn path=/trunk/; revision=65905
2014-12-30 11:53:09 +00:00
Hervé Poussineau f654bb0d51 [RAMDISK] Send the right DeviceObject in IRP_MN_QUERY_DEVICE_RELATIONS
svn path=/trunk/; revision=65904
2014-12-30 11:53:05 +00:00
Hervé Poussineau 5a3a445b01 [RAMDISK] Set correct device object in drive extension
This allows booting ReactOS livecd using PXE.

Welcome ReactOS to the world of computers without harddisk/cdrom.

svn path=/trunk/; revision=65903
2014-12-29 23:21:25 +00:00
Pierre Schweitzer b9f5240173 [RAMDISK]
Implement RamdiskQueryDeviceRelations() when the device is a drive

According to Hervé, this allows booting ReactOS livecd using PXE (with one of his patch).

svn path=/trunk/; revision=65902
2014-12-29 23:14:42 +00:00
Pierre Schweitzer 9532ddd779 [RAMDISK]
Simplify & use IoCopyCurrentIrpStackLocationToNext()

svn path=/trunk/; revision=65901
2014-12-29 22:55:21 +00:00
Pierre Schweitzer 9980552e04 [RAMDISK]
- Implement RamdiskQueryCapabilities() which is used in case of IRP_MJ_PNP + IRP_MN_QUERY_CAPABILITIES
- Implement RamdiskQueryDeviceText() which is used in case of IRP_MJ_PNP + IRP_MN_QUERY_DEVICE_TEXT
- Implement RamdiskQueryBusInformation() which is used in case of IRP_MJ_PNP + IRP_MN_QUERY_BUS_INFORMATION
- Implement RamdiskIoCompletionRoutine() which is the completion routine in case of IRP forwarding
- Also implement support for IRP_MJ_PNP + IRP_MN_START_DEVICE
- Define the RamdiskDiskInterface GUID

This slowly gets RamDisk driver PnP compliant...

svn path=/trunk/; revision=65900
2014-12-29 22:42:11 +00:00
Eric Kohl ac0ac23b55 [USETUP]
Change the partition creation workflow, so that the user is forced to choose a file system type and format a partition after it has been created.

svn path=/trunk/; revision=65899
2014-12-29 21:23:30 +00:00
Pierre Schweitzer 33f089b6ae [RAMDISK]
Wait for 1 min max but don't limit the number of acquire, ie: swap inverted args.
This fixes ASSERT on use.

Spotted by Hervé

svn path=/trunk/; revision=65898
2014-12-29 21:22:49 +00:00
Hermès Bélusca-Maïto cd50299dd2 [RAPPS]
Finish Japanese translation, fix by Ai Asano and reported by Marco Maria Emanuele Bartucci.
CORE-8983 #resolve #comment Fixed, thanks!

svn path=/trunk/; revision=65897
2014-12-29 21:12:06 +00:00
Pierre Schweitzer bdcb167357 [RAMDISK]
Define the GUID_BUS_TYPE_RAMDISK GUID

svn path=/trunk/; revision=65896
2014-12-29 20:41:15 +00:00
Pierre Schweitzer ff098a27eb [RAMDISK]
Implement RamdiskQueryId() which is used in case of IRP_MJ_PNP + IRP_MN_QUERY_ID

svn path=/trunk/; revision=65895
2014-12-29 18:00:50 +00:00
Aleksandar Andrejevic 4037b3b7c0 [WHOAMI]
Use ANSI when printing to the console. Fix the logic of LookupPrivilegeDisplayNameW.
Patch by Ismael Ferreras Morezuelas.

CORE-8965 #resolve #comment Committed in revision r65894. Thanks!


svn path=/trunk/; revision=65894
2014-12-29 16:20:00 +00:00
Timo Kreuzer e6475301eb [GDI32]
Import metafile code from wine. The wine code is unmodified (please keep it that way) and used through a wrapper function dispatcher and some helpers. Fixes 1931 wine tests.

svn path=/trunk/; revision=65893
2014-12-29 14:25:30 +00:00
Timo Kreuzer 2bcae18ec6 [WIN32K]
Simplify and fix calculation of biCompression in GreGetDIBitsInternal

svn path=/trunk/; revision=65892
2014-12-29 14:16:16 +00:00
Hermès Bélusca-Maïto 7c39a4ecb6 [WIN32K]
- Add global user heap (un)map helper functions that will be used in other portions of code.
- For consistency purpose also add the note about the mapping in desktop.c (see r65863 for what I mean).
- Temporarily add many trace messages.

svn path=/trunk/; revision=65891
2014-12-29 13:56:28 +00:00
Hervé Poussineau 3793271edf [NTOS:IO] Add some debug prints for remove locks
svn path=/trunk/; revision=65890
2014-12-29 13:16:07 +00:00
Timo Kreuzer 503848e61e [GDI32]
In Escape() make use of GdiGetDcAttr(), GreatLordish -> English and fix copy-pasta in comments, improve formatting, remove some code that (attention euphemism) wasn't exactly correct.

svn path=/trunk/; revision=65889
2014-12-29 13:12:29 +00:00
Timo Kreuzer c8bc34b358 [GDI32]
Fix some parameters in the spec file

svn path=/trunk/; revision=65888
2014-12-29 13:12:23 +00:00
Timo Kreuzer 685a373f23 [WINE]
Add LOGBRUSH16 and LOGPEN16 to wingdi16.h

svn path=/trunk/; revision=65887
2014-12-29 13:12:15 +00:00
Timo Kreuzer 2bf752a8fe [WIN32K]
Implement GdiGetEMFRestorDc case in NtGdiGetDCDword

svn path=/trunk/; revision=65886
2014-12-29 13:12:10 +00:00
Timo Kreuzer 5d0f363c9f [WIN32K]
- Implement GreCreateCompatibleDC, allowing to pass in a boolean value, specifying the DC type (normal or "alternative" DC, aka metafile DC)
- Properly implement NtGdiCreateMetafileDC around GreCreateCompatibleDC

svn path=/trunk/; revision=65885
2014-12-29 13:12:05 +00:00
Timo Kreuzer ed7952a360 [WIN32K]
- Implement NtGdiGetObjectBitmapHandle
- Set BR_IS_DIBPALCOLORS in IntGdiCreateDIBBrush

svn path=/trunk/; revision=65884
2014-12-29 13:11:59 +00:00
Timo Kreuzer 30d86f26f4 [GDI32]
In DeleteObject handle ALTDC type, factor out GdiDeleteBrushOrPen, improve code a bit

svn path=/trunk/; revision=65883
2014-12-29 13:11:54 +00:00
Timo Kreuzer a0624a040f [GDI32]
Improve client object code

svn path=/trunk/; revision=65882
2014-12-29 13:11:48 +00:00
Timo Kreuzer 292ef5fd5c [GDI32]
Improve GetROP2and SetROP2

svn path=/trunk/; revision=65881
2014-12-29 13:11:40 +00:00
Timo Kreuzer b818c891bf [GDI32]
- Do not call BitBlt from StretchBlt when extension matches, this is handled in win32k
- Use GdiGetDcAttr

svn path=/trunk/; revision=65880
2014-12-29 13:11:35 +00:00
Timo Kreuzer e4cf6cd543 [GDI32]
Improve code in painting.c:
- Add annotations
- Use consitent formatting
- Use better parameter/variable names

svn path=/trunk/; revision=65879
2014-12-29 13:11:31 +00:00
Timo Kreuzer cab100d983 [GDI32]
Move PatBlt, GetROP2 and SetROP2 to appropriate source files

svn path=/trunk/; revision=65878
2014-12-29 13:11:27 +00:00
Timo Kreuzer 45309fa8bf [GDI32]
Add anotations to arc.c, replace an instance of the ugly gfx_worker with an RCAST() macro

svn path=/trunk/; revision=65877
2014-12-29 13:11:07 +00:00
Amine Khaldi f27f53b630 [TRANSLATIONS] Chinese (zh-CN) translation update by Henry Tang Ih. CORE-8935
svn path=/trunk/; revision=65876
2014-12-29 12:56:47 +00:00
Timo Kreuzer 6532b23851 [PSDK]
Fix copypasta from r65873

svn path=/trunk/; revision=65875
2014-12-29 12:28:56 +00:00
Giannis Adamopoulos 137dbef056 [SHELL32]
* Give focus to the def view control when CDesktopBrowser gets focus.
CORE-8980

svn path=/trunk/; revision=65874
2014-12-29 12:24:03 +00:00
Timo Kreuzer 5aebc94de8 [PSDK]
Improve some prototypes in wingdi.h

svn path=/trunk/; revision=65873
2014-12-29 12:01:23 +00:00
Hervé Poussineau 9cf08cfa62 [RAMDISK] Explicit the relation type check
svn path=/trunk/; revision=65872
2014-12-29 09:07:01 +00:00
Hervé Poussineau c45cee00e3 [RAMDISK] White space fixes
svn path=/trunk/; revision=65871
2014-12-29 09:06:58 +00:00
Pierre Schweitzer ff326f0703 [NTOSKRNL]
Use the PIP_REGISTRY_DATA() for DevicePropertyInstallState case in IoGetDeviceProperty()

svn path=/trunk/; revision=65870
2014-12-28 22:48:08 +00:00
Pierre Schweitzer 5dd10d76b0 [RAMDISK]
Implement support for IOCTL_DISK_CHECK_VERIFY, IOCTL_STORAGE_CHECK_VERIFY, IOCTL_STORAGE_CHECK_VERIFY2, IOCTL_CDROM_CHECK_VERIFY

svn path=/trunk/; revision=65869
2014-12-28 22:37:55 +00:00
Hervé Poussineau 994d960b81 [NTOS:IOMGR] When booting from a ramdisk, always assign drive letter X: to it
The only incomplete part to boot the LiveCD from PXE is some support in ramdisk.sys

svn path=/trunk/; revision=65868
2014-12-28 22:33:17 +00:00
Hervé Poussineau 74872db16c [NTOS:PNPMGR] Implement IoGetDeviceProperty/DevicePropertyInstallState case
svn path=/trunk/; revision=65867
2014-12-28 22:33:11 +00:00
Hervé Poussineau aa38d68da9 [FREELDR] Add missing dependency (required by scsiport.c)
svn path=/trunk/; revision=65866
2014-12-28 22:15:34 +00:00
Hervé Poussineau 3ce44c57db [WHOAMI] Better error message when we're unable to find the logon SID
svn path=/trunk/; revision=65865
2014-12-28 22:15:08 +00:00
Pierre Schweitzer a371a9b498 [NTOSKRNL]
Add missing specifiers

svn path=/trunk/; revision=65864
2014-12-28 21:29:32 +00:00
Hermès Bélusca-Maïto f2f466977a [WIN32K]
A bit of code reorganization:
- move a maximum of typedefs into their corresponding headers,
- move user heap functionality into a dedicated header,
- add a note in some functions that the first heap mapping entry in the W32 process info structure is dedicated for the global user heap mapping,
- remove extra-parenthesis in casts.

svn path=/trunk/; revision=65863
2014-12-28 20:50:35 +00:00
Pierre Schweitzer 1c36df367b [NTOSKRNL]
- In case of AssignSecurityDescriptor operation in IopGetSetSecurityObject(), put the security descriptor in cache before attempting the assignement
- In IopUnloadDevice(), don't attempt to free the security descriptor, let this to Ob by just derefencing it. Spotted & fixed by Thomas.

This unregresses VMware Tools installation.

CORE-7991

svn path=/trunk/; revision=65862
2014-12-28 18:31:06 +00:00
Hermès Bélusca-Maïto 3b73052bf8 [WIN32K]
Split init code into GDI part and USER part. Don't use Eng* functions to initialize the InputIdleEvent.
Part 2/x

svn path=/trunk/; revision=65861
2014-12-28 15:28:00 +00:00
Pierre Schweitzer 14cce518d3 [NTOSKRNL]
Also lock IopSecurityResource during access check in IopParseDevice

svn path=/trunk/; revision=65860
2014-12-28 13:15:14 +00:00
Thomas Faber 938f228699 [MSI]
- Apply Wine commit f41ac94e (msi: Include the terminating null in the buffer size for decoded stream names.) by Hans Leidekker. Fixes a stack buffer overflow when installing VMware Tools.

svn path=/trunk/; revision=65859
2014-12-28 13:05:48 +00:00
Hermès Bélusca-Maïto 37f198c7d6 [WIN32K]: Rework a bit the initialization code to modularize it a bit (some parts to be reused in other places). Part 1/x
svn path=/trunk/; revision=65858
2014-12-28 13:00:28 +00:00
Pierre Schweitzer 594d5a3366 [NTOSKRNL]
Acquire IopSecurityResource exclusive when required. Spotted by Thomas.

svn path=/trunk/; revision=65857
2014-12-28 12:57:58 +00:00
Pierre Schweitzer ecb6067cf0 [NTOSKRNL]
- Implement IopGetDeviceAttachmentBase() which allows getting the base device of the device stack given any device object in it
- Implement IopGetDevicePDO() which returns the physical device object of the device stack given any device object in it
- Implement IopSetDeviceSecurityDescriptor() which will swap the old security descriptor of a device object with a new provided one
- Implement IopSetDeviceSecurityDescriptors() which will swap the old security descriptor with a new provided one in all the device objects from the lowest provided to the uppest provided one.
- Fix a fixme in IopGetSetSecurityObject(), the operation SetSecurityDescriptor is now fully implemented for both PDO & DO.

This is required by VMware driver vmci.sys.
Even though, the installation doesn't get any better; it just changes the BSOD, we now face a memory corruption (in SE).

CORE-7991

svn path=/trunk/; revision=65856
2014-12-28 10:05:29 +00:00