Commit graph

63257 commits

Author SHA1 Message Date
Stefan Ginsberg
e4fd9b81bc - Remove all NT_ASSERT from the kernel and replace with good old ASSERT, for ease of debugging, especially for tests run on the build servers. There is no need to use NT_ASSERT in the kernel.
- The fish is long gone.

svn path=/trunk/; revision=68888
2015-09-01 01:45:59 +00:00
Stefan Ginsberg
a4f0ae9e87 - Fix link fix build.
svn path=/trunk/; revision=68887
2015-09-01 00:38:40 +00:00
Stefan Ginsberg
fdeca1b2b2 - Small patch to fix (delayed) loading of floating point state. Enables the special handling of fpu exceptions caused by frstor when used by the kernel, by implementing its use in assembly so the trap handler gets the instruction address it needs (for ALl compilers!). May or may not fix the fact that floating point state is not properly saved between threads.
See CORE-10005.

svn path=/trunk/; revision=68886
2015-09-01 00:20:57 +00:00
Giannis Adamopoulos
bb8a6e700c [SHELL32]
- Rename SHELL32_BindToChild to SHELL32_BindToFS. Do not let it be used for guid items any more. Split SHELL32_GetCLSIDForDirectoryout of it and call it only when needed.
- Fix callers to use SHELL32_BindToGuidItem for guid items.
- Fix a bug in CFSFolder which marked folder items as files when a binding context was used.

svn path=/trunk/; revision=68885
2015-08-31 23:44:02 +00:00
Giannis Adamopoulos
5d50aaffdd [SHELL32]
- All shell folders must have the IPersistFolder. Hence their Initialize method is supposed to succeed for them to actually work.

svn path=/trunk/; revision=68884
2015-08-31 23:12:03 +00:00
Amine Khaldi
3f45fd516a [VSSAPI] Import from Wine Staging 1.7.47. Thanks to Thomas Faber for his help. [PSDK] Import vss.idl and vswriter.h from Wine Staging 1.7.47. CORE-9924 CORE-9965
svn path=/trunk/; revision=68883
2015-08-31 19:34:37 +00:00
Amine Khaldi
7509f2af06 [SETUPAPI] Sync setupcab.c with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68882
2015-08-31 17:52:48 +00:00
Thomas Faber
ac0593b71d [NTOS:EX]
- Don't leak process reference in NtFlushInstructionCache. Spotted by Stefan

svn path=/trunk/; revision=68881
2015-08-31 13:53:14 +00:00
Thomas Faber
847346ed85 [LSASRV]
- Correctly call LsarClose in DsRolepGetBasicInfo

svn path=/trunk/; revision=68880
2015-08-31 13:46:38 +00:00
Thomas Faber
c51b0c1318 [NETAPI32]
- Don't try to close the deleted user handle in NetUserDel

svn path=/trunk/; revision=68879
2015-08-31 13:44:57 +00:00
Giannis Adamopoulos
65783dfa91 Fix build.
svn path=/trunk/; revision=68878
2015-08-31 11:35:26 +00:00
Giannis Adamopoulos
8da2ae9374 [SHELL32]
- Make SHELL32_GetDisplayNameOfChild return the result via a STRRET. Fix all callers accordingly.
- Avoid any heap allocations if a shell folder needs to forward the GetDisplayNameOf call to a child.

svn path=/trunk/; revision=68877
2015-08-31 11:28:24 +00:00
James Tabor
8828db039a [NtGdi]
- Fix color setting.

svn path=/trunk/; revision=68876
2015-08-30 23:15:55 +00:00
Amine Khaldi
48844bd8da [FREETYPE] Revert the 2.6.0 sync until we figure out what's causing the second stage bugcheck. CORE-10072
svn path=/trunk/; revision=68875
2015-08-30 17:16:36 +00:00
Amine Khaldi
84ca2e2c16 [FREETYPE] Sync up to 2.6.0. CORE-10072
svn path=/trunk/; revision=68874
2015-08-30 15:54:09 +00:00
Giannis Adamopoulos
dc515c2a97 [SHELL32]
- Remove SHELL32_GetItemAttributes for good. It is never a good idea to have one function that handles many types of pidls.

svn path=/trunk/; revision=68873
2015-08-30 14:28:07 +00:00
Pierre Schweitzer
65caa6e448 [NTFS]
No reason to keep NTFS disabled. Make it manually started (ie, by FsRec)

svn path=/trunk/; revision=68872
2015-08-30 13:05:20 +00:00
Thomas Faber
1921cae21e [SERVICES]
- Correctly copy group dependencies in ScmWriteDependencies (DPH)

