Commit graph

62823 commits

Author SHA1 Message Date
Eric Kohl 6488706ef3 [USETUP]
Remove obsolete restriction info.

svn path=/trunk/; revision=68266
2015-06-25 20:20:21 +00:00
Ged Murphy b9e36d1c46 [DEVMGR]
- Add basic functionality for enabling and disabling devices. Make it accessible via the toolbar and main menu
- Implement checking whether a device has a problem and if a device can be uninstalled
- Implement getting, setting and removing device flags in the install params
- Fix creating and destroying the (currently empty) context menu

svn path=/trunk/; revision=68265
2015-06-25 18:59:23 +00:00
Thomas Faber 32e831b904 [SHELL32]
- Fix shell folder reference leak in _OpenDirectory.
CORE-9867

svn path=/trunk/; revision=68263
2015-06-25 14:04:02 +00:00
Thomas Faber 970ab0db9a [SHELL32]
- Fix reference leak in SHLoadInProc

svn path=/trunk/; revision=68261
2015-06-25 12:57:03 +00:00
Thomas Faber c46e00e0e7 [SHELL32]
- Fix shell folder reference leak in SHGetFileInfoW
CORE-9867

svn path=/trunk/; revision=68260
2015-06-25 12:51:38 +00:00
Eric Kohl da6ce53e1e [NTOSKRNL]
xHalIoReadPartitionTable: Do not return a valid partiton number for container partitions.

svn path=/trunk/; revision=68258
2015-06-24 20:22:19 +00:00
Eric Kohl 562e0f513f [USETUP]
- ReAllocateLayoutBuffer: Write all new partition table entries to the disk.
- UpdateDiskLayout:
  - Create link entries for logical partitions.
  - Wipe unused logical partiton table entries.

svn path=/trunk/; revision=68257
2015-06-24 20:06:33 +00:00
Hermès Bélusca-Maïto 406e3ca53b [GRMBL]: Fix build on *niks.
svn path=/trunk/; revision=68256
2015-06-24 20:00:23 +00:00
Hermès Bélusca-Maïto f4c0c8f78c [TOOLS_BIN2C]
- Fix a GCC warning (error on Macs) concerning the printf "%Iu" specifier.
- To make sure data included by bin2c, that need to be interpreted as a (long) string, is correctly NULL-terminated, introduce an output format called "STR": this creates a long character array using the "\xXX" format.
- To circumvent a silly limitation of MSVC (all versions?) about the maximum length (65535 bytes) of a char string (aka. char MyArray[] = "...my_long_string...";), introduced yet another output format called "BINSTR" which creates an array of bytes that is NULL-terminated (aka. char MyArray[] = {0xde, 0xad, 0xbe, 0xef, 0x00};).
- Finally, the output format "BIN" is the regular bin2c format (simple array of bytes).

[HAL_PCIDATA][FREELDR_INSTALL]
Use the above-described functionality (for HAL_PCIDATA, use BINSTR format because the PciVendors data is otherwise too large to be stored in "char_string" format).

svn path=/trunk/; revision=68255
2015-06-24 19:54:19 +00:00
Pierre Schweitzer 81d3bf2654 [NTFS]
- Bail out if no subnode is available
- It's unimplemented if subnodes are available

svn path=/trunk/; revision=68254
2015-06-24 19:21:04 +00:00
Christoph von Wittich 523cfe4c4e [HIDCLASS]
fix a "formatting bug"

svn path=/trunk/; revision=68251
2015-06-24 10:58:39 +00:00
Thomas Faber e243a508a4 [USBCCGP]
- Reset FunctionDescriptorCount to zero in USBCCGP_LegacyEnum since the function can be called multiple times
CORE-9226

svn path=/trunk/; revision=68250
2015-06-24 10:31:50 +00:00
Johannes Anderwald 943d65a922 [HIDCLASS]
- fix a bug

svn path=/trunk/; revision=68249
2015-06-24 10:13:15 +00:00
Thomas Faber 634ccedc1c [ROSAUTOTEST]
- Flush cout after each write as already done by Colin in r66855, per ROSTESTS-158
- Use DbgPrint instead of OutputDebugStringA again because the latter only calls the former anyway
Fixes test summary lines not being recognized by Testman, especially on VMware.

A little summary so we don't keep going back and forth with this function:
1) Only writing complete lines is required to that the output doesn't mix with debug output from other components. See r55618
2) OutputDebugStringA splits its input into 512-byte-sized blocks with no regard for line breaks, so using it with strings larger than 512 bytes breaks (1).
3) OutputDebugStringA eventually calls DbgPrint("%s", string) anyway so using it with chunks smaller than 512 bytes is not an optimization
As a result, yes this function MUST split up the lines itself, this can't be optimized or simplified away! kthxbye
ROSTESTS-178 #resolve

