Commit Graph

42088 Commits

Author SHA1 Message Date
Jeffrey Morlan
cbf6a79f07 - IntWriteConsoleInput: Copy the data *to* the capture buffer, not *from* it!
- Move code for handling ^C (plus that weird pseudo-scrolling thing) from ConioProcessChar to ConioProcessKey, so that WriteConsoleInput won't generate ctrl events.
- ConioProcessChar: Remove redundant NULL == Console checks (Console can't be NULL at this point), and move debug message into the check in ConioProcessKey.

svn path=/trunk/; revision=34808
2008-07-26 15:20:21 +00:00
James Tabor
e153b69952 - Attempt to initiate hook set from kernel space.
svn path=/trunk/; revision=34807
2008-07-26 12:27:40 +00:00
Aleksey Bragin
138fbd967b Jon Griffiths
msvcrt: Implement ___setlc_active_func/___unguarded_readlc_active_add_func

svn path=/trunk/; revision=34806
2008-07-26 11:54:54 +00:00
Aleksey Bragin
9db3c82bb7 - Sync with Wine (null-initializing some exported data).
svn path=/trunk/; revision=34805
2008-07-26 11:45:59 +00:00
Samuel Serapion
524c885d74 Merge 34789, make appropriate changes to ReactOS-amd64.rbuild
svn path=/branches/ros-amd64-bringup/; revision=34804
2008-07-26 08:21:51 +00:00
Samuel Serapion
0d442f4cec Fix more warnings.
Convert pciidex to use spec file.
NOTE: drivers need to be carefully reviewed for 64bit safety. There is a lot of stuff that can kill us that won't show up in any compiler, knowing ros we probably have at least some issues. Everything but network/ compiles error free.

svn path=/branches/ros-amd64-bringup/; revision=34803
2008-07-26 06:08:04 +00:00
Timo Kreuzer
0dfe50f093 make ncitool generate at least valid 64 bit assembly
svn path=/branches/ros-amd64-bringup/; revision=34802
2008-07-26 01:17:03 +00:00
Timo Kreuzer
3c9ae1448a - hack amd64/ke.h
- unhack inernal/ntoskrnl.h
- more files compile

svn path=/branches/ros-amd64-bringup/; revision=34801
2008-07-26 01:07:27 +00:00
Timo Kreuzer
0e64661365 - add KI_USER_SHARED_DATA and KeGetCurrentIrql() prototype to winddh
svn path=/branches/ros-amd64-bringup/; revision=34800
2008-07-26 01:05:57 +00:00
James Tabor
37cf6bcd75 - Fix boot add missing return.
svn path=/trunk/; revision=34799
2008-07-26 00:25:42 +00:00
Timo Kreuzer
ea74713aa6 add Interlocked intrinisc definitions for AMD64 platform
svn path=/branches/ros-amd64-bringup/; revision=34798
2008-07-26 00:13:23 +00:00
James Tabor
996438fdc6 - Replace Global flag.
svn path=/trunk/; revision=34797
2008-07-26 00:03:31 +00:00
Timo Kreuzer
6618e25fad - add a hack to basetsd.h to undefine _X86_ on amd64 builds (gcc defines it)
- include _M_AMD64 for defintitions in ioaccess.h
- remove KeGetCurrentThread from winddk.h (doesn't work that way)
- hack amd64/ketypes.h to make it compile

svn path=/branches/ros-amd64-bringup/; revision=34796
2008-07-26 00:02:34 +00:00
Samuel Serapion
f8af305331 Fix dozens of 64bit warnings.
Create amd64 def file.

svn path=/branches/ros-amd64-bringup/; revision=34795
2008-07-25 23:41:31 +00:00
James Tabor
9bec76e407 - Fix NtUserCallMsgFilter so it initiates the hook call.
svn path=/trunk/; revision=34794
2008-07-25 23:08:50 +00:00
Hervé Poussineau
4b1181962c Cleanup code
svn path=/trunk/; revision=34793
2008-07-25 20:28:59 +00:00
Hervé Poussineau
e99c0ad3a9 Add comments
Better interface declarations

svn path=/trunk/; revision=34792
2008-07-25 20:27:05 +00:00
Hervé Poussineau
242b0d5be5 Replace DPRINT/DPRINT1 by dynamic traces
svn path=/trunk/; revision=34791
2008-07-25 20:24:46 +00:00
Hervé Poussineau
042289aad8 Notify kernel when configuration is good
svn path=/trunk/; revision=34790
2008-07-25 20:16:16 +00:00
Hervé Poussineau
9ba8702be9 Apply again r34533: rename autogenerated makefile to makefile-$(ARCH).auto,
except for i386, due to a bug in RosBE which cleans only makefile.auto and not makefile*.auto

svn path=/trunk/; revision=34789
2008-07-25 19:07:36 +00:00
Hervé Poussineau
d62f18210a Revert incorrect fix committed in r34077 by cfinck, and replace it by a better one.
svn path=/trunk/; revision=34788
2008-07-25 18:45:54 +00:00
Samuel Serapion
5502f51b0f Fix Warnings
svn path=/branches/ros-amd64-bringup/; revision=34787
2008-07-25 16:49:23 +00:00
Samuel Serapion
d75ee99e10 Fix broken DLGPROC definition.
Fix previous, unneeded, fixes.

svn path=/branches/ros-amd64-bringup/; revision=34786
2008-07-25 16:00:47 +00:00
Samuel Serapion
9f836ebf3a Fix all 64 bit warnings.
Switch over to spec file, taken from WINE.

svn path=/branches/ros-amd64-bringup/; revision=34785
2008-07-25 14:13:04 +00:00
Johannes Anderwald
7cf8ccf54f - identation janitor
svn path=/trunk/; revision=34784
2008-07-25 14:04:37 +00:00
Art Yerkes
6ae9a99375 Fix several problems with lookasides and temporary captures:
ob_x.h: Add a proper define for the size of a lookaside name buffer
oblink.c: Use move memory rather than copy in the case that we re-use the name
  buffer.  We probably never reused it before, because MaximumLength was never
  set properly.  See below.
oblife.c: Several things
  ObpCaptureObjectName
  - Properly set MaximumLength rather than copping out and setting it to just
    string + nul.  This was dangerous because later, we'll use MaximumLength
    to determine whether we allocated the name from the lookaside list or the
    heap.
  - Since we use MaximumLength to determine where the allocation came from
    make sure that MaximumLength never equals the magic value if the string
    comes from the heap for whatever reason.
  - Free the string using the right symmetry if we would fault copying.
  ObpCaptureObjectCreateInformation
  - We didn't allocate the ObjectCreateInfo, but we might've allocated the
    security descriptor, so free it if needed, rather than borking some non
    heap.

svn path=/trunk/; revision=34783
2008-07-25 13:42:05 +00:00
Timo Kreuzer
4a991aa014 fix usage of InterlockedCompareExchangePointer
svn path=/branches/ros-amd64-bringup/; revision=34782
2008-07-25 13:42:03 +00:00
Timo Kreuzer
374c44c700 fix usage of InterlockedCompareExchangePointer
svn path=/branches/ros-amd64-bringup/; revision=34781
2008-07-25 13:37:45 +00:00
Timo Kreuzer
2241dceb71 some DWORD -> DWORD_PTR
svn path=/branches/ros-amd64-bringup/; revision=34780
2008-07-25 13:26:08 +00:00
Timo Kreuzer
32af8fc4de Sync with trunk head (34777)
svn path=/branches/ros-amd64-bringup/; revision=34779
2008-07-25 13:10:00 +00:00
Timo Kreuzer
27fd778110 revert last commit and instead...
svn path=/branches/ros-amd64-bringup/; revision=34778
2008-07-25 12:54:02 +00:00
James Tabor
4e945c2292 - Fix loading hooks.
svn path=/trunk/; revision=34777
2008-07-25 12:43:55 +00:00
James Tabor
f123580aa0 - Add support for SMTO_NOTIMEOUTIFNOTHUNG.
- Fix WH_CALLWNDPROC/RET for multi thread.
- Fix foreground idle.

svn path=/trunk/; revision=34776
2008-07-25 12:31:59 +00:00
Timo Kreuzer
76f94aee74 merge 34755 from trunk
svn path=/branches/ros-amd64-bringup/; revision=34775
2008-07-25 12:28:50 +00:00
James Tabor
9f5f04ab20 Check for null pointers, keep wine msg test from crashing.
svn path=/trunk/; revision=34774
2008-07-25 12:26:22 +00:00
Samuel Serapion
364d3152c9 Fix a 64bit portability issue.
Hack widl a bit in order to compile more code.

svn path=/branches/ros-amd64-bringup/; revision=34773
2008-07-25 12:22:27 +00:00
Samuel Serapion
fe5640712e Make calling spec file stubs a non-fatal event.
svn path=/branches/ros-amd64-bringup/; revision=34772
2008-07-25 12:05:01 +00:00
Samuel Serapion
b77079a4d8 Fix multiple 64bit warnings
svn path=/branches/ros-amd64-bringup/; revision=34771
2008-07-25 11:33:42 +00:00
Samuel Serapion
d99afa913f Fix some compiler warnings.
Implement InitializeCriticalSectionEx
Stub TermsrvAppInstallMode and SetTermsrvAppInstallMode.
Lazy port of BasepInitializeContext.
Lazy ports of thread and fiber startup code, probably will not work.

svn path=/branches/ros-amd64-bringup/; revision=34770
2008-07-25 11:09:07 +00:00
Samuel Serapion
f6d9983a3f -Fix definitions of IsBadHugeReadPtr, IsBadHugeWritePtr, IsBadReadPtr, IsBadStringPtrA, IsBadStringPtrW, IsBadWritePtr and SetProcessWorkingSetSize
-Define CONTEXT and XMM_SAVE_AREA32, taken from WINE

svn path=/branches/ros-amd64-bringup/; revision=34769
2008-07-25 10:57:44 +00:00
Samuel Serapion
17bcdbc7bb Lazy port of PSEH to amd64 probably has no chance of working, but satisfies ld a bit more on certain modules
svn path=/branches/ros-amd64-bringup/; revision=34768
2008-07-25 10:52:11 +00:00
James Tabor
0104c42bb4 Fix typo.
svn path=/trunk/; revision=34767
2008-07-25 01:07:41 +00:00
James Tabor
c688d08ea3 - Add call window proc hooks.
svn path=/trunk/; revision=34766
2008-07-25 01:02:17 +00:00
Timo Kreuzer
9983f446ce - add ke/amd64/boot.S containing KiSystemStartup
- add ke/amd64/kiinit.c, stubbed out
- allow warnings for now, so we can compile a lot more files

svn path=/branches/ros-amd64-bringup/; revision=34765
2008-07-24 23:04:22 +00:00
James Tabor
fc15d06386 - Finish callback for WH_KEYBOARD.
svn path=/trunk/; revision=34764
2008-07-24 22:14:50 +00:00
Jeffrey Morlan
eb40678d1d Fix crash in NtUserSetClipboardData with CF_TEXT format. (Bug 3536)
svn path=/trunk/; revision=34763
2008-07-24 22:08:50 +00:00
James Tabor
eaa1dbeb84 - Plug in WH_KEYBOARD callback.
svn path=/trunk/; revision=34762
2008-07-24 22:00:41 +00:00
Timo Kreuzer
17257b1c52 - add ntoskrnl-amd64.lnk based on i386 one, but target pei-x86-64
- remove some unsupported ntoskrnl linkerflags from rbuild file
Now we can see all those unresolved references... sigh

svn path=/branches/ros-amd64-bringup/; revision=34761
2008-07-24 21:45:27 +00:00
Samuel Serapion
6493026550 Make notepad compile warning free.
svn path=/branches/ros-amd64-bringup/; revision=34760
2008-07-24 21:39:03 +00:00
James Tabor
8c9a96581a Add two more CallNextHook finctions.
svn path=/trunk/; revision=34759
2008-07-24 21:39:00 +00:00