reactos.git
11 sec ago[NTFS] master trunk
pschweitzer [Tue, 30 Jun 2015 21:24:03 +0000 (21:24 +0000)]
[NTFS]
Fix user buffer handling for FSCTL_GET_NTFS_VOLUME_DATA. It fixes NTFSInfo.
We're just lacking a few information in the output data now

CORE-8725

git-svn-id: file:///srv/svn/reactos/trunk@68327 97493ccd-5924-5043-b1f5-66cb403b36ce

20 min ago[NTFSINFO]
pschweitzer [Tue, 30 Jun 2015 21:03:55 +0000 (21:03 +0000)]
[NTFSINFO]
Time to free some Sysinternals tool: ntfsinfo.

To make it short, this tool dumps various information about a NTFS volume and its reserved meta-data files

Our version comes with three advantages compared to the Russinovich's tool:
- It's FLOSS
- It works properly on NT5+ (developed with W2K3 & W7) whereas R's cannot display meta-data files information
- It will open a volume by default if none provided

One issue so far: it doesn't work properly on ReactOS!

CORE-8725

git-svn-id: file:///srv/svn/reactos/trunk@68326 97493ccd-5924-5043-b1f5-66cb403b36ce

2 hours ago[HDAUDBUS]
janderwald [Tue, 30 Jun 2015 19:06:36 +0000 (19:06 +0000)]
[HDAUDBUS]
- fix small bug

git-svn-id: file:///srv/svn/reactos/trunk@68325 97493ccd-5924-5043-b1f5-66cb403b36ce

8 hours ago[HDAUDBUS]
janderwald [Tue, 30 Jun 2015 12:37:39 +0000 (12:37 +0000)]
[HDAUDBUS]
- interface stub

git-svn-id: file:///srv/svn/reactos/trunk@68321 97493ccd-5924-5043-b1f5-66cb403b36ce

9 hours ago[HDAUDBUS]
janderwald [Tue, 30 Jun 2015 11:36:52 +0000 (11:36 +0000)]
[HDAUDBUS]
- move code
- set FILE_AUTOGENERATED_DEVICE_NAME for pdos. Hint by ThFabba
- driver now gets further

git-svn-id: file:///srv/svn/reactos/trunk@68320 97493ccd-5924-5043-b1f5-66cb403b36ce

9 hours ago[MSI_WINETEST]
tfaber [Tue, 30 Jun 2015 11:34:34 +0000 (11:34 +0000)]
[MSI_WINETEST]
- Skip msi:msi test if running on Windows in non-interactive mode. This should allow WHS-Testbot to get a bit further
ROSTESTS-180
ONLINE-441 ROSTESTS-179

git-svn-id: file:///srv/svn/reactos/trunk@68319 97493ccd-5924-5043-b1f5-66cb403b36ce

10 hours ago[KMTESTS:MM]
tfaber [Tue, 30 Jun 2015 10:54:41 +0000 (10:54 +0000)]
[KMTESTS:MM]
- Fix some massive NP pool leakage.

git-svn-id: file:///srv/svn/reactos/trunk@68318 97493ccd-5924-5043-b1f5-66cb403b36ce

11 hours ago[HDAUDBUS]
janderwald [Tue, 30 Jun 2015 10:16:41 +0000 (10:16 +0000)]
[HDAUDBUS]
- forward start device irp to lower device. Hint by ThFabba
- implement BusQueryCompatibleIDs

git-svn-id: file:///srv/svn/reactos/trunk@68317 97493ccd-5924-5043-b1f5-66cb403b36ce

24 hours ago[BROWSEUI]
pschweitzer [Mon, 29 Jun 2015 20:40:12 +0000 (20:40 +0000)]
[BROWSEUI]
Revert r68305 per Christoph's request

git-svn-id: file:///srv/svn/reactos/trunk@68316 97493ccd-5924-5043-b1f5-66cb403b36ce

24 hours ago[NTOSKRNL]
ekohl [Mon, 29 Jun 2015 20:29:19 +0000 (20:29 +0000)]
[NTOSKRNL]
Fix CmpDestroyHiveViewList adding checks for empty lists.

Thank you very much Thomas!

git-svn-id: file:///srv/svn/reactos/trunk@68315 97493ccd-5924-5043-b1f5-66cb403b36ce

26 hours ago[NTOSKRNL]
ekohl [Mon, 29 Jun 2015 18:50:18 +0000 (18:50 +0000)]
[NTOSKRNL]
Disable code in CmpDestroyHiveViewList(). Needs more testing!

git-svn-id: file:///srv/svn/reactos/trunk@68314 97493ccd-5924-5043-b1f5-66cb403b36ce