svn path=/trunk/; revision=68871
2015-08-30 09:52:57 +00:00
Thomas Faber
fec1f08cd5 [TCPIP_DRVTEST]
- Handle errors to avoid uninitialized variable usage

svn path=/trunk/; revision=68870
2015-08-30 09:31:23 +00:00
Amine Khaldi
6528e0b9d8 [LIBPNG] Sync up to 1.6.18. CORE-10071
svn path=/trunk/; revision=68869
2015-08-30 09:23:53 +00:00
Giannis Adamopoulos
1bde745c4e [SHELL32]
- Fix copy paste mistake in CDesktopFolder

svn path=/trunk/; revision=68868
2015-08-30 08:51:18 +00:00
Thomas Faber
a54882acc1 [ADVAPI32_APITEST]
- Do not call RtlInitUnicodeString on an unterminated string (DPH)

svn path=/trunk/; revision=68867
2015-08-30 08:37:13 +00:00
Thomas Faber
285991f04c [RTL]
- Use the correct busy node pointer in RtlpPageHeapDestroy
CORE-9735 #resolve

svn path=/trunk/; revision=68866
2015-08-30 07:26:26 +00:00
Giannis Adamopoulos
af3114c491 [SHELL32]
- When binding to a drive item try to initialize the new CFSFolder using IPersistFolder3. That allows us to get the path of the drive right from the pidl instead of getting a new reference to the CDrivesFolder and using GetDisplayNameOf for the pidl.

svn path=/trunk/; revision=68865
2015-08-29 21:09:29 +00:00
Hermès Bélusca-Maïto
90143b555c [NTOS:KD]: Disable to dprints.
svn path=/trunk/; revision=68864
2015-08-29 16:56:09 +00:00
Thomas Faber
a6513f80af [HAL]
- Implement HalStartProfileInterrupt, HalSetProfileInterval, and HalpProfileInterruptHandler
Now kernrate works!
CORE-10066 #resolve

svn path=/trunk/; revision=68863
2015-08-29 16:45:00 +00:00
Eric Kohl
1e34580fd6 [WINLOGON]
- Read notification DLL parameters.
- Use the Enabled value.

svn path=/trunk/; revision=68862
2015-08-29 15:50:02 +00:00
Thomas Faber
a7236633f6 [NDK][NTOS]
- Move KeProfileInterrupt[WithSource] declarations to NDK since they're exported
- NtCreateProfile's fourth parameter is SIZE_T
- Add NtCreateProfileEx prototype
CORE-10066

svn path=/trunk/; revision=68861
2015-08-29 15:04:01 +00:00
Thomas Faber
6d331859f3 [NTOS]
- Fix GCC build

svn path=/trunk/; revision=68860
2015-08-29 14:35:02 +00:00
Thomas Faber
e693a9b767 [NTOS:KE]
- Fix swapped parameters of KeSetIntervalProfile
- Calculate the correct bucket pointer in KiParseProfileList, and actually increment the counter
CORE-10066

svn path=/trunk/; revision=68859
2015-08-29 14:30:29 +00:00
Thomas Faber
a2833fad4b [NTOS:EX]
- Fix MDL leak in NtStopProfile
CORE-10066

svn path=/trunk/; revision=68858
2015-08-29 14:14:43 +00:00
Hermès Bélusca-Maïto
7ac60d428d [HAL]: Addendum for r68856
svn path=/trunk/; revision=68857
2015-08-29 14:09:57 +00:00
Thomas Faber
96a3420464 [HAL]
- IRQ 8 belongs to the slave PIC, so send EOI appropriately
CORE-10066