svn path=/trunk/; revision=68246
2015-06-23 10:06:38 +00:00
Thomas Faber 77ad885551 [ROSAUTOTEST]
- Revert r66855 to make the upcoming commit's diff show my actual changes.
ROSTESTS-178 ROSTESTS-158

svn path=/trunk/; revision=68245
2015-06-23 09:54:46 +00:00
Pierre Schweitzer f710a888d6 [CDFS]
In case of directory enumeration, validate the record earlier to really prevent any potentiel buffer overflow

CORE-9254

svn path=/trunk/; revision=68244
2015-06-23 06:54:44 +00:00
Thomas Faber 5ab078c226 [NTOS:MM]
- Print some debug information before asserting in MiRosUnmapViewOfSection.
CORE-9865

svn path=/trunk/; revision=68243
2015-06-22 20:47:56 +00:00
Pierre Schweitzer 1b62b46a8f [CDFS]
Prevent code duplication by making CdfsGetEntryName() call CdfsGetDirEntryName() which is now available driver-wide

svn path=/trunk/; revision=68242
2015-06-22 18:42:56 +00:00
Amine Khaldi d958941422 [CMD][EXPLORER] Properly track resource file dependencies. CORE-9806
svn path=/trunk/; revision=68241
2015-06-22 18:39:14 +00:00
Amine Khaldi b8911d58ce [LIVECD] Add the required folder for the favorites menu to work. By Barrett Karish. CORE-9780
svn path=/trunk/; revision=68240
2015-06-22 18:33:49 +00:00
Pierre Schweitzer 8329f09d38 [CDFS]
Revamp r68233:
- Don't duplicate code, implement checks in a helper function
- When checking name content, do it earlier for better performances
- Add extra checks to prevent a potential buffer overflow in case of Joliet names with illformed entries

CORE-9254

svn path=/trunk/; revision=68239
2015-06-22 17:27:47 +00:00
Amine Khaldi 44c6fbb63a [EXPLORER] Explicitly request applications to re-register their systray icons as soon as explorer is started. By Joachim Henze. CORE-9824
svn path=/trunk/; revision=68238
2015-06-22 16:01:43 +00:00
Christoph von Wittich c8d74211dc [USBEHCI]
fix some typos

svn path=/trunk/; revision=68236
2015-06-22 10:00:00 +00:00
Eric Kohl c1b19cee9b [USETUP]
UpdateDiskLayout:
- Resize the layout buffer if necessary.
- Start writing logical partitions to the disk.
- Disable the code that wipes unused table entries. May be enabled later.
Right now, you can only create one logical partition because the link entries are not created yet.

svn path=/trunk/; revision=68235
2015-06-21 20:18:23 +00:00
Thomas Faber 0617f84eda [RTL][NDK][NTDLL_APITEST]
- Properly implement/declare/test RtlCopyMappedMemory... it's not that hard
CORE-9857

svn path=/trunk/; revision=68234
2015-06-21 19:15:01 +00:00
Pierre Schweitzer adb3662527 [CDFS]
Add a few sanity checks to our handling of ISO 9660 / Joliet:
- Null name entries are forbidden
- Degenerated entries (mistmaching sizes) reveal broken layout

In both cases, the lookup for a file is aborted and the CD considered as corrupted by the FSD.
explorer displays empty CDs then.

CORE-9254 #resolve #comment Fixed with r68233

svn path=/trunk/; revision=68233
2015-06-21 16:47:23 +00:00
Thomas Faber 3faaa34e03 [RTL][NTDLL]
- Add basic implementations of RtlApplicationVerifierStop and RtlCopyMappedMemory for the benefit of some Windows dlls
CORE-9857 CORE-9858 #resolve

svn path=/trunk/; revision=68232
2015-06-21 16:38:44 +00:00
Pierre Schweitzer 8faad3f2aa [CDFS]
Remove redundant code now we have IRP context dispatch

svn path=/trunk/; revision=68231
2015-06-21 14:02:35 +00:00
Daniel Reimer a800f88087 [TRANSLATION]
Updating Turkish Translation by Erdem Ersoy
CORE-9755 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=68230
2015-06-21 11:20:39 +00:00
Eric Kohl ac6878aaab [FSLIB]
Remove the HiddenSectors hack because usetup initializes the HiddenSectors value properly.

svn path=/trunk/; revision=68229
2015-06-21 09:39:06 +00:00
Pierre Schweitzer bdc699aac8 [NTFS]
CcInitializeCacheMap can raise exceptions, wrap it into a SEH block

svn path=/trunk/; revision=68228
2015-06-21 09:26:15 +00:00
Thomas Faber f8ba038509 [NTOS:CC]
- Raise an exception in case of failure in CcInitializeCacheMap
CORE-9848

svn path=/trunk/; revision=68227
2015-06-21 09:20:01 +00:00
Eric Kohl 38638f5766 [USETUP]
UpdateDiskLayout:
- Set the proper HiddenSectors value.
- Fix counting the PartitonaNumber.
UpdatePartitionNumbers() has become obsolete. Remove it.

