Commit graph

39478 commits

Author SHA1 Message Date
Christoph von Wittich a186a11520 implement IntKeyboardInput based on wine
svn path=/trunk/; revision=43772
2009-10-26 08:50:00 +00:00
Cameron Gutman ddeb261349 - Comment out this unused code until I can get the headers sorted out in my WC
svn path=/trunk/; revision=43771
2009-10-26 03:28:43 +00:00
Cameron Gutman 5a3d389400 - Forgot this file
svn path=/trunk/; revision=43769
2009-10-26 03:19:30 +00:00
Cameron Gutman 79e704337b - Update AFD's shared header
- Add entity type check for IF_MIB_STATS_ID
 - Sort out some confusion with TDI entities
 - Implement IOCTL_AFD_GET_CONTEXT_SIZE
 - Enable debug prints for unimplemented ioctls
 - Add kernel-mode support for setting TTL

svn path=/trunk/; revision=43767
2009-10-26 03:11:44 +00:00
Johannes Anderwald 85cbe2887b [WDMAUD.DRV]
- Set the audio pin to KSSTATE_RUN if it is wave-out pin
- Implement support for manually starting / stopping a pin, which is used for recording
[WINMM]
- Add a hack for handling requests with WAVE_MAPPER
[PORTCLS]
- Pass correct flags to KsProbeStreamIrp when the irp has not already been probed (DirectKs)
[WDMAUD]
- Set correct irp dispatch code
[SYSAUDIO]
- Remove a hack
[MMEBUDDY]
- Return no error for MXDM_INIT message
- Add support for completing multiple wave headers at once
- Use new functions to implement WIDM_START / WIDM_STOP
- ReactOS now "supports" wave in recording. Tested with Audacity / sndrec32 @ XP, WIP


svn path=/trunk/; revision=43765
2009-10-26 00:15:22 +00:00
Dmitry Gorbachev fe966a972d Japanese font. Based on Misaki font by Num Kadoma (num_kadoma/at/yahoo/co/jp).
Copyright (C) 2002-2008 Num Kadoma

This font is free software.

Unlimited permission is granted to use, copy, and distribute it, with
or without modification, either commercially or noncommercially.

THIS FONT IS PROVIDED "AS IS" WITHOUT WARRANTY.

svn path=/trunk/; revision=43764
2009-10-25 23:46:45 +00:00
Sylvain Petreolle 81530ee244 fix "no newline at end of file" errors
svn path=/trunk/; revision=43762
2009-10-25 23:10:28 +00:00
Timo Kreuzer 51afa0b7be remove unused file
svn path=/trunk/; revision=43758
2009-10-25 22:04:32 +00:00
Christoph von Wittich e818f18502 -sync rsaenh_winetest with wine 1.1.32
svn path=/trunk/; revision=43756
2009-10-25 21:16:33 +00:00
Christoph von Wittich a0951dacc4 -sync rsaenh with wine 1.1.32
svn path=/trunk/; revision=43755
2009-10-25 21:16:15 +00:00
Christoph von Wittich 14c61c9004 partial kernel32 GetLocaleInfo sync to wine 1.1.32
svn path=/trunk/; revision=43754
2009-10-25 21:02:58 +00:00
Christoph von Wittich cec5cdfa8d -sync user32_winetest with wine 1.1.32
svn path=/trunk/; revision=43752
2009-10-25 20:32:13 +00:00
Christoph von Wittich 0ed9c0cca3 -sync msxml3 with wine 1.1.32
svn path=/trunk/; revision=43751
2009-10-25 20:21:51 +00:00
Christoph von Wittich c7b2548293 -sync netapi32 with wine 1.1.32
svn path=/trunk/; revision=43750
2009-10-25 19:24:08 +00:00
Gregor Schneider 5b1a765b54 [win32k] Stub out page to device space conversion, fixes three more gdi32 mapping winetests
svn path=/trunk/; revision=43749
2009-10-25 18:49:08 +00:00
Johannes Anderwald 77c67054c7 - Make sure that no duplicate wdmaud.drv audio drivers exists as winmm currently not recognizes duplicate audio driver entries
svn path=/trunk/; revision=43748
2009-10-25 18:22:03 +00:00
Johannes Anderwald acd8b06824 - Partially sync winmm
- Remove unused code
- Fix function headers

svn path=/trunk/; revision=43747
2009-10-25 17:54:50 +00:00
Christoph von Wittich 8fd3137277 partially sync kernel32 profile to wine 1.1.32
svn path=/trunk/; revision=43746
2009-10-25 17:28:35 +00:00
Gregor Schneider cae8c23a9f [win32k] GetTransform:
- Add support for more transforms
- Fix return value for invalid/unsupported transform types
- Fixes 10 gdi32 mapping winetests

svn path=/trunk/; revision=43745
2009-10-25 17:23:19 +00:00
Christoph von Wittich abc34f7dad -sync kernel32_winetest with wine 1.1.32
svn path=/trunk/; revision=43744
2009-10-25 16:21:40 +00:00
Christoph von Wittich 01a9e7493e add define for LOCALE_RETURN_GENITIVE_NAMES
svn path=/trunk/; revision=43743
2009-10-25 16:20:45 +00:00
Christoph von Wittich b882f99c77 better stub for RtlQueryHeapInformation (taken from wine)
svn path=/trunk/; revision=43742
2009-10-25 16:20:00 +00:00
Stefan Ginsberg eae6521fb2 - DBGKD_WAIT_STATE_CHANGE64 is used in KD protocol 5, not number 6 that we use. Protocol 6 uses the DBGKD_ANY_WAIT_STATE_CHANGE structure which is sized according to the largest control-report structure (AMD64_DBGKD_CONTROL_REPORT currently), and is larger than DBGKD_WAIT_STATE_CHANGE64 on x86. This worked because our DBGKD_WAIT_STATE_CHANGE32/64 structures contained incorrect DBGKD_CONTROL_REPORT (used) and CONTEXT (unused) members that sized up the wait-state structure to pass WinDbg's length verification! It actually becomes larger than DBGKD_ANY_WAIT_STATE_CHANGE, but WinDbg only seems bail out only if the structure is too small. Remove the incorrect members from the protocol 5 structures and change to DBGKD_ANY_WAIT_STATE_CHANGE everywhere.
- Correct the value of SIZE_OF_FX_REGISTERS -- it was 4 times too low which resulted in KeContextToTrapFrame not properly clearing out the XMM register area. Correct the define and move it out from ke.h to x86's ketypes.h and use it in the FXSAVE format structure. Also remove the IOPM definitions from ke.h as they have been in the NDK for a while.
- KD uses STRINGs, not ANSI_STRINGs -- they are the same thing, but let's be consistent.
- ExceptionRecord32To64 should be available for both 32 and 64 bit builds (and it shouldn't be a forceinline). Get rid of CopyExceptionRecord and determine if we need to convert or can just copy it directly instead.
- Use _WIN64 instead of _M_AMD64 when determining if we need to set the DBGKD_VERS_FLAG_PTR64 flag.
- Don't check Nt/DbgQueryDebugFilterState for zero or nonzero -- it actually returns TRUE, FALSE or STATUS_INVALID_PARAMETER_1! Check for != TRUE in preparation for proper implementation of NtSet/QueryDebugFilterState.
- Fix Format parameter of DbgPrintReturnControlC -- it is const like the other DbgPrint* routines.
- Be consistent with the types used in debug.c and don't set local variables to zero if we are going to return to caller -- this doesn't seem to be required anymore. 
- Fix DebugService and DebugService2: DebugService should take a ULONG followed by 4 pointers and DebugService2 doesn't return anything.
- Use ZwCurrentProcess() instead of -1 or 0xFFFFFFFF (which is incorrect for 64-bit) for the ProcessId parameter of DbgLoad/UnloadImageSymbols to clarify what is being passed. Don't use ZwCurrentProcess() in KeBugCheckWithTf for the pointer parameter of DbgUnLoadImageSymbols either. Use MAXULONG_PTR casted to PVOID instead.
- Use better named and sized variables in KdpTrap for setting the "return register" in the caller's CONTEXT.
- Correct and clarify the comment documenting under what conditions we pass user mode exceptions to the kernel debugger.

svn path=/trunk/; revision=43741
2009-10-25 15:56:38 +00:00
Christoph von Wittich 522564186c -sync cabinet with wine 1.1.32
svn path=/trunk/; revision=43740
2009-10-25 13:45:15 +00:00
Christoph von Wittich 206c0a4f49 don't crash in msi install winetest
svn path=/trunk/; revision=43737
2009-10-25 11:14:03 +00:00
Christoph von Wittich 83e2004b73 -sync msi_winetest with wine 1.1.32
svn path=/trunk/; revision=43736
2009-10-25 11:06:38 +00:00
Christoph von Wittich b7a13d7347 -sync msi with wine 1.1.32
svn path=/trunk/; revision=43735
2009-10-25 11:06:09 +00:00
Giannis Adamopoulos 6562d206a7 Sync DrawText funtions with wine 1.1.32
Fixes all user32 text tests

svn path=/trunk/; revision=43734
2009-10-25 09:32:01 +00:00
Christoph von Wittich 88d1bac025 partial wine sync to 1.1.32:
wininet: Avoid accessing uninitialized memory.

svn path=/trunk/; revision=43733
2009-10-25 08:52:54 +00:00
Cameron Gutman 6d9bb99627 - Fix sending malformed ICMP packets because we read the wrong length from the wrong address in the buffer
- Fix the sequence number stored in the packet
 - Fix potential null pointer freeing
 - tracert partially works now (Setting TTL isn't implemented yet)

svn path=/trunk/; revision=43732
2009-10-25 04:30:28 +00:00
Cameron Gutman fcb80fec6e - Start the sequence number at 1 instead of 0
svn path=/trunk/; revision=43731
2009-10-25 03:48:15 +00:00
Aleksey Bragin 0f288316c0 [fastfat_new]
- Fix FF_Free warning.

svn path=/trunk/; revision=43725
2009-10-24 21:05:42 +00:00
Stefan Ginsberg f8fd318e35 - Fix a sneaky breakage of MSVC built kernels. "i386" is a gcc define and we don't define it in the makefiles.
svn path=/trunk/; revision=43724
2009-10-24 20:44:43 +00:00
Cameron Gutman ebaa2b818d - Implement SetIpNetEntry in iphlpapi and InfoTdiSetArptableMIB in tcpip
- Added buffer size checks for InfoTdiSetRoute
 - "arp -s" works now

svn path=/trunk/; revision=43723
2009-10-24 20:39:41 +00:00
Stefan Ginsberg ff318c3207 - Don't put PAGED_CODE() before variable declarations -- this makes MSVC very, very sad. Reformat and clean up the code a bit too.
svn path=/trunk/; revision=43722
2009-10-24 20:35:10 +00:00
Daniel Reimer 425c1da665 chinese Translations by Elton Chung.
svn path=/trunk/; revision=43721
2009-10-24 19:27:51 +00:00
Daniel Reimer 9848a8409d Sync wordpad and winhlp32 to Wine 1.1.31
Update 3rd Party Files.txt

svn path=/trunk/; revision=43719
2009-10-24 17:23:52 +00:00
Sylvain Petreolle cba092a5a3 - Add reg.exe from Wine 1.1.31
svn path=/trunk/; revision=43718
2009-10-24 15:23:45 +00:00
Sylvain Petreolle 3a8773297f add missing checks
fixes winmm:mixer crash

svn path=/trunk/; revision=43717
2009-10-24 15:13:30 +00:00
Dmitry Chapyshev e7fe9eb96e - Fix Russian translation
svn path=/trunk/; revision=43716
2009-10-24 14:34:11 +00:00
Kamil Hornicek 0601bc5633 - merge some of the more meaningful stuff from the reactx branch
svn path=/trunk/; revision=43715
2009-10-24 14:09:48 +00:00
Dmitry Chapyshev 580d28894c - Add reg.exe from Wine 1.1.31
svn path=/trunk/; revision=43714
2009-10-24 13:32:45 +00:00
Dmitry Chapyshev 51a5e344d6 - Add runonce.exe to bootcd
svn path=/trunk/; revision=43712
2009-10-24 13:15:38 +00:00
Dmitry Chapyshev a7ebc6bd5c - Add some registry keys (like in Windows)
svn path=/trunk/; revision=43711
2009-10-24 13:13:20 +00:00
Dmitry Chapyshev 5325ee5eee - Add samplify runonce.exe utility
svn path=/trunk/; revision=43710
2009-10-24 12:58:07 +00:00
Gregor Schneider 5cb190acc6 [kernel32] Check for valid atom, fixes the remaining eight kernel32 atom winetests
svn path=/trunk/; revision=43709
2009-10-24 11:51:33 +00:00
Sylvain Petreolle 0b487b45aa "<@Christoph_vW> please commit something" -- aye sir
svn path=/trunk/; revision=43707
2009-10-24 09:57:37 +00:00
Stefan Ginsberg 0cc20f2021 "<@Christoph_vW> please commit something" -- aye sir
svn path=/trunk/; revision=43706
2009-10-23 23:29:49 +00:00
Stefan Ginsberg 10bbe664b7 - Replace RtlpGetExceptionAddress by the _ReturnAddress intrinsic and add it to ARM intrin.h as it was missing.
- Simplify RtlpCheckForActiveDebugger: Remove the BOOLEAN parameter as we would always pass it FALSE. Always return FALSE false from kernel mode for simplicity.
- Fix a critical flaw in our exception support: RtlRaiseException and RtlRaiseStatus were implemented in C on x86. This lead to unpredictable register corruption because the compiler could not know that it had to preserve non-volatile registers before calling RtlCaptureContext as the saved context is later used to restore the caller in case the exception is handled and execution is continued. This made the functions unsafe to return from as any non-volatile register could be corrupted. Implement them in assembly for x86 to safely capture the context using only EBP and ESP. The C versions of those routines are still used and shared for the other architectures we support -- needs to be determined if this is safe and correct for those architectures.
- The ntdll exception Wine exposed this issue, and all tests now pass. The remaining failures on the build server are caused by missing or incomplete debug register support in KVM/QEMU. Run the test in another VM or on real hardware and all the tests will pass.
- Implement Debug Prompt (DbgPrompt) support for KD and KDBG. The KDBG implementation reads the prompt from keyboard or serial depending on the mode so that sysreg and rosdbg can support it too.
- Properly implement RtlAssert using DbgPrompt to prompt for the action to take instead of always doing a breakpoint. The new implementation is disabled until sysreg can support this. Also move RtlAssert to its own file as it has nothing to do with the error routines (nor does it belong in exception.c).
- Note that DbgPrompt was already used in PspCatchCriticalBreak, and this would have resulted in a silent hang as BREAKPOINT_PROMPT wasn't handled at all by KDBG.
- Implement KiRaiseAssertion (10 lines of code with the trap macros) and thus support NT_ASSERT. Add partial support for it to KDBG to print out a warning and the address of the failure, but don't do anything else. Also add NT_ASSERT to the DDK headers so that we can use it, but don't use it yet as the ARM method of performing this has not been decided nor implemented.
- KiTrap3 doesn't set STATUS_SUCCESS but BREAKPOINT_BREAK. They have the same numerical value but very different meaning -- BREAKPOINT_BREAK means that the exception is a software breakpoint and not a debug service call. Fix some comments to document that this is what is checked for.
- Fix inverted and broken logic in KdpReport. It would never pass second chance exceptions to the debugger, didn't respect the stop-on-exception flag properly and would always fail to handle some special exceptions in both first and second chance instead of just failing to handle it in first chance. Clean up, reformat and document what is going on.
- The DebugPrint and DebugPrompt support routines only perform a 2D interrupt on x86; use more portable comments.
- Add Alex to the programmer section of x86's kdsup.c -- he wrote KdpGetStateChange, KdpSetContextState and the code that was previously in KdpRead/WriteControlSpace.
- Add my name to the parts of KD where I have made significant work on getting KD/WinDbg support up and running.
- KD debugging is now quite functional and stable. Some bugs and stubs remain to be flushed out, but overall KD is now much better and easier to use than KDBG.

svn path=/trunk/; revision=43705
2009-10-23 22:51:39 +00:00
Johannes Anderwald 9ca2385ce2 - Fix build
- Found by Christoph

svn path=/trunk/; revision=43704
2009-10-23 22:21:03 +00:00