Commit graph

32198 commits

Author SHA1 Message Date
Timo Kreuzer
2820db81b3 Add Samuel Serapión to credits file
svn path=/trunk/; revision=35648
2008-08-25 23:45:27 +00:00
Jeffrey Morlan
c49ed3a82c Remove the "LPTSTR cmd" argument to internal commands; there's no need for a command to be told its own name. It was only used in two places:
- a hack in cmd_mkdir that was already obsolete a decade ago
- to distinguish "echo" from "echo.", but that is the wrong way to implement this anyway. There's nothing particularly special about the period, "echo" is just one of those commands that is lenient about where its parameters begin, and when it echos a line, the first character (usually a space, but in the case of "echo." a period) is skipped.

svn path=/trunk/; revision=35647
2008-08-25 23:22:03 +00:00
Timo Kreuzer
c9b3cf161b Merge 34739 - 34769, 34796 - 34905, 34916 - 34967, 34970 - 35135, 35167, 35325, 35326, 35443 - 35506, 35510 - 35546, 35587, 35616,
35644 from ros-amd64-bringup branch:

- Update AMD64 intrinsic Interlocked functions
- Add _InterlockedExchange64 to intin_x86.h
-Fix definitions of IsBadHugeReadPtr, IsBadHugeWritePtr, IsBadReadPtr, IsBadStringPtrA, IsBadStringPtrW, IsBadWritePtr and SetProcessWorkingSetSize
- Define CONTEXT and XMM_SAVE_AREA32, taken from WINE
- Include _M_AMD64 for defintitions in ioaccess.h
- Add Interlocked intrinisc definitions for AMD64 platform
- Add KI_USER_SHARED_DATA and KeGetCurrentIrql() prototype to winddh
- Fix prototypes for KfAcquireSpinLock, KfReleaseSpinLock, KeAcquireInStackQueuedSpinLock and KeReleaseInStackQueuedSpinLock on amd64
- Fix rotl declaration, add mysteriously missing rotr.
winnt.h:
- Fix CONTEXT_AMD64 and friends, add various constants.
- Define RUNTIME_FUNCTION, RtlCaptureContext, RtlRestoreContext, RtlAddFunctionTable, RtlInstallFunctionTableCallback, RtlDeleteFunctionTable.
- Fix definitions for EXCEPTION_RECORD and friends to support amd64.
- Define IMAGE_THUNK_DATA64 and related constants.
- Define IMAGE_TLS_DIRECTORY64 and related constants.
- Remove WINEisms
- Remove multiple declarations and minor fixes.
- Fix KESEG0_BASE for amd64
- Fix definition for NdisCopyLookaheadData on amd64
- Only add function prototypes if NO_INTERLOCKED_INTRINSICS is defined
- Move the inlined InterlockedAnd/Or from rtl to winbase.h and rename it to InterlockedAnd/Or_Inline
- Fix TreeView_EnsureVisible macro.
- Add missing 64 bit intrinsic Interlocked functions
- Fix _InterlockedDecrement64
- Fix InterlockedExchangeAddSizeT
- Fix __writecrx instrinsics
- Fix ExQueryPoolBlockSize prototype
- Make KI_USER_SHARED_DATA and IMAGE_ORDINAL_FLAG64 a ULONGLONG
- Fix definition if IMAGE_OPTIONAL_HEADER64
- Add KPCR structure
- Add __readcrx intrinsics
- Ad some definitions to winddk.h
- Add a field for a DbgPrint function pointer to the ROS_LOADER_PARAMETER_BLOCK for early debug prints in ntoskrnl
- Update KPCR and KIPCR
- Add KeGetPcr() and update KeGetCurrentProcessorNumber 
- Fix SECURITY_DESCRIPTOR_RELATIVE and KDPC_DATA
- Implement byteswap intrinsics
- Add macro definitions for KeQuerySystemTime, KeQueryTickCount and KeQueryInterruptTime to ddk
- Add NtCurrentTeb inline function
- Update amd64 prototypes for KeGetCurrentIrql, KfRaiseIrql, KfLowerIrql, KeRaiseIrqlToDpcLevel, KeRaiseIrqlToSynchLevel, KeLowerIrql, KeRaiseIrql
- Implement __readcr8, __writecr8, __lidt and __sidt intrinsics.
- Implement KeGetCurrentIrql as intrinsic.
- Make KeGetCurrentIrql, KeLowerIrql, KfRaiseIrql, KeRaiseIrql, KeRaiseIrqlToDpcLevel and KeRaiseIrqlToSynchLevel intrinsics as in the WDK 2008.
- Fix _interlockedbittest intrinsics
- Fix __readmsr and __writemsr on amd64
- Fix __readgsqword, it was using a long internally. Add volatile keyword to segment addressing intrinsics. Add "memory" to clobber list on all those that do write.
- Merge __readcr and __writecr x86 / x64 definitions, because they are the same. Implement __readdr and __writedr for x64.
- __readcr3() returns an unsigned __int64, fix x86 MmGetPageDirectory accordingly.


