Commit graph

62760 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto 0bc85fb9f3 [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

svn path=/trunk/; revision=68306
2015-06-28 18:52:51 +00:00
Christoph von Wittich 143664a895 [BROWSEUI]
don't expose some interfaces
expose IID_IContextMenu3 from CBandSiteMenu

svn path=/trunk/; revision=68305
2015-06-28 18:22:02 +00:00
Eric Kohl 2423b35126 [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.

svn path=/trunk/; revision=68303
2015-06-28 15:41:18 +00:00
Pierre Schweitzer fbff7e0e47 [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

svn path=/trunk/; revision=68302
2015-06-28 13:14:07 +00:00
Christoph von Wittich ec8ef644e3 [KERNEL32]
warn about unimplemented MB_ERR_INVALID_CHARS case

svn path=/trunk/; revision=68301
2015-06-28 13:06:43 +00:00
Christoph von Wittich f399e4f3e4 [KERNEL32]
return the thread ansicodepage when no ansicodepage exists for a specific lcid in CP_THREAD_ACP case

svn path=/trunk/; revision=68300
2015-06-28 12:34:01 +00:00
Christoph von Wittich 9ea5cf5ae9 [KERNEL32]
replace WideCharToUtf7 with wine version

svn path=/trunk/; revision=68299
2015-06-28 10:21:52 +00:00
Hermès Bélusca-Maïto 159d2fcc05 [SHELL32]:Add SmartCard icon from Tango; patch by Lee Schroeder.
CORE-9888 #resolve

svn path=/trunk/; revision=68298
2015-06-28 10:05:56 +00:00
Christoph von Wittich 469292197b [KERNEL32]
replace Utf7ToWideChar with wine version

svn path=/trunk/; revision=68297
2015-06-28 09:00:03 +00:00
Christoph von Wittich 6caacf4e1a fix a typo
svn path=/trunk/; revision=68296
2015-06-27 19:30:17 +00:00
Eric Kohl 3507ef2ac6 [NTOSKRNL]
Implement NtUnloadKey2. TODO: Destroy the unlinked hive.
CORE-3094

svn path=/trunk/; revision=68295
2015-06-27 19:26:12 +00:00
Amine Khaldi bc5c68db6d [KBSWITCH] Improve mouse events handling. By Joachim Henze. CORE-9883
svn path=/trunk/; revision=68294
2015-06-27 17:15:38 +00:00
Amine Khaldi 50991778f3 [DESK] Use pixels instead of Pixel. By Jared Smudde. CORE-9738
svn path=/trunk/; revision=68293
2015-06-27 17:09:04 +00:00
Pierre Schweitzer 9c3630ca79 [NTFS]
When dumping attributes, also dump attributes from the $ATTRIBUTE_LIST if present

svn path=/trunk/; revision=68291
2015-06-27 15:06:25 +00:00
Pierre Schweitzer c1f1ff059c [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

svn path=/trunk/; revision=68290
2015-06-27 13:40:05 +00:00
Amine Khaldi a011fa9bc5 [DEVMGMT] Free this module from the devil. Addendum to r68185. Spotted by fox_anthony.
svn path=/trunk/; revision=68289
2015-06-27 13:05:01 +00:00
Thomas Faber c8c9e7d157 [NTOS:KE]
- Fix a typo in KiGetCacheInformation. Spotted by Mike.

svn path=/trunk/; revision=68287
2015-06-27 10:58:32 +00:00
Pierre Schweitzer fc363d1f59 [NTFS]
Dump available streams (if any!) in case unnamed stream isn't available when trying to read a file

svn path=/trunk/; revision=68286
2015-06-27 09:04:39 +00:00
Pierre Schweitzer 950f284f09 [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)

svn path=/trunk/; revision=68285
2015-06-27 08:55:34 +00:00
Amine Khaldi 78f1c4a361 [USERENV] Add %HOMEDRIVE% and %HOMEPATH% environment variables. Brought to you by Radek Liška. CORE-9875
svn path=/trunk/; revision=68284
2015-06-26 18:59:25 +00:00
Amine Khaldi ea61881cf9 [SHELL32] Get the Run dialog icon from shell32. By Jared Smudde. CORE-9837
svn path=/trunk/; revision=68283
2015-06-26 18:32:57 +00:00
Amine Khaldi 26878eaacf [MSIEXEC][RUNONCE][WINLOGON] Properly track resource file dependencies. CORE-9806
svn path=/trunk/; revision=68282
2015-06-26 18:04:31 +00:00
Amine Khaldi dd49d4d4a9 [IEFRAME] Add some missing quotes to ieframe.rc. NFC. Spotted by Jared Smudde. CORE-9843
svn path=/trunk/; revision=68281
2015-06-26 17:33:45 +00:00
Amine Khaldi ddbc58e7bd [KBSWITCH] Re-register the systray icon after explorer restart. By Joachim Henze. CORE-9869
svn path=/trunk/; revision=68280
2015-06-26 17:18:26 +00:00
Amine Khaldi 1c88ff2f14 [DDK] Annotate hdaudio.h. CORE-9882
svn path=/trunk/; revision=68279
2015-06-26 16:44:31 +00:00
Amine Khaldi 5703a3911d [DDK] Bring hdaudio.h to DDK formatting. NFC.
svn path=/trunk/; revision=68278
2015-06-26 16:32:40 +00:00
Amine Khaldi ef406986cb [DDK] Explicitly mark the function pointers as NTAPI. CORE-9882
svn path=/trunk/; revision=68277
2015-06-26 16:20:37 +00:00
Johannes Anderwald e95016183a [DDK]
- add hdaudio.h

svn path=/trunk/; revision=68276
2015-06-26 14:42:09 +00:00
Thomas Faber 261e8039e2 [MSIMTF]
- Add a stub implementation for IActiveIMMMessagePumpOwner.
- Use #ifdef __REACTOS__ to mark a ROS-diff
CORE-4953 #resolve

svn path=/trunk/; revision=68275
2015-06-26 12:27:54 +00:00
Thomas Faber 85c2fc1bcd [NTOS:MM]
- Do not request a page in MiAllocatePagesForMdl if no pages are available. Fixes kmtest:MmMdl.
CORE-9879 #resolve

svn path=/trunk/; revision=68274
2015-06-26 11:02:40 +00:00
Thomas Faber 09da0e3011 [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

svn path=/trunk/; revision=68273
2015-06-26 10:40:49 +00:00
Ged Murphy 656342ff11 [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

svn path=/trunk/; revision=68272
2015-06-26 08:45:49 +00:00
Thomas Faber eb33bb164d [KMTESTS:MM]
- Add a test for MmAllocatePagesForMdl

svn path=/trunk/; revision=68271
2015-06-26 07:31:01 +00:00
Christoph von Wittich 2888f4bedb [VIDEOPRT]
export functions needed by gfx drivers
patch by Mike Nordell
CORE-9808

svn path=/trunk/; revision=68270
2015-06-26 06:14:15 +00:00
Pierre Schweitzer 7420a2aff7 [NTFS]
In NtfsFindFileAt() directly print first entry value instead of its address

svn path=/trunk/; revision=68269
2015-06-25 20:51:30 +00:00
Pierre Schweitzer de1f1fca9f [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

svn path=/trunk/; revision=68268
2015-06-25 20:49:40 +00:00
Ged Murphy f6cf980d01 [DEVMGR]
- When disabling a device, show the user a message box to confirm before disabling
- Some code cleanup

svn path=/trunk/; revision=68267
2015-06-25 20:34:57 +00:00
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