26 hours ago[NTOSKRNL]
ekohl [Mon, 29 Jun 2015 18:26:56 +0000 (18:26 +0000)]
[NTOSKRNL]
Add CmpDestroySecurityCache() and CmpDestroyHiveViewList() stubs and call them in CmpDestroyHive and CmUnloadKey().

CORE-6492 #resolve #comment Thank you Hermes! This is exactly what I needed!

git-svn-id: file:///srv/svn/reactos/trunk@68313 97493ccd-5924-5043-b1f5-66cb403b36ce

28 hours ago[HDAUDBUS]
janderwald [Mon, 29 Jun 2015 17:10:04 +0000 (17:10 +0000)]
[HDAUDBUS]
- add driver inf
- fix build for gcc builds

git-svn-id: file:///srv/svn/reactos/trunk@68312 97493ccd-5924-5043-b1f5-66cb403b36ce

28 hours ago[HDAUDBUS]
janderwald [Mon, 29 Jun 2015 17:03:33 +0000 (17:03 +0000)]
[HDAUDBUS]
- start implementing HDAUDIO Bus driver
- based heavily on Haiku exellent driver

git-svn-id: file:///srv/svn/reactos/trunk@68311 97493ccd-5924-5043-b1f5-66cb403b36ce

47 hours ago[NTFS]
pschweitzer [Sun, 28 Jun 2015 21:26:19 +0000 (21:26 +0000)]
[NTFS]
Simplify the implementation of NtfsGetFileSize()

git-svn-id: file:///srv/svn/reactos/trunk@68310 97493ccd-5924-5043-b1f5-66cb403b36ce

2 days ago[NTFS]
pschweitzer [Sun, 28 Jun 2015 21:16:03 +0000 (21:16 +0000)]
[NTFS]
Validate the stream we're trying to open properly exists.
This check might have to be moved later on when the driver switches to RW

git-svn-id: file:///srv/svn/reactos/trunk@68309 97493ccd-5924-5043-b1f5-66cb403b36ce

2 days ago[NTFS]
pschweitzer [Sun, 28 Jun 2015 20:55:29 +0000 (20:55 +0000)]
[NTFS]
Always gather the size of the unnamed stream for directory display.
This fixes file size display when there are several data streams available

git-svn-id: file:///srv/svn/reactos/trunk@68308 97493ccd-5924-5043-b1f5-66cb403b36ce

2 days ago[USETUP]
ekohl [Sun, 28 Jun 2015 19:06:07 +0000 (19:06 +0000)]
[USETUP]
Restrict valid characters of the install path to:
- Letters
- Digits
- Dots (.)
- Backslashes (\)
- Dashes (-)
- Underscores (_)

CORE-6179 #resolve

git-svn-id: file:///srv/svn/reactos/trunk@68307 97493ccd-5924-5043-b1f5-66cb403b36ce

2 days ago[NTOS]
hbelusca [Sun, 28 Jun 2015 18:52:51 +0000 (18:52 +0000)]
[NTOS]
- Do not forget to initialize LoadDll->NamePointer in DbgkMapViewOfSection!!
- Just copy the NamePointer (pointer to pointer to file name) in DbgUiConvertStateChangeStructure. See the description of the lpImageName member of the LOAD_DLL_DEBUG_INFO structure in https://msdn.microsoft.com/en-us/library/windows/desktop/ms680351(v=vs.85).aspx for more details.

This fixes some debugging stuff with GDB (see the below-mentioned report).