svn path=/trunk/; revision=35646
2008-08-25 21:57:13 +00:00
Johannes Anderwald
909de8f972 - Prevent a crash by checking the applet name if it is empty and does exist
- %1 is used for file argument, where %2, %3, %n indicate the index of the passed param, %* is the rest of the command
- Directly pass the full filename to ShellExecuteExW from the default context menu
- Should fix executing cpl in default shellview

svn path=/trunk/; revision=35643
2008-08-25 21:02:21 +00:00
Johannes Anderwald
d0e1f5701b - Fix multiple bugs in HCR_GetDefaultVerbW
svn path=/trunk/; revision=35641
2008-08-25 20:16:42 +00:00
Timo Kreuzer
fac43bb581 Merge merge 34713 from ros-amd64-bringup branch:
fix NtCurrentTeb()

svn path=/trunk/; revision=35639
2008-08-25 19:01:09 +00:00
Stefan Ginsberg
7876a9fe0d - Remove deprecated CHECKPOINT/CHECKPOINT1 macros which basically translated into DPRINT/DPRINT1("\n")
svn path=/trunk/; revision=35638
2008-08-25 18:52:38 +00:00
Stefan Ginsberg
7afb74e857 - Remove CHECKPOINT macros from green.sys
svn path=/trunk/; revision=35637
2008-08-25 18:48:18 +00:00
Timo Kreuzer
a872a16180 Merge 34703, 34704, 34705, 34706, 34707, 34708, 34709 and 34710 from ros-amd64-bringup branch:
- Fix inline versions of integer <-> pointer conversion functions.
- Implement _InterlockedAnd64, _InterlockedOr64, _interlockedbittestandreset64, _interlockedbittestandset64 and gs-segment-adressing functions
- As amd64 shares most of the intrinsics of x86, implement them in intrin_x86.h
- Fix IMAGE_FIRST_SECTION macro
- Implement GetCurrentFiber(), NtCurrentTeb() and YieldProcessor()
- Fix ENUMRESLANGPROC, ENUMRESNAMEPROC and ENUMRESTYPEPROC
- Add Interlocked functions for pointers
- Add InterlockedCompareExchangePointer and InterlockedExchangePointer
- Add intrinsic port and register access functions
fix LIST_ENTRY() macro for 64 bits
add size_t definition to _mingw.h (ported from mingw)
- Update some loader structs ULONG -> ULONG_PTR / SIZE_T

svn path=/trunk/; revision=35636
2008-08-25 18:47:44 +00:00
Stefan Ginsberg
a27e2fd423 - Use MiSyncForProcessAttach and MiSyncForContextSwitch instead of MiSyncThreadProcessViews to avoid some unneeded mm hack-syncing
svn path=/trunk/; revision=35635
2008-08-25 18:42:40 +00:00
Stefan Ginsberg
f3b92fa090 - Remove LIST_FOR_EACH and LIST_FOR_EACH_SAFE from the kernel
- Fix a bug in KeStartProfile (a missing negation) which caused us to either free buffer when we shouldn't, or leak it

svn path=/trunk/; revision=35633
2008-08-25 18:21:19 +00:00
Timo Kreuzer
016e911156 merge 35359 from ros-amd64-bringup branch:
The TEB member is called ClientId not Cid on all Windows versions I could check (XP, 2k3, vista).