svn path=/trunk/; revision=68856
2015-08-29 14:04:57 +00:00
Hermès Bélusca-Maïto
3946e15eeb [i8042prt]
Improve debugging experience when pressing Tab+k, at least with WinDBG, by breaking with a suitable control code (adopt the SysRq one even if we don't use SysRq key for breaking, but instead, Tab+k).

svn path=/trunk/; revision=68855
2015-08-29 13:53:55 +00:00
Hermès Bélusca-Maïto
d328dc16b4 [NTOS]
Addendum to r68851:
- Reset the state of the worker thread *after* having captured the data, not before.
- Fix the explanations given in comments.

svn path=/trunk/; revision=68854
2015-08-29 12:53:08 +00:00
Thomas Faber
f0aeab590d [FUSION]
- Add missing psdk dependency to fusion_common

svn path=/trunk/; revision=68853
2015-08-29 07:41:52 +00:00
Thomas Faber
f917e6193e [NTOS:EX]
- Remove superfluous dereference in NtCreateProfile
- Allocate the right size for KPROFILE object
- Don't leak the KPROFILE when deleting an EPROFILE
- Avoid some casts
CORE-10066

svn path=/trunk/; revision=68852
2015-08-29 07:35:59 +00:00
Hermès Bélusca-Maïto
dd088b28fc [NTOS]
Implement the WinDBG Debugger Worker Thread, which is created inside a target process whenever one uses the ".process /i <addr>" (invasive debugging) command using WinDBG in kernel-mode debugging.
See https://www.microsoftpressstore.com/articles/article.aspx?p=2201303&seqNum=2 section "Switching the Current Process Context" (from the book "Inside Windows Debugging" by Tarik Soulami, pp.101-102) for more details.
The names of the variables must be kept as they are, because WinDBG (more exactly, dbgeng.dll) searches for them within the kernel symbols and retrieves their addresses (since those variables are not publicly exported).

svn path=/trunk/; revision=68851
2015-08-29 02:03:56 +00:00
Hermès Bélusca-Maïto
a0a1967e8e [NTDLL]
Make its version information compatible with the one of NTOSKRNL (and accessorily its resource file). Addendum to r25937.

svn path=/trunk/; revision=68850
2015-08-29 01:56:11 +00:00
Giannis Adamopoulos
c932cb9d3a [SHELL32]
- Only return the flags that the caller asked for in SHELL32_GetFSItemAttributes. Allows us to get rid of a hell lot of calls to CFSFolder::BindToChild which lead to many calls to FindFirstFile.

svn path=/trunk/; revision=68849
2015-08-28 15:08:19 +00:00
Hermès Bélusca-Maïto
a39b4f51b9 [NTOS]
Fix x64 compilation:
- Some KDBG symbols for win32k debugging are defined only in x86 platform when _WINKD_ is disabled.
- KdSetOwedBreakpoints is defined only if _WINKD_ is enabled, addendum for x64 to r68842.

svn path=/trunk/; revision=68848
2015-08-28 14:01:58 +00:00
Thomas Faber
5ff109f0b3 [CMD]
- Avoid statically importing FindFirstStreamW/FindNextStreamW so that our cmd.exe can work on WinXP.
- Accept lowercase /r switch

svn path=/trunk/; revision=68847
2015-08-28 11:39:45 +00:00
Thomas Faber
4e5f69d4d1 [CMD]
- In DirList, initialize stInfo.ptrHead of the dummy node to avoid invalid memory access. Fixes regression in cmd:batch

svn path=/trunk/; revision=68846
2015-08-28 10:51:10 +00:00
Giannis Adamopoulos
2f9a846dcf [SHELL32]
- Sync control.c from wine and disable a large part of it that is not needed. Also update the definition of CPlApplet to match wine.
- Make CControlPanel use the new definition of CPlApplet which lets us simplify loading the applets.
- Make CControlPanel to only use unicode and use the new helper functions.
- Simplify the code for the context menu of cpl items.

svn path=/trunk/; revision=68845
2015-08-28 10:36:35 +00:00
Giannis Adamopoulos
73a3fd8b3c [SHELLUTILS]
- Add a helper function SHSetStrRet that will simplify setting the contents of a STRRET.

svn path=/trunk/; revision=68844
2015-08-28 10:32:02 +00:00
Amine Khaldi
e950972731 [CMAKE] Fix broken PCH handling since r67483.
svn path=/trunk/; revision=68843
2015-08-28 09:24:39 +00:00
Pierre Schweitzer
5777e8100c [NTOSKRNL]
Fix build

svn path=/trunk/; revision=68842
2015-08-28 06:19:31 +00:00
Hermès Bélusca-Maïto
a7d4979a10 [NTOS:KD]
- Fix the condition check when setting twice (or more) the same breakpoint.
- Implement support for deferred breakpoints. For more information, see: http://www.osronline.com/article.cfm?article=541 (which also exposes an interesting problem about them).

svn path=/trunk/; revision=68841
2015-08-28 03:03:26 +00:00
Amine Khaldi
17228d9d3e [CMAKE] Introduce a way to use auto generation using bison and flex. Dedicated to Eric Kohl. CORE-10055
svn path=/trunk/; revision=68840
2015-08-27 23:00:49 +00:00
Amine Khaldi
6c6dae8b30 [CMAKE] Add and use baseaddress_msvc.cmake.
svn path=/trunk/; revision=68839
2015-08-27 22:35:06 +00:00