svn path=/trunk/; revision=68226
2015-06-21 08:55:43 +00:00
Thomas Faber e9138ce35a [NTDLL_APITEST]
- Add a test for SystemFlagsInformation that demonstrates the parameter checks performed by NtQuerySystemInformation/NtSetSystemInformation
CORE-9849

svn path=/trunk/; revision=68225
2015-06-21 08:50:10 +00:00
Pierre Schweitzer f633746280 [NTOSKNRL]
As shown by the non commited yet tests from Thomas, we have to check for privilege in NtSetSystemInformation - SystemFlagsInformation

svn path=/trunk/; revision=68224
2015-06-21 08:07:11 +00:00
Pierre Schweitzer c6f9fe3713 [NTOSKRNL]
- Probe input buffer for read in NtSetSystemInformation() and call the helpers function in a PSEH block
- For the NtSetSytemInformation - SystemSessionCreate specific case, as we return session ID, probe for write directly there.

svn path=/trunk/; revision=68223
2015-06-21 08:06:25 +00:00
Pierre Schweitzer c37f5f9e7c [NTOSKRNL]
Revert r68221: probing *should* be done in NtSetSystemInformation()
Let's check there why it's not done instead...

svn path=/trunk/; revision=68222
2015-06-21 05:46:38 +00:00
Pierre Schweitzer 103e282d2d [NTOSKRNL]
Don't trust the user!
Probe buffers in NtSetSystemInformation - SystemSessionCreate and in NtSetSystemInformation - SystemSessionDetach

svn path=/trunk/; revision=68221
2015-06-21 05:40:15 +00:00
Pierre Schweitzer 4453279e3e [NTOSKRNL]
Don't use SYSTEM_INFORMATION_CLASS definition from Wine but from NDK.
Fix naming accordingly

svn path=/trunk/; revision=68220
2015-06-21 05:33:53 +00:00
Thomas Faber 6607052bc0 [SHELL32]
- Use CreateViewObject instead of QueryInterface to get a drop target from a shell folder.
CORE-9846

svn path=/trunk/; revision=68219
2015-06-21 05:30:20 +00:00
Thomas Faber c146d77c04 [SHELL32]
- Finally give up on that assert. It's not easily fixable
CORE-9839 or CORE-9844 or CORE-9845 or whatever

svn path=/trunk/; revision=68218
2015-06-21 05:21:30 +00:00
Thomas Faber 3d3afdd225 [SHELL32]
- Test your code, Arch! Fix another assertion failure.
CORE-9845 #resolve

svn path=/trunk/; revision=68217
2015-06-21 04:56:38 +00:00
Aleksandar Andrejevic e2c2d3379b [NTVDM]
Begin upgrading the VGA emulation to SuperVGA emulation
(Cirrus Logic CL-GD5343 compatible).
This is still a WIP. So far only the VCLK and MCLK have been implemented.


svn path=/trunk/; revision=68216
2015-06-21 02:36:20 +00:00
Thomas Faber 8d850ac341 [SHELL32]
- Fix assertion failure in 2nd stage by setting s_IsTerminated when an instance does not yet exist.
- Rename CComCreatorSingleton to CComCreatorCentralInstance since it's not /technically/ a singleton

svn path=/trunk/; revision=68215
2015-06-20 21:46:16 +00:00
Eric Kohl f7bbd54974 [USETUP]
DumpPartitionTable: Improve the output and print the partition start and length in sectors instead of bytes.

svn path=/trunk/; revision=68214
2015-06-20 18:17:03 +00:00
Eric Kohl 566b655046 [USETUP]
AddDiskToList: Fix the allocation of the disk layout buffer.

CORE-9821 #resolve #comment Please retest.

svn path=/trunk/; revision=68213
2015-06-20 17:59:14 +00:00
Thomas Faber cf0e32066c [SHELL32]
- Also make My Computer a singleton, as shown by the CMyComputer test. With r68210 and this commit, SHFileOperation on a large number of files is approximately 3 times as fast.
CORE-9839 #resolve

svn path=/trunk/; revision=68212
2015-06-20 17:52:28 +00:00
Thomas Faber 1fd75ca0e4 [GRML]
- Fix build

svn path=/trunk/; revision=68211
2015-06-20 17:04:27 +00:00
Thomas Faber cc47f60138 [SHELL32]
- Introduce a CComCreatorSingleton class and use it for CDesktopFolder. Multiple calls to SHGetDesktopFolder will now return the same instance, which provides a massive speedup in many shell operations.
CORE-9839

svn path=/trunk/; revision=68210
2015-06-20 16:54:52 +00:00
Thomas Faber 6bb0bec44f [SHELL32_APITEST]
- Add a test for CLSID_MyComputer that shows this folder object is also cached.
CORE-9839

svn path=/trunk/; revision=68209
2015-06-20 16:28:38 +00:00