svn path=/trunk/; revision=35631
2008-08-25 16:38:02 +00:00
Stefan Ginsberg
b81b76caab - Remove a header duplication and move a prototype to the correct place
svn path=/trunk/; revision=35630
2008-08-25 15:22:30 +00:00
Stefan Ginsberg
a362028c86 - NtLoadKey: Call NtLoadKeyEx directly instead of calling NtLoadKey2 (which forwards to NtLoadKeyEx)
svn path=/trunk/; revision=35629
2008-08-25 15:10:27 +00:00
Timo Kreuzer
6805ef1936 merge 34702 and 34987 from ros-amd64-bringup branch:
- convert LDR_RESOURCE_INFO members from ULONG to ULONG_PTR
- fix SECURITY_DESCRIPTOR_RELATIVE and KDPC_DATA

svn path=/trunk/; revision=35628
2008-08-25 14:51:22 +00:00
Stefan Ginsberg
8dbbc041c3 - Undefine KdPrint before redefining it.
svn path=/trunk/; revision=35626
2008-08-25 13:42:17 +00:00
Johannes Anderwald
d1813375f5 - Partly fix launching control panel applets
svn path=/trunk/; revision=35624
2008-08-25 07:54:19 +00:00
Andrew Munger
239ad82645 Add odbc32 to the build system and bootcd.
It builds and it's mere presence allows php to load.
Please have a look at the .rbuild, it probably needs tweaked.

svn path=/trunk/; revision=35623
2008-08-25 07:49:46 +00:00
Eric Kohl
5979e2e463 Add "Boot Acceptance Application for Registry". Such a big name for such a small utility ;)
svn path=/trunk/; revision=35615
2008-08-24 23:07:39 +00:00
Cameron Gutman
3a7a8f1f08 - Merge aicom-network-fixes up to r35611
svn path=/trunk/; revision=35614
2008-08-24 20:50:17 +00:00
Stefan Ginsberg
ca33f36d34 - [FORMATTING] Comment and formatting fixes for LocateChildDevice. No code change.
svn path=/trunk/; revision=35613
2008-08-24 20:40:27 +00:00
Cameron Gutman
6f97ab13eb - Same fix as my last commit
svn path=/trunk/; revision=35612
2008-08-24 19:54:50 +00:00
Stefan Ginsberg
3250ec8a01 - [FORMATTING] Code style and comment cleanup. No code change.
svn path=/trunk/; revision=35608
2008-08-24 18:47:14 +00:00
Eric Kohl
0eaca617d3 Don't try to print information about a service that doesn't exist.
svn path=/trunk/; revision=35606
2008-08-24 18:30:59 +00:00
Eric Kohl
866b97d444 SEH-protect all calls to remote functions.
Based on patches from Bug #3669 by bugboy <martinmnet@hotmail.com>.

svn path=/trunk/; revision=35605
2008-08-24 18:27:17 +00:00
Eric Kohl
413b6d969f Hack the declaration of RQueryServiceConfigA. This hack has already been applied to RQueryServiceConfigW.
Based on patches from Bug #3669 by bugboy <martinmnet@hotmail.com>.

svn path=/trunk/; revision=35604
2008-08-24 18:08:17 +00:00
Johannes Anderwald
1e3bc51e71 - Check if source and destination is the same. Fixes creating a new directory and using the default name
svn path=/trunk/; revision=35603
2008-08-24 16:43:08 +00:00
Cameron Gutman
5486706e21 - Remove one of the ASSERTs in SocketCalloutEnter
svn path=/trunk/; revision=35602
2008-08-24 16:37:15 +00:00
Stefan Ginsberg
13362ee99b - Remove KEBUGCHECK and KEBUGCHECKEX macros
- Replace "KeBugCheck(0)" by ASSERT(FALSE)
- Replace deprecated "CPRINT" by DRINT1

svn path=/trunk/; revision=35600
2008-08-24 15:48:05 +00:00
Stefan Ginsberg
e0e86d6092 - Remove deprecated makefile
svn path=/trunk/; revision=35599
2008-08-24 15:42:30 +00:00
Stefan Ginsberg
168fa9b543 - Formatting and comment fixes (no code change)
svn path=/trunk/; revision=35598
2008-08-24 15:41:13 +00:00
Gregor Brunmar
10daaf90a6 D3D9:
* Implemented IDirect3DSwapChain9::GetDevice() and GetPresentParameters()
* Added helper function to D3D9BaseObject to convert IUnknown* to IDirect3D9Device*
* Fixed behavior in IDirect3DDevice9::GetSwapChain() when an invalid index was specified

