Commit graph

32364 commits

Author SHA1 Message Date
Johannes Anderwald 317fe611cb Copied remotely
svn path=/trunk/; revision=35680
2008-08-26 19:48:08 +00:00
Jeffrey Morlan 75122e2228 cmd_type: Fix misuse of ConOutPrintf which caused problems when the file had any '%' characters in it.
svn path=/trunk/; revision=35679
2008-08-26 19:07:23 +00:00
Aleksey Bragin eae188745b - Move fdiv pentium bug function stubs to another file.
- Exclude platform-independent CI math function stubs when compiling x86 target. Should finally fix bug 1255.
See issue #1255 for more details.

svn path=/trunk/; revision=35677
2008-08-26 17:21:02 +00:00
Johannes Anderwald e42ce04145 - Fix executing item which was broken in last revision
svn path=/trunk/; revision=35676
2008-08-26 16:27:40 +00:00
Johannes Anderwald 33a2cd56f6 - Readd undocumented constants as commdlg needs them
svn path=/trunk/; revision=35675
2008-08-26 16:01:13 +00:00
Johannes Anderwald 07d2758056 shell32 update (1/2)
- Use precompiled headers for shell32
- Use __inline for MSVC compability
- Fix api definitions of SHCreateStdEnumFmtEtc, GetFileNameFromBrowse, SHCreateDirectory, SHCreateDirectoryExA, SHCreateDirectoryExW, Dad_AutoScroll, CDefFolderMenu_Create2, SHChangeNotifyRegister
- msvc now compiles nearly all of shell32 (with WDK headers)

svn path=/trunk/; revision=35674
2008-08-26 15:50:23 +00:00
Johannes Anderwald 050ca45f90 shell32 update (1/2)
- The Fonts Shell Folder && Admin Shell Folder GUID is not documented in shlguid.h
- Fix api declaration of SHCreateStdEnumFmtEtc, GetFileNameFromBrowse, SHCreateDirectory, SHCreateDirectoryExA, SHCreateDirectoryExW, Dad_AutoScroll, CDefFolderMenu_Create2, SHChangeNotifyRegister
- Fix EXP_DARWIN_LINK && OPENASINFO structure
- Remove CSIDL_FOLDER_MASK undocumented shellview ids

svn path=/trunk/; revision=35673
2008-08-26 15:50:17 +00:00
Jeffrey Morlan fc46305c63 - RtlSetEnvironmentVariable: To delete a variable, it is necessary to pass a NULL pointer as the value; passing an empty string should create an empty variable. Remove Value->Length > 0 check.
- SetEnvironmentVariable(A|W): When given a NULL value, pass NULL to RtlSetEnvironmentVariable.
- cmd_set: When given an empty value, pass NULL to SetEnvironmentVariable.

svn path=/trunk/; revision=35672
2008-08-26 15:28:29 +00:00
Jeffrey Morlan a9431cc596 Prohibit an empty name in RtlSetEnvironmentVariable
svn path=/trunk/; revision=35671
2008-08-26 14:45:37 +00:00
Art Yerkes 7e88d259cb Commit patches from bugboy, fixing bug 2392.
svn path=/trunk/; revision=35669
2008-08-26 13:28:44 +00:00
Aleksey Bragin 6c68a50dd4 - Add an ability to have VMWare video driver installed without inserting CD. Just copy 4 files (vmx_fb.dll, vmx_mode.dll, vmx_svga.sys and vmx_svga.inf) from VMWare Tools CD to your reactos/modules/windows directory and build a bootcd. You'll just need to choose a resolution and a bit depth in 2nd stage setup.
svn path=/trunk/; revision=35667
2008-08-26 11:30:02 +00:00
Andrew Munger 8221cb697c Allocate buffer from Non-paged pool, like most everything else in KDBG.
svn path=/trunk/; revision=35660
2008-08-26 09:38:12 +00:00
Johannes Anderwald 4cd1c282bd - Add a small hack for executing shortcuts to cpl files
- Remove unneeded CLSID_UnixFolder registration
- Fix Bitbucket, Nethood shell folder registration attributes

svn path=/trunk/; revision=35659
2008-08-26 06:24:33 +00:00
Cameron Gutman 0c9b7b6aa0 - Merge r35656 from aicom-network-fixes
- Fixes more leaks during general network use

svn path=/trunk/; revision=35658
2008-08-26 04:19:07 +00:00
Cameron Gutman b47d70ccd3 - Merge r35653 from aicom-network-fixes
- Fixes a major leak when closing Firefox

svn path=/trunk/; revision=35654
2008-08-26 02:11:40 +00:00
Jeffrey Morlan cbcbf539b8 cmd_set:
- When given a name with no value, show all variables that start with that name.
- Implement /P switch
- Set nErrorLevel on failure
- Make syntax more compatible with Windows (allow any control character to act as space; implement quoting)

svn path=/trunk/; revision=35649
2008-08-25 23:48:18 +00:00
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