Adapted from a patch by andy-123 (whom I don't remember his name^^),
CORE-7019 #resolve #comment Fixed in r68306
CORE-8622 #comment An updated fix was committed in r68306

git-svn-id: file:///srv/svn/reactos/trunk@68306 97493ccd-5924-5043-b1f5-66cb403b36ce

2 days ago[BROWSEUI]
cwittich [Sun, 28 Jun 2015 18:22:02 +0000 (18:22 +0000)]
[BROWSEUI]
don't expose some interfaces
expose IID_IContextMenu3 from CBandSiteMenu

git-svn-id: file:///srv/svn/reactos/trunk@68305 97493ccd-5924-5043-b1f5-66cb403b36ce

2 days ago[CMLIB]
ekohl [Sun, 28 Jun 2015 15:41:18 +0000 (15:41 +0000)]
[CMLIB]
HvFree:
- Free the BaseBlock.
- Do not free the hive itself because the HHIVE is part of the CMHIVE structure and freeing it here could be an unpleasant surprise.

[NTOSKRNL]
CmpDestroyHive: Free the CMHIVE after calling HvFree.
CmUnloadKey: Free the hive storage, the hive locks and the CMHIVE properly.

git-svn-id: file:///srv/svn/reactos/trunk@68303 97493ccd-5924-5043-b1f5-66cb403b36ce

2 days ago[NTFS]
pschweitzer [Sun, 28 Jun 2015 13:14:07 +0000 (13:14 +0000)]
[NTFS]
Implement support for NTFS $DATA streams:
- The driver is now able to read various streams for a same file, using the same syntax as Windows.
- This fixes to read (in general) files with multiple streams where reading unnamed stream was leading to read beyond file end
- Also fix reading small files which are smaller than a sector

For demo, see: http://www.heisspiter.net/~Pierre/rostests/NTFS_Streams.png

git-svn-id: file:///srv/svn/reactos/trunk@68302 97493ccd-5924-5043-b1f5-66cb403b36ce

2 days ago[KERNEL32]
cwittich [Sun, 28 Jun 2015 13:06:43 +0000 (13:06 +0000)]
[KERNEL32]
warn about unimplemented MB_ERR_INVALID_CHARS case

git-svn-id: file:///srv/svn/reactos/trunk@68301 97493ccd-5924-5043-b1f5-66cb403b36ce

2 days ago[KERNEL32]
cwittich [Sun, 28 Jun 2015 12:34:01 +0000 (12:34 +0000)]
[KERNEL32]
return the thread ansicodepage when no ansicodepage exists for a specific lcid in CP_THREAD_ACP case

git-svn-id: file:///srv/svn/reactos/trunk@68300 97493ccd-5924-5043-b1f5-66cb403b36ce

2 days ago[KERNEL32]
cwittich [Sun, 28 Jun 2015 10:21:52 +0000 (10:21 +0000)]
[KERNEL32]
replace WideCharToUtf7 with wine version

git-svn-id: file:///srv/svn/reactos/trunk@68299 97493ccd-5924-5043-b1f5-66cb403b36ce

2 days ago[SHELL32]:Add SmartCard icon from Tango; patch by Lee Schroeder.
hbelusca [Sun, 28 Jun 2015 10:05:56 +0000 (10:05 +0000)]
[SHELL32]:Add SmartCard icon from Tango; patch by Lee Schroeder.
CORE-9888 #resolve

git-svn-id: file:///srv/svn/reactos/trunk@68298 97493ccd-5924-5043-b1f5-66cb403b36ce

2 days ago[KERNEL32]
cwittich [Sun, 28 Jun 2015 09:00:03 +0000 (09:00 +0000)]
[KERNEL32]
replace Utf7ToWideChar with wine version

git-svn-id: file:///srv/svn/reactos/trunk@68297 97493ccd-5924-5043-b1f5-66cb403b36ce

3 days agofix a typo
cwittich [Sat, 27 Jun 2015 19:30:17 +0000 (19:30 +0000)]
fix a typo

git-svn-id: file:///srv/svn/reactos/trunk@68296 97493ccd-5924-5043-b1f5-66cb403b36ce

3 days ago[NTOSKRNL]
ekohl [Sat, 27 Jun 2015 19:26:12 +0000 (19:26 +0000)]
[NTOSKRNL]
Implement NtUnloadKey2. TODO: Destroy the unlinked hive.
CORE-3094

git-svn-id: file:///srv/svn/reactos/trunk@68295 97493ccd-5924-5043-b1f5-66cb403b36ce

3 days ago[KBSWITCH] Improve mouse events handling. By Joachim Henze. CORE-9883
akhaldi [Sat, 27 Jun 2015 17:15:38 +0000 (17:15 +0000)]
[KBSWITCH] Improve mouse events handling. By Joachim Henze. CORE-9883

git-svn-id: file:///srv/svn/reactos/trunk@68294 97493ccd-5924-5043-b1f5-66cb403b36ce

3 days ago[DESK] Use pixels instead of Pixel. By Jared Smudde. CORE-9738
akhaldi [Sat, 27 Jun 2015 17:09:04 +0000 (17:09 +0000)]
[DESK] Use pixels instead of Pixel. By Jared Smudde. CORE-9738

git-svn-id: file:///srv/svn/reactos/trunk@68293 97493ccd-5924-5043-b1f5-66cb403b36ce

3 days ago[NTFS]
pschweitzer [Sat, 27 Jun 2015 15:06:25 +0000 (15:06 +0000)]
[NTFS]
When dumping attributes, also dump attributes from the $ATTRIBUTE_LIST if present

git-svn-id: file:///srv/svn/reactos/trunk@68291 97493ccd-5924-5043-b1f5-66cb403b36ce

3 days ago[NTFS]
pschweitzer [Sat, 27 Jun 2015 13:40:05 +0000 (13:40 +0000)]
[NTFS]
While handling IRP_MN_QUERY_DIRECTORY, in case there is no $FILE_NAME attribute, dump file attributes & MFT ID.
This fixes ASSERT failure when browsing some Win7 volumes

git-svn-id: file:///srv/svn/reactos/trunk@68290 97493ccd-5924-5043-b1f5-66cb403b36ce

3 days ago[DEVMGMT] Free this module from the devil. Addendum to r68185. Spotted by fox_anthony.
akhaldi [Sat, 27 Jun 2015 13:05:01 +0000 (13:05 +0000)]
[DEVMGMT] Free this module from the devil. Addendum to r68185. Spotted by fox_anthony.

git-svn-id: file:///srv/svn/reactos/trunk@68289 97493ccd-5924-5043-b1f5-66cb403b36ce

3 days ago[NTOS:KE]
tfaber [Sat, 27 Jun 2015 10:58:32 +0000 (10:58 +0000)]
[NTOS:KE]
- Fix a typo in KiGetCacheInformation. Spotted by Mike.

git-svn-id: file:///srv/svn/reactos/trunk@68287 97493ccd-5924-5043-b1f5-66cb403b36ce

3 days ago[NTFS]
pschweitzer [Sat, 27 Jun 2015 09:04:39 +0000 (09:04 +0000)]
[NTFS]
Dump available streams (if any!) in case unnamed stream isn't available when trying to read a file

git-svn-id: file:///srv/svn/reactos/trunk@68286 97493ccd-5924-5043-b1f5-66cb403b36ce

3 days ago[NTFS]
pschweitzer [Sat, 27 Jun 2015 08:55:34 +0000 (08:55 +0000)]
[NTFS]
Don't attempt to open the unnamed stream from $DATA attribute on file lookup. It was unused & leaking.

It fixes opening files that don't have unnamed stream (even though we cannot read there contents yet as we only support unnamed stream)

git-svn-id: file:///srv/svn/reactos/trunk@68285 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[USERENV] Add %HOMEDRIVE% and %HOMEPATH% environment variables. Brought to you by...
akhaldi [Fri, 26 Jun 2015 18:59:25 +0000 (18:59 +0000)]
[USERENV] Add %HOMEDRIVE% and %HOMEPATH% environment variables. Brought to you by Radek Li┼íka. CORE-9875

git-svn-id: file:///srv/svn/reactos/trunk@68284 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[SHELL32] Get the Run dialog icon from shell32. By Jared Smudde. CORE-9837
akhaldi [Fri, 26 Jun 2015 18:32:57 +0000 (18:32 +0000)]
[SHELL32] Get the Run dialog icon from shell32. By Jared Smudde. CORE-9837

git-svn-id: file:///srv/svn/reactos/trunk@68283 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[MSIEXEC][RUNONCE][WINLOGON] Properly track resource file dependencies. CORE-9806
akhaldi [Fri, 26 Jun 2015 18:04:31 +0000 (18:04 +0000)]
[MSIEXEC][RUNONCE][WINLOGON] Properly track resource file dependencies. CORE-9806

git-svn-id: file:///srv/svn/reactos/trunk@68282 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[IEFRAME] Add some missing quotes to ieframe.rc. NFC. Spotted by Jared Smudde. CORE...
akhaldi [Fri, 26 Jun 2015 17:33:45 +0000 (17:33 +0000)]
[IEFRAME] Add some missing quotes to ieframe.rc. NFC. Spotted by Jared Smudde. CORE-9843

git-svn-id: file:///srv/svn/reactos/trunk@68281 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[KBSWITCH] Re-register the systray icon after explorer restart. By Joachim Henze...
akhaldi [Fri, 26 Jun 2015 17:18:26 +0000 (17:18 +0000)]
[KBSWITCH] Re-register the systray icon after explorer restart. By Joachim Henze. CORE-9869

git-svn-id: file:///srv/svn/reactos/trunk@68280 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[DDK] Annotate hdaudio.h. CORE-9882
akhaldi [Fri, 26 Jun 2015 16:44:31 +0000 (16:44 +0000)]
[DDK] Annotate hdaudio.h. CORE-9882

git-svn-id: file:///srv/svn/reactos/trunk@68279 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[DDK] Bring hdaudio.h to DDK formatting. NFC.
akhaldi [Fri, 26 Jun 2015 16:32:40 +0000 (16:32 +0000)]
[DDK] Bring hdaudio.h to DDK formatting. NFC.

git-svn-id: file:///srv/svn/reactos/trunk@68278 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[DDK] Explicitly mark the function pointers as NTAPI. CORE-9882
akhaldi [Fri, 26 Jun 2015 16:20:37 +0000 (16:20 +0000)]
[DDK] Explicitly mark the function pointers as NTAPI. CORE-9882

git-svn-id: file:///srv/svn/reactos/trunk@68277 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[DDK]
janderwald [Fri, 26 Jun 2015 14:42:09 +0000 (14:42 +0000)]
[DDK]
- add hdaudio.h

git-svn-id: file:///srv/svn/reactos/trunk@68276 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[MSIMTF]
tfaber [Fri, 26 Jun 2015 12:27:54 +0000 (12:27 +0000)]
[MSIMTF]
- Add a stub implementation for IActiveIMMMessagePumpOwner.
- Use #ifdef __REACTOS__ to mark a ROS-diff
CORE-4953 #resolve

git-svn-id: file:///srv/svn/reactos/trunk@68275 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[NTOS:MM]
tfaber [Fri, 26 Jun 2015 11:02:40 +0000 (11:02 +0000)]
[NTOS:MM]
- Do not request a page in MiAllocatePagesForMdl if no pages are available. Fixes kmtest:MmMdl.
CORE-9879 #resolve

git-svn-id: file:///srv/svn/reactos/trunk@68274 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[NTOS:MM]
tfaber [Fri, 26 Jun 2015 10:40:49 +0000 (10:40 +0000)]
[NTOS:MM]
- Mark the page as being on the standby list before dereferencing it in MmFreePagesFromMdl. Since the PFN is marked as deleted, MiDecrementReferenceCount will correctly insert it into the free list, but this is required to satisfy MiDecrementReferenceCount's sanity check.
CORE-9877 #resolve

git-svn-id: file:///srv/svn/reactos/trunk@68273 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[DEVMGR]
gedmurphy [Fri, 26 Jun 2015 08:45:49 +0000 (08:45 +0000)]
[DEVMGR]
- Add support for selecting any device when refreshing the view. This allows us to re-select a device after it's been enabled instead of collapsing the tree and losing track of what you did.
- Plug some memory leaks
- HeapAlloc -> new

git-svn-id: file:///srv/svn/reactos/trunk@68272 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[KMTESTS:MM]
tfaber [Fri, 26 Jun 2015 07:31:01 +0000 (07:31 +0000)]
[KMTESTS:MM]
- Add a test for MmAllocatePagesForMdl

git-svn-id: file:///srv/svn/reactos/trunk@68271 97493ccd-5924-5043-b1f5-66cb403b36ce

4 days ago[VIDEOPRT]
cwittich [Fri, 26 Jun 2015 06:14:15 +0000 (06:14 +0000)]
[VIDEOPRT]
export functions needed by gfx drivers
patch by Mike Nordell
CORE-9808

git-svn-id: file:///srv/svn/reactos/trunk@68270 97493ccd-5924-5043-b1f5-66cb403b36ce

5 days ago[NTFS]
pschweitzer [Thu, 25 Jun 2015 20:51:30 +0000 (20:51 +0000)]
[NTFS]
In NtfsFindFileAt() directly print first entry value instead of its address

git-svn-id: file:///srv/svn/reactos/trunk@68269 97493ccd-5924-5043-b1f5-66cb403b36ce

5 days ago[NTFS]
pschweitzer [Thu, 25 Jun 2015 20:49:40 +0000 (20:49 +0000)]
[NTFS]
Don't attempt to read the unnamed stream of the $DATA attribute of each file matching:
- We don't need such attribute later on
- In case there's no such unammed stream, finding the file fails, whereas the file really exist

This fixes (at least here) browsing Win7 NTFS system drives, where our driver was always failing on pagefile.sys

git-svn-id: file:///srv/svn/reactos/trunk@68268 97493ccd-5924-5043-b1f5-66cb403b36ce

5 days ago[DEVMGR]
gedmurphy [Thu, 25 Jun 2015 20:34:57 +0000 (20:34 +0000)]
[DEVMGR]
- When disabling a device, show the user a message box to confirm before disabling
- Some code cleanup

git-svn-id: file:///srv/svn/reactos/trunk@68267 97493ccd-5924-5043-b1f5-66cb403b36ce

5 days ago[USETUP]
ekohl [Thu, 25 Jun 2015 20:20:21 +0000 (20:20 +0000)]
[USETUP]
Remove obsolete restriction info.

git-svn-id: file:///srv/svn/reactos/trunk@68266 97493ccd-5924-5043-b1f5-66cb403b36ce

5 days ago[DEVMGR]
gedmurphy [Thu, 25 Jun 2015 18:59:23 +0000 (18:59 +0000)]
[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

git-svn-id: file:///srv/svn/reactos/trunk@68265 97493ccd-5924-5043-b1f5-66cb403b36ce

5 days ago[SHELL32]
tfaber [Thu, 25 Jun 2015 14:04:02 +0000 (14:04 +0000)]
[SHELL32]
- Fix shell folder reference leak in _OpenDirectory.
CORE-9867

git-svn-id: file:///srv/svn/reactos/trunk@68263 97493ccd-5924-5043-b1f5-66cb403b36ce

5 days ago[SHELL32]
tfaber [Thu, 25 Jun 2015 12:57:03 +0000 (12:57 +0000)]
[SHELL32]
- Fix reference leak in SHLoadInProc

git-svn-id: file:///srv/svn/reactos/trunk@68261 97493ccd-5924-5043-b1f5-66cb403b36ce

5 days ago[SHELL32]
tfaber [Thu, 25 Jun 2015 12:51:38 +0000 (12:51 +0000)]
[SHELL32]
- Fix shell folder reference leak in SHGetFileInfoW
CORE-9867

git-svn-id: file:///srv/svn/reactos/trunk@68260 97493ccd-5924-5043-b1f5-66cb403b36ce

6 days ago[NTOSKRNL]
ekohl [Wed, 24 Jun 2015 20:22:19 +0000 (20:22 +0000)]
[NTOSKRNL]
xHalIoReadPartitionTable: Do not return a valid partiton number for container partitions.

git-svn-id: file:///srv/svn/reactos/trunk@68258 97493ccd-5924-5043-b1f5-66cb403b36ce

6 days ago[USETUP]
ekohl [Wed, 24 Jun 2015 20:06:33 +0000 (20:06 +0000)]
[USETUP]
- ReAllocateLayoutBuffer: Write all new partition table entries to the disk.
- UpdateDiskLayout:
  - Create link entries for logical partitions.
  - Wipe unused logical partiton table entries.

git-svn-id: file:///srv/svn/reactos/trunk@68257 97493ccd-5924-5043-b1f5-66cb403b36ce

6 days ago[GRMBL]: Fix build on *niks.
hbelusca [Wed, 24 Jun 2015 20:00:23 +0000 (20:00 +0000)]
[GRMBL]: Fix build on *niks.

git-svn-id: file:///srv/svn/reactos/trunk@68256 97493ccd-5924-5043-b1f5-66cb403b36ce

6 days ago[TOOLS_BIN2C]
hbelusca [Wed, 24 Jun 2015 19:54:19 +0000 (19:54 +0000)]
[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).

git-svn-id: file:///srv/svn/reactos/trunk@68255 97493ccd-5924-5043-b1f5-66cb403b36ce

6 days ago[NTFS]
pschweitzer [Wed, 24 Jun 2015 19:21:04 +0000 (19:21 +0000)]
[NTFS]
- Bail out if no subnode is available
- It's unimplemented if subnodes are available

git-svn-id: file:///srv/svn/reactos/trunk@68254 97493ccd-5924-5043-b1f5-66cb403b36ce

6 days ago[HIDCLASS]
cwittich [Wed, 24 Jun 2015 10:58:39 +0000 (10:58 +0000)]
[HIDCLASS]
fix a "formatting bug"

git-svn-id: file:///srv/svn/reactos/trunk@68251 97493ccd-5924-5043-b1f5-66cb403b36ce

6 days ago[USBCCGP]
tfaber [Wed, 24 Jun 2015 10:31:50 +0000 (10:31 +0000)]
[USBCCGP]
- Reset FunctionDescriptorCount to zero in USBCCGP_LegacyEnum since the function can be called multiple times
CORE-9226

git-svn-id: file:///srv/svn/reactos/trunk@68250 97493ccd-5924-5043-b1f5-66cb403b36ce

6 days ago[HIDCLASS]
janderwald [Wed, 24 Jun 2015 10:13:15 +0000 (10:13 +0000)]
[HIDCLASS]
- fix a bug

git-svn-id: file:///srv/svn/reactos/trunk@68249 97493ccd-5924-5043-b1f5-66cb403b36ce

7 days ago[ROSAUTOTEST]
tfaber [Tue, 23 Jun 2015 10:06:38 +0000 (10:06 +0000)]
[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

git-svn-id: file:///srv/svn/reactos/trunk@68246 97493ccd-5924-5043-b1f5-66cb403b36ce

7 days ago[ROSAUTOTEST]
tfaber [Tue, 23 Jun 2015 09:54:46 +0000 (09:54 +0000)]
[ROSAUTOTEST]
- Revert r66855 to make the upcoming commit's diff show my actual changes.
ROSTESTS-178 ROSTESTS-158

git-svn-id: file:///srv/svn/reactos/trunk@68245 97493ccd-5924-5043-b1f5-66cb403b36ce

7 days ago[CDFS]
pschweitzer [Tue, 23 Jun 2015 06:54:44 +0000 (06:54 +0000)]
[CDFS]
In case of directory enumeration, validate the record earlier to really prevent any potentiel buffer overflow

CORE-9254

git-svn-id: file:///srv/svn/reactos/trunk@68244 97493ccd-5924-5043-b1f5-66cb403b36ce

8 days ago[NTOS:MM]
tfaber [Mon, 22 Jun 2015 20:47:56 +0000 (20:47 +0000)]
[NTOS:MM]
- Print some debug information before asserting in MiRosUnmapViewOfSection.
CORE-9865

git-svn-id: file:///srv/svn/reactos/trunk@68243 97493ccd-5924-5043-b1f5-66cb403b36ce

8 days ago[CDFS]
pschweitzer [Mon, 22 Jun 2015 18:42:56 +0000 (18:42 +0000)]
[CDFS]
Prevent code duplication by making CdfsGetEntryName() call CdfsGetDirEntryName() which is now available driver-wide

git-svn-id: file:///srv/svn/reactos/trunk@68242 97493ccd-5924-5043-b1f5-66cb403b36ce

8 days ago[CMD][EXPLORER] Properly track resource file dependencies. CORE-9806
akhaldi [Mon, 22 Jun 2015 18:39:14 +0000 (18:39 +0000)]
[CMD][EXPLORER] Properly track resource file dependencies. CORE-9806

git-svn-id: file:///srv/svn/reactos/trunk@68241 97493ccd-5924-5043-b1f5-66cb403b36ce

8 days ago[LIVECD] Add the required folder for the favorites menu to work. By Barrett Karish...
akhaldi [Mon, 22 Jun 2015 18:33:49 +0000 (18:33 +0000)]
[LIVECD] Add the required folder for the favorites menu to work. By Barrett Karish. CORE-9780

git-svn-id: file:///srv/svn/reactos/trunk@68240 97493ccd-5924-5043-b1f5-66cb403b36ce

8 days ago[CDFS]
pschweitzer [Mon, 22 Jun 2015 17:27:47 +0000 (17:27 +0000)]
[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

git-svn-id: file:///srv/svn/reactos/trunk@68239 97493ccd-5924-5043-b1f5-66cb403b36ce

8 days ago[EXPLORER] Explicitly request applications to re-register their systray icons as...
akhaldi [Mon, 22 Jun 2015 16:01:43 +0000 (16:01 +0000)]
[EXPLORER] Explicitly request applications to re-register their systray icons as soon as explorer is started. By Joachim Henze. CORE-9824

git-svn-id: file:///srv/svn/reactos/trunk@68238 97493ccd-5924-5043-b1f5-66cb403b36ce

8 days ago[USBEHCI]
cwittich [Mon, 22 Jun 2015 10:00:00 +0000 (10:00 +0000)]
[USBEHCI]
fix some typos

git-svn-id: file:///srv/svn/reactos/trunk@68236 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[USETUP]
ekohl [Sun, 21 Jun 2015 20:18:23 +0000 (20:18 +0000)]
[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.

git-svn-id: file:///srv/svn/reactos/trunk@68235 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[RTL][NDK][NTDLL_APITEST]
tfaber [Sun, 21 Jun 2015 19:15:01 +0000 (19:15 +0000)]
[RTL][NDK][NTDLL_APITEST]
- Properly implement/declare/test RtlCopyMappedMemory... it's not that hard
CORE-9857

git-svn-id: file:///srv/svn/reactos/trunk@68234 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[CDFS]
pschweitzer [Sun, 21 Jun 2015 16:47:23 +0000 (16:47 +0000)]
[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

git-svn-id: file:///srv/svn/reactos/trunk@68233 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[RTL][NTDLL]
tfaber [Sun, 21 Jun 2015 16:38:44 +0000 (16:38 +0000)]
[RTL][NTDLL]
- Add basic implementations of RtlApplicationVerifierStop and RtlCopyMappedMemory for the benefit of some Windows dlls
CORE-9857 CORE-9858 #resolve

git-svn-id: file:///srv/svn/reactos/trunk@68232 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[CDFS]
pschweitzer [Sun, 21 Jun 2015 14:02:35 +0000 (14:02 +0000)]
[CDFS]
Remove redundant code now we have IRP context dispatch

git-svn-id: file:///srv/svn/reactos/trunk@68231 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[TRANSLATION]
dreimer [Sun, 21 Jun 2015 11:20:39 +0000 (11:20 +0000)]
[TRANSLATION]
Updating Turkish Translation by Erdem Ersoy
CORE-9755 #resolve #comment Committed, thx ^^

git-svn-id: file:///srv/svn/reactos/trunk@68230 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[FSLIB]
ekohl [Sun, 21 Jun 2015 09:39:06 +0000 (09:39 +0000)]
[FSLIB]
Remove the HiddenSectors hack because usetup initializes the HiddenSectors value properly.

git-svn-id: file:///srv/svn/reactos/trunk@68229 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[NTFS]
pschweitzer [Sun, 21 Jun 2015 09:26:15 +0000 (09:26 +0000)]
[NTFS]
CcInitializeCacheMap can raise exceptions, wrap it into a SEH block

git-svn-id: file:///srv/svn/reactos/trunk@68228 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[NTOS:CC]
tfaber [Sun, 21 Jun 2015 09:20:01 +0000 (09:20 +0000)]
[NTOS:CC]
- Raise an exception in case of failure in CcInitializeCacheMap
CORE-9848

git-svn-id: file:///srv/svn/reactos/trunk@68227 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[USETUP]
ekohl [Sun, 21 Jun 2015 08:55:43 +0000 (08:55 +0000)]
[USETUP]
UpdateDiskLayout:
- Set the proper HiddenSectors value.
- Fix counting the PartitonaNumber.
UpdatePartitionNumbers() has become obsolete. Remove it.

git-svn-id: file:///srv/svn/reactos/trunk@68226 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[NTDLL_APITEST]
tfaber [Sun, 21 Jun 2015 08:50:10 +0000 (08:50 +0000)]
[NTDLL_APITEST]
- Add a test for SystemFlagsInformation that demonstrates the parameter checks performed by NtQuerySystemInformation/NtSetSystemInformation
CORE-9849

git-svn-id: file:///srv/svn/reactos/trunk@68225 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[NTOSKNRL]
pschweitzer [Sun, 21 Jun 2015 08:07:11 +0000 (08:07 +0000)]
[NTOSKNRL]
As shown by the non commited yet tests from Thomas, we have to check for privilege in NtSetSystemInformation - SystemFlagsInformation

git-svn-id: file:///srv/svn/reactos/trunk@68224 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[NTOSKRNL]
pschweitzer [Sun, 21 Jun 2015 08:06:25 +0000 (08:06 +0000)]
[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.

git-svn-id: file:///srv/svn/reactos/trunk@68223 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[NTOSKRNL]
pschweitzer [Sun, 21 Jun 2015 05:46:38 +0000 (05:46 +0000)]
[NTOSKRNL]
Revert r68221: probing *should* be done in NtSetSystemInformation()
Let's check there why it's not done instead...

git-svn-id: file:///srv/svn/reactos/trunk@68222 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[NTOSKRNL]
pschweitzer [Sun, 21 Jun 2015 05:40:15 +0000 (05:40 +0000)]
[NTOSKRNL]
Don't trust the user!
Probe buffers in NtSetSystemInformation - SystemSessionCreate and in NtSetSystemInformation - SystemSessionDetach

git-svn-id: file:///srv/svn/reactos/trunk@68221 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[NTOSKRNL]
pschweitzer [Sun, 21 Jun 2015 05:33:53 +0000 (05:33 +0000)]
[NTOSKRNL]
Don't use SYSTEM_INFORMATION_CLASS definition from Wine but from NDK.
Fix naming accordingly

git-svn-id: file:///srv/svn/reactos/trunk@68220 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[SHELL32]
tfaber [Sun, 21 Jun 2015 05:30:20 +0000 (05:30 +0000)]
[SHELL32]
- Use CreateViewObject instead of QueryInterface to get a drop target from a shell folder.
CORE-9846

git-svn-id: file:///srv/svn/reactos/trunk@68219 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[SHELL32]
tfaber [Sun, 21 Jun 2015 05:21:30 +0000 (05:21 +0000)]
[SHELL32]
- Finally give up on that assert. It's not easily fixable
CORE-9839 or CORE-9844 or CORE-9845 or whatever

git-svn-id: file:///srv/svn/reactos/trunk@68218 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[SHELL32]
tfaber [Sun, 21 Jun 2015 04:56:38 +0000 (04:56 +0000)]
[SHELL32]
- Test your code, Arch! Fix another assertion failure.
CORE-9845 #resolve

git-svn-id: file:///srv/svn/reactos/trunk@68217 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[NTVDM]
aandrejevic [Sun, 21 Jun 2015 02:36:20 +0000 (02:36 +0000)]
[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.

git-svn-id: file:///srv/svn/reactos/trunk@68216 97493ccd-5924-5043-b1f5-66cb403b36ce

9 days ago[SHELL32]
tfaber [Sat, 20 Jun 2015 21:46:16 +0000 (21:46 +0000)]
[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

git-svn-id: file:///srv/svn/reactos/trunk@68215 97493ccd-5924-5043-b1f5-66cb403b36ce

10 days ago[USETUP]
ekohl [Sat, 20 Jun 2015 18:17:03 +0000 (18:17 +0000)]
[USETUP]
DumpPartitionTable: Improve the output and print the partition start and length in sectors instead of bytes.

git-svn-id: file:///srv/svn/reactos/trunk@68214 97493ccd-5924-5043-b1f5-66cb403b36ce