svn path=/trunk/; revision=35594
2008-08-24 11:18:30 +00:00
Gregor Brunmar
f3890a8a5c D3D9:
* Replace D3D9BaseObject's dependency on Direct3DDevice9
* More HAL device init stuff

svn path=/trunk/; revision=35593
2008-08-24 10:15:44 +00:00
Gregor Brunmar
57fad8bdc4 D3D9:
* Fixed incomplete HAL device
* Fixed IDirect3DSwapChain9 and D3D9BaseObject ref counting

svn path=/trunk/; revision=35592
2008-08-24 09:34:16 +00:00
Johannes Anderwald
72d7445528 - Use the name of the cpl as the mutex name
- The mutex name is a unicode buffer, pass it to CreateMutexW function
- fixes bug 3489

svn path=/trunk/; revision=35591
2008-08-24 08:37:25 +00:00
Martin Fuchs
5ed0e9015c update XMLStorage: correctly handle dots and colons in attribute names
svn path=/trunk/; revision=35590
2008-08-24 06:58:19 +00:00
Cameron Gutman
86ab49ef00 - Add myself to credits :)
svn path=/trunk/; revision=35585
2008-08-24 01:56:56 +00:00
Cameron Gutman
dbc052ab84 - Merge aicom-network-fixes up to r35583
svn path=/trunk/; revision=35584
2008-08-24 01:53:58 +00:00
Art Yerkes
978a879fe9 Catch failure to release the cancel spinlock. Would've spotted my error in
tcpip.sys.

svn path=/trunk/; revision=35581
2008-08-23 23:04:15 +00:00
Cameron Gutman
0819ff13a1 - Enable the failure debug prints in MsafdReturnWithErrno
- They shouldn't spam the debug log and they're a great way to tell if something is going wrong in the network stack

svn path=/trunk/; revision=35580
2008-08-23 22:42:44 +00:00
Cameron Gutman
6d866748fb - Remove a hack not needed because of r35575
svn path=/trunk/; revision=35576
2008-08-23 20:27:26 +00:00
Cameron Gutman
5194ea09e3 - Release the cancel spin lock before returning
- Revert some unintentional changes made in r35485

svn path=/trunk/; revision=35575
2008-08-23 20:21:15 +00:00
Johannes Anderwald
132a5a7354 - Refresh treeview when a folder item is deleted
svn path=/trunk/; revision=35572
2008-08-23 18:10:04 +00:00
Gregor Brunmar
8a1dfee7ce This seems to be more correct
svn path=/trunk/; revision=35571
2008-08-23 17:52:35 +00:00
Johannes Anderwald
c607aa3f2b - Check if source and destination is the same. Fixes creating a new directory and using the default name
- Prevent a potential buffer overflow in the file properties dialog

svn path=/trunk/; revision=35570
2008-08-23 17:32:17 +00:00
Johannes Anderwald
91c726edc7 - Pass the msi package in quotes
- Fixes launching msi packages from directories with spaces
- See bug 3342

svn path=/trunk/; revision=35569
2008-08-23 17:26:26 +00:00
Gregor Brunmar
07147e6a3c * Refactored GetDirect3D9AdapterInfo() to make life a little easier in InitD3D9BaseDevice().
* Filled IDirect3DDevice9::DeviceData[] with correct info

svn path=/trunk/; revision=35568
2008-08-23 17:24:27 +00:00
Stefan Ginsberg
48021764b4 - Add THREAD_TERMINATE_HELD_MUTEX bugcode and make use of it
svn path=/trunk/; revision=35567
2008-08-23 17:16:16 +00:00
Aleksey Bragin
e8d5b46ac4 - Implement IopGetRegistryValue (complementary function to IopOpenRegistryKeyEx). Not used yet.
svn path=/trunk/; revision=35566
2008-08-23 17:11:12 +00:00
Stefan Ginsberg
5cf8b31211 - In IoAcquire/ReleaseCancelSpinLock, use the queued "IopCancelSpinLock" instead of a ros-specific "CancelSpinLock" standard spinlock
- Misc fixes

svn path=/trunk/; revision=35565
2008-08-23 16:30:14 +00:00