Commit graph

39931 commits

Author SHA1 Message Date
Gregor Schneider c2896a6434 [win32k]
- Mapping mode works with the virtual device resolution
- Initialize virtual resolution when initializing the DC
- Fixes ~30 gdi32 mapping tests

svn path=/trunk/; revision=44671
2009-12-20 13:55:45 +00:00
Gregor Schneider 60f61011e7 [userenv] Print the directory name when GetShortPathNameW fails
svn path=/trunk/; revision=44670
2009-12-20 13:47:20 +00:00
Timo Kreuzer 114bcb2c56 Merge from amd64 branch:
[NTOSKRNL]
44415 Move architecture specific inline functions in into the respective headers.

[FREELDR]
39639 Fix 2 small typos.
40247 Fix a number of ULONG / ULONG_PTR issues, remove LoadReactOSSetup2 for non-x86 builds.
40324 Fix switching from long mode to real mode, by jumping into a compatibility segment first.
43566 move wlmemory.c into arch specific folder. add wlmemory.c and ntsetup.c for amd64 (stubbed)
43574 Enable winldr style boot for amd64
43598 Split wlmemory into portable and arch specific code. Partly implement amd64 version.
43600 Fix a bug.
43601 Move definition of KIP0PCRADDRESS into arch specific header. Implement WinLdrSetupForNt for amd64. Fix mapping of PCR and KI_USER_SHARED_DATA. Don't enable paging again on amd64. Fix WinLdrSetProcessorContext to take a ULONG_PTR not ULONG for Pcr and Tss
43602 Round up to pages when updating LoaderPagesSpanned to avoid a bug when the last memory region is not mapped.
43604 Add MempIsPageMapped for debugging puposes. Map pages for kernel, too in amd64 version of MempSetupPaging.
43605 Include the intrinsics from the kernel. Set segement selectors
43757 Pass pointer to debugprint function to the kernel in LoaderBlock->u.I386.CommonDataArea. Comment out __lldt
43775 Fixed build with MinGW-w64 4.4.3
44065 Use LoaderMemoryData instead of LoaderSpecialMemory for page tables
44095 Use the kernel mode address for the gdt/idt
44123 Fix a typo
44144 Share some more inline functions between the kernel and freeldr. Use __ltr instead of Ke386SetTr. refactor KiInitializeTss. Update some Mm constants. Halfplement KeFlushEntireTb. Clean the mapping of page 0 in KiSystemStartup, as long as we don't clean mappings in freeldr. Fix a bug in KiPageFault, where ebp was used instead of rbp. Refactor MmArmInitSystem and related.
44205 Improve the code in wlmemory.c, no real functional change.
44426 remove unused variables.
44530 Don't include i386/ke.h from ntoskrnl.
44540 Detect if this is a amd64 CPU before attempting to boot. (Basil Gello)

svn path=/trunk/; revision=44669
2009-12-20 13:30:35 +00:00
Dmitry Gorbachev 21ddc44f8f Update log2lines to the latest version. Jan Roeloffzen, bug #4342.
svn path=/trunk/; revision=44668
2009-12-20 12:36:26 +00:00
Johannes Anderwald 1ec212dc22 - Fix broken check for storing the number of transferred bytes.
- Fix broken logic in GetOverlappedResult
- Patch by Alex

svn path=/trunk/; revision=44667
2009-12-20 11:57:21 +00:00
Johannes Anderwald f3968e086c [SETUPAPI]
- Add SetupSetNonInteractiveMode stub

svn path=/trunk/; revision=44666
2009-12-20 11:43:58 +00:00
Johannes Anderwald 5b92c7b167 [KS]
- Return correct error code in KsPinPropertyHandler, when buffer is too small
- Refactor KsTopologyPropertyHandler to make use of KsHandleSizedListQuery function which makes the function a lot smaller
- Fix totally broken KsHandleSizedListQuery

svn path=/trunk/; revision=44665
2009-12-20 11:17:02 +00:00
Johannes Anderwald f45bd7617a [MMIXER]
- Add support for enumerating wave in/out devices. Based on the wdmaud driver code

svn path=/trunk/; revision=44664
2009-12-20 00:55:55 +00:00
Johannes Anderwald 20608aeb5a [WDMAUD.DRV]
- Implement support of using mmixer wave in/out library functions (not yet used)
- Not yet used
- Remove DIGCF_PRESENT flag from device list as setupapi cannot handle this yet properly

svn path=/trunk/; revision=44663
2009-12-20 00:55:52 +00:00
Johannes Anderwald 7615ef446e [MMIXER_TEST]
- Allocate the unicode version of LPMIXERCONTROL as mmixer api expects those
- Fix building of mmixer_test as mmixer now uses KsCreatePin

svn path=/trunk/; revision=44662
2009-12-20 00:55:50 +00:00
Johannes Anderwald 98485b0feb [SETUPAPI]
- Implement SetupDiOpenDeviceInterfaceRegKey

svn path=/trunk/; revision=44661
2009-12-20 00:53:21 +00:00
Johannes Anderwald cf7f39eaba [MMIXER]
- Fix buffer overflow

svn path=/trunk/; revision=44660
2009-12-19 21:44:39 +00:00
Johannes Anderwald cce0070699 [MMIXER]
- Fix broken check in MMixerAddMixerControl, which only copied the node name on failure
- Add initialization of LineControlsExtraDat LIST_ENTRY type, which resulted in a crash

svn path=/trunk/; revision=44659
2009-12-19 20:45:29 +00:00
Johannes Anderwald 5440b0612a [KS]
- Return correct status code

svn path=/trunk/; revision=44658
2009-12-19 20:42:48 +00:00
Gregor Schneider 28c158a870 [gdi32] Use predefined unimplemented macro for stubs, correct header paths
svn path=/trunk/; revision=44657
2009-12-19 19:07:36 +00:00
Gregor Schneider f9d540f20b [win32k] Add parameter checks for NtGdiSetVirtualResolution
svn path=/trunk/; revision=44656
2009-12-19 18:57:27 +00:00
Giannis Adamopoulos 5416a90f26 [win32k]
- Don't store SYSTEM_CURSORINFO inside WINSTATION_OBJECT. Use a global variable instead
- Remove IntGetCursorLocation. Use directly gpsi->ptCursor

svn path=/trunk/; revision=44655
2009-12-19 16:23:05 +00:00
Gregor Schneider 3fc3ac5c8c [win32k]
- Simplify GdiExtSelectClipRgn slightly
- Add missing line break

svn path=/trunk/; revision=44654
2009-12-19 13:08:53 +00:00
Gregor Schneider 077c75ad65 [paint]
Andrew Faulds <ajfweb AT googlemail DOT com>: Add support for deletion of rectangular selections
See issue #5043 for more details.

svn path=/trunk/; revision=44651
2009-12-18 20:33:22 +00:00
Gregor Schneider 6ceb354c5c [kernel32]
Viliam Lejcik (lejcik AT gmail DOT com>: Various locale fixes (missing checks, wrong or no errors set etc.)
See issue #4898 for more details.

svn path=/trunk/; revision=44650
2009-12-18 19:54:43 +00:00
Johannes Anderwald 98423a8531 [SETUPAPI]
- Don't store deleted pointers in a list 
- Found by Hervé Poussineau (hpoussin at reactos dot org)

svn path=/trunk/; revision=44649
2009-12-18 10:49:25 +00:00
Johannes Anderwald ebf5483364 [MMIXER_TEST
- Add support for Opening/Querying/Closing registry keys within the mmixer library

svn path=/trunk/; revision=44648
2009-12-18 10:42:57 +00:00
Johannes Anderwald af23bde581 [WDMAUD.DRV]
- Add support for Opening/Querying/Closing registry keys within the mmixer library

svn path=/trunk/; revision=44647
2009-12-18 10:42:29 +00:00
Johannes Anderwald 82dfe03d66 [MMIXER]
- Open all filters before starting enumeration. The advantage is that some filters are not opened twice
- Query the Mixer Name from Registry by opening the device interface registry key and querying for the value of FriendlyName. If it cannot be found, try to find the key under the sub key 'Device Parameters'

svn path=/trunk/; revision=44646
2009-12-18 10:25:41 +00:00
Johannes Anderwald f814e48ad5 [SETUPAPI]
- Implement SetupDiInstallDeviceInterfaces, SetupDiCreateDeviceInterfaceRegKeyW which are required to store device specific information

svn path=/trunk/; revision=44644
2009-12-18 04:37:15 +00:00
Timo Kreuzer 9eb97bd05d Add service table definitions. They are only used for arm atm, because we have them asm.h, too and include that file on x86. Patch by Alex, fixed by me.
svn path=/trunk/; revision=44643
2009-12-18 00:11:11 +00:00
Daniel Reimer 400e405bbc Fix a redefinition error on ARM Build. By teh omnipotent Alex
svn path=/trunk/; revision=44642
2009-12-17 23:07:19 +00:00
Timo Kreuzer dfd84b1ca4 Add the missing KeContextSwitches to the PRCB.
svn path=/trunk/; revision=44641
2009-12-17 22:38:54 +00:00
Timo Kreuzer 32014b63b8 [NTOSKRNL]
"Fix things": Add architecture specific macros KeGetTrapFrame, KeGetExceptionFrame and KeGetContextSwitches. Should fix kernel build on arm. Patch by Alex, modified by me.

svn path=/trunk/; revision=44640
2009-12-17 20:58:58 +00:00
Timo Kreuzer 26c9ccdb64 Hey Arch, next time you mess with code specific for an architecture you know nothing about, try to get at least the portable stuff right.
Fix _byteswap_ushort.

svn path=/trunk/; revision=44637
2009-12-17 13:41:06 +00:00
Timo Kreuzer f8e59069e2 Merge from amd64 branch
37868 Add CONTEXT flags for x64.
39347 Move rtl byteswap functions to wdm.h and add intrinsic definitions.
41030 fix definition of 64bit SLIST_HEADER. winnt.h: add 64bit SLIST_HEADER.
41071 Fix definition of NdisQueryPacketLength.
43447 Fix MmSizeOfMdl prototype.
43777 Fix definition of KdDebuggerNotPresent for gcc, the MS definition is broken, don't know if it's needed that way for msvc.
44178 Fix definition of _CONTEXT.
44491 Add LIST_ENTRY32/64, STRING32/64
44500 Add NT_TIB32/64.
44623 New definition of C_ASSERT and _STATIC_ASSERT using a function prototype. This way we avoid duplicate definition errors like with a typedef and unused function warning like with the extern.
44631 Fix C_ASSERT yet another time.

svn path=/trunk/; revision=44632
2009-12-16 23:39:20 +00:00
Timo Kreuzer dd8d39902e fix _byteswap_ushort for old gccs
svn path=/trunk/; revision=44630
2009-12-16 22:46:32 +00:00
Timo Kreuzer 8fbe2b1bf2 Use C_ASSERTS only for X86 and AMD64
svn path=/trunk/; revision=44629
2009-12-16 22:06:25 +00:00
Timo Kreuzer 440decaae9 implement _byteswap_ushort for arm
svn path=/trunk/; revision=44628
2009-12-16 21:58:31 +00:00
Timo Kreuzer 6ececd457f Make some ntdll exports architecture specific, as they are not exported by arm. Use pspec for ARM, too.
svn path=/trunk/; revision=44627
2009-12-16 21:41:18 +00:00
Timo Kreuzer ddb427f402 Fix prototype of MmSetAddressRangeModified
svn path=/trunk/; revision=44626
2009-12-16 21:12:54 +00:00
Daniel Reimer 702301aa40 Some build fixes for ReactOS ARM. Credits go to Alex Ionescu and Timo Kreuzer while I just tried to keep up. :-P
- Undefine Unicode which is defined by default in cegcc.
- Add a missing include in ke.h
- Implement _CountLeadingZeros, _CountTrailingZeros, _BitScanForward for ARM.

svn path=/trunk/; revision=44625
2009-12-16 20:59:06 +00:00
Gregor Schneider 1c23c0f872 [advapi32]
- Extend LsaLookupNames2 stub, fix file header
- Should prevent the advapi32 lsa test crash

svn path=/trunk/; revision=44622
2009-12-16 20:26:18 +00:00
Timo Kreuzer a95def3ad0 [NTDLL]
Convert to spec. Taken from wine with massive changes by me.

@ ros-arm-bringup: I couldn't verify it works for arm, so I kept the arm def file.

svn path=/trunk/; revision=44621
2009-12-16 17:32:30 +00:00
Timo Kreuzer 2df288b441 Fix built a bit more.
svn path=/trunk/; revision=44616
2009-12-15 23:49:10 +00:00
Johannes Anderwald 1d90d9e296 fix build
svn path=/trunk/; revision=44615
2009-12-15 23:28:54 +00:00
Timo Kreuzer e3fd4c3421 Merge from amd64 branch:
40122 mmsystem.h: 64bit build fixes. (Samuel Serapión)
40123 mmsystem.h: Even more 64bit fixes.  (Samuel Serapión)
40155 mmddk.h/mmsystem.h: Fix ACMDRVSTREAMINSTANCE, ACMDRVSTREAMHEADER, PORTALLOC, WAVEOPENDESC, MIDIOPENDESC, MIXEROPENDESC structures. Fix ACMFILTERENUMCBA/W, ACMFILTERTAGENUMCBA/W, ACMFORMATENUMCA/W, ACMFORMATTAGENUMCBA/W callbacks. Fix acmDriverEnum, acmFilterEnumA/W, acmFormatEnumA/W, acmFormatTagEnumA/W, acmStreamOpen, CloseDriver, OpenDriver, SendDriverMessage, mmTaskSignal, mmGetCurrentTask (Samuel Serapión)
40995 sqltypes.h: 64bit fixes for sqltype.h, also resort and cleanup (Timo Kreuzer)
40996 msacm.h: Fix tag of ACMFILTERCHOOSEA (Timo Kreuzer)
41029 sql.h: Fix SQLFetchScroll prototype. (Timo Kreuzer)
41045 commdlg.h: fix and update definition of OPENFILENAMEAW (Timo Kreuzer)
41449 basetsd.h: Disable wine hack for amd64 (Timo Kreuzer)
43506 wincrypt.h: Fix definition of CryptReleaseContext (Timo Kreuzer)
43840 wingdi.h: Fix LOGBRUSH definition. (Samuel Serapión)
43907 commctrl.h: Fix bad cast. (Timo Kreuzer)
44039 mmddk.h: Fix mmTaskCreate and mciGetDriverData prototypes per MSDN (Timo Kreuzer)
44040 windef.h/winsock.h/winsock2.h: Fix 32bit build. (Samuel Serapión)
44044 ws2spi.h: Fix ws2_32 64bit build (Samuel Serapión)
44294 winnt.h: Fix SLIST_ENTRY for WIN64 (Timo Kreuzer)
44338 winnt.h: fix build. (Samuel Serapión)
44460 winuser.h: Define PHDEVNOTIFY, PDLGITEMTEMPLATEA/W, LPDLGITEMTEMPLATEA/W, PPAINTSTRUCT, PMENUITEMTEMPLATE, PUSEROBJECTFLAGS, PMINIMIZEDMETRICS, PNONCLIENTMETRICSA/W, LPMOUSEINPUT, LPKEYBDINPUT, LPHARDWAREINPUT. Add HARDWAREHOOKSTRUCT structure. (Samuel Serapión)

svn path=/trunk/; revision=44614
2009-12-15 23:23:01 +00:00
Johannes Anderwald ddda0278b0 * Added wavebar
* Added format, duration, buffer, position labels
- Now wave_in/out objects are opened only when pressed rec/play buttons.
- The slider bar now real points to audio samples in the buffer
- Some other little Gui changes
- by Marco Pagliaricci (IRC: rendar)


svn path=/trunk/; revision=44613
2009-12-15 22:39:18 +00:00
Timo Kreuzer 50a510c96d [MAIN]
Use UlongToPtr instead of casting.

svn path=/trunk/; revision=44608
2009-12-15 19:06:23 +00:00
Gregor Schneider 068b10820f Jerome Gardou <jerome DOT gardou AT laposte DOT net>:
[kernel32] Set the SYNCHRONIZE access mask when using FILE_SYNCHRONOUS_IO options

svn path=/trunk/; revision=44607
2009-12-15 18:39:13 +00:00
Timo Kreuzer c5916ca7c4 [MSVCRT20]
Fix _getmainargs params in spec file

svn path=/trunk/; revision=44606
2009-12-15 17:51:31 +00:00
Timo Kreuzer 6bba9dc9a1 Merge from amd64 branch:
[SPIDER]
44002 Fix 64 bit build. (Samuel Serapión)

[PAINT]
43858 Fix 64 bit warnings. (Samuel Serapión)

[RAPPS]
43906 Fix 64 bit build. (Samuel Serapión)

[SNDREC32]
44389 Fix 64 bit build. (Samuel Serapión)

[TFTP]
41097 Fix pointer to DWORD cast. (Timo Kreuzer)

[COMCTL32]
36172 Build as unicode. (Samuel Serapión)

[USERMGR]
41098 Fix 2 POINTER<->DWORD casts. (Timo Kreuzer)

[d3d9]
38149 Fix pointer<->ULONG cast. (Timo Kreuzer)
43839 Fix 64 bit Build. (Samuel Serapión)

[DSOUND]
40753 Make DSDRIVERDESC.dnDevNode a DWORD_PTR and DSPROPERTY.InstanceId a ULONG_PTR. (Timo Kreuzer)

[LSASRV]
44037 Fix 64 bit Build. (Samuel Serapión)

[MMDRV]
40125 Fix 64bit build. (Samuel Serapión)

[MSGINA]
40993 fix 64bit build (Timo Kreuzer)

[NETSHELL]
41001 Don't cast the 1st parameter of InterlockedExchange to volatile void **, but to void ** (Timo Kreuzer)

[OPENGL32]
36502 No need to assert an offset thats only used in i386 specific code. (Samuel Serapión)

[POWRPROF]
41044 Don't cast NULL to DWORD. (Timo Kreuzer)
43860 Don't cast NULL to an integer type. (Samuel Serapión)

[PSAPI]
38150 Fix a cast (Timo Kreuzer)

[SHELL32]
38355 Use Get/SetWindowLongPtr (Samuel Serapión)
41047 Get rid of deprecated LargeInteger functions and use native int64 math instead. (Timo Kreuzer)
41048 DialogProc returns INT_PTR and not BOOL. Don't cast a pointer to LONG. Use INT_PTR instead of int for pointer math. (Timo Kreuzer)
41049 Change return type of OpenMRUListW and CreateMRUListW to HANDLE, add a comment that CREATEMRULISTW is already defined differently in explorer_new/undoc.h (Timo Kreuzer)
44601 Fix a prototype. Convert RtlLargeInteger to native int64. Fixes 64bit built. (Timo Kreuzer)

[WDMAUD.DRV]
41101 Don't cast DWORD to PVOID, use UlongToPtr instead. (Timo Kreuzer)

[WS2_32]
35777 fix ws2_32 spec file (Timo kreuzer)
44044 Fix ws2_32 64bit build (1 of 2) (Samuel Serapión)
44045 Fix ws2_32 64bit build (2 of 2) (Samuel Serapión)

[WS2_32_NEW]
44389 Fix 64 bit built. (Samuel Serapión)

svn path=/trunk/; revision=44602
2009-12-15 15:16:01 +00:00
James Tabor 64d1ab613b [Win32k]
- Remove LastChild.

svn path=/trunk/; revision=44597
2009-12-15 01:11:46 +00:00
Timo Kreuzer 2468cb96ed [IMAGEHLP]
Don't use explicit 32 bit version of IMAGE_OPTIONAL_HEADER

svn path=/trunk/; revision=44596
2009-12-14 23:35:40 +00:00
KJK::Hyperion 8e60110bef modified Makefile
New ${checkpoint} command to create an empty "checkpoint" file, to store the last modified date of a make target

modified   tools/rbuild/backend/mingw/rules.mak
   Rules that output more than one file at once don't mix well with parallel builds: serialize dependency checks through the use of checkpoint files. Fixes intermittent widl issues in highly parallel builds
   Bonus internal rbuild function that I had to commit one day or another

See issue #4994 for more details.

svn path=/trunk/; revision=44594
2009-12-14 23:02:28 +00:00