Commit graph

44586 commits

Author SHA1 Message Date
Johannes Anderwald 3c6ed75839 [AUDIO-BRINGUP]
- Partly implement IKsProcessingObject interface, which will be used to handle ks filter-centric based filters
- Fix broken check, which failed to construct filters, which dont have a FILTER_DISPATCH associated
- Add check which fails create requests, when the filter doesnot allow user mode access (i.e. echo cancelation filter)
- register ks worker to dispatch processing requests to the IKsProcessingObject
- Implement KsFilterAttemptProcessing, KsFilterGetAndGate

svn path=/branches/audio-bringup/; revision=50097
2010-12-22 15:20:38 +00:00
Timo Kreuzer 76ff797dcb [HAL]
Convert while (TRUE); to ASSERT(FALSE); on unimplemented pathes.

svn path=/trunk/; revision=50096
2010-12-22 14:31:39 +00:00
Aleksey Bragin fc17a96938 [NTOS]
- Always initialize TrapFrame segment selectors in KiEnterTrap, because further C code relies on at least TrapFrame->SegFs being correct. Running Arwinss on VirtualBox exposed this bug.
I wouldn't find solution for this bug without Timo's great help!

svn path=/trunk/; revision=50095
2010-12-22 14:26:36 +00:00
Johannes Anderwald 030ee14071 [PSDK]
- Add ks gate functions

svn path=/branches/audio-bringup/; revision=50094
2010-12-22 13:52:25 +00:00
Timo Kreuzer 2342366fe3 [FORMATTING]
Apply indentation of 4 spaces.

svn path=/trunk/; revision=50093
2010-12-22 13:33:09 +00:00
Timo Kreuzer 1f982b1479 [NTDLL]
Move RtlPcToFileHeader to rtl/libsupp.c

svn path=/trunk/; revision=50092
2010-12-22 13:07:04 +00:00
Timo Kreuzer 372bbf2a73 [FORMATTING]
Apply indentation of 4 spaces.

svn path=/trunk/; revision=50091
2010-12-22 13:00:47 +00:00
Pierre Schweitzer 10bab36870 [FASTFAT]
Fix for a buffer overflow and then a buffer overrun (if ever it fixes something)
The way filenames are handled for FAT entries should be REALLY simplified. This would prevent such errors.
Thus, there are more magic values in fastfat driver than everywhere else in ReactOS which makes proper fixing hard (impossible?).
Finally, the code for that fix is crappy, but I don't care, it fits the rest of the fastfat driver code.
*pissed off*
Fixes CID #2502

svn path=/trunk/; revision=50090
2010-12-22 00:13:03 +00:00
Timo Kreuzer 1ef6958203 [SCSIPORT]
ScsiPortConvertPhysicalAddressToUlong takes an ULONG_PTR as input, fix function accordingly and do the "calculation" directly instead of calling RtlConvertUlongToLargeInteger
Spotted by Samuel.

svn path=/trunk/; revision=50089
2010-12-21 23:48:15 +00:00
Pierre Schweitzer f43fa44a2e [NTOSKRNL]
Fix CID 3454

svn path=/trunk/; revision=50087
2010-12-21 22:24:50 +00:00
Jérôme Gardou 90d2da336d [VGA_NEW]
- avoid buffer overrun, CID 11049
Brought to light by vicmarcal

svn path=/trunk/; revision=50085
2010-12-21 21:55:29 +00:00
Timo Kreuzer 4a58e37b7c [NTSOKRNL]
add a comment so that noone will stumble upon this atrocity a second time.

svn path=/trunk/; revision=50084
2010-12-21 21:48:29 +00:00
Pierre Schweitzer a5a6940af8 [NTOSKRNL]
Actually, code was correct, but ugly (who said "normal, that's a hack).
So, when that code is called from SetupLDR, KeyHandle is required to be to 1. This what code does. Thing we do in the if condition when it appears we are called from SetupLDR.
To avoid any further question, or warning, adding more parenthesis to show that we know what we do.
So, to sum up, there's no comparaison for KeyHandle

svn path=/trunk/; revision=50083
2010-12-21 21:35:04 +00:00
Amine Khaldi a2ca649780 [NTOSKRNL]
- Fix an assign where a comparison was intended. CID 2626.

svn path=/trunk/; revision=50082
2010-12-21 20:28:21 +00:00
Michael Martin 604d4c9de8 [NTOS]: Check that MaximumSize is valid value if the section is being backed by paging file.
svn path=/trunk/; revision=50081
2010-12-21 15:19:58 +00:00
Roel Messiant 2b69f5fa2c [DEVMGR]
- DisplayDevicePropertyText: Use full DWORD value, not just one byte of it (CID 1803).
[WINMM]
- MCI_Close: Use UINT instead of UINT16 for the device id (CID 1804).

svn path=/trunk/; revision=50080
2010-12-21 14:58:13 +00:00
Johannes Anderwald ea8f6ef311 [AUDIO-BRINGUP]
- Move irp completion to CompleteRequest function for debugging of multiple irp completion bugs
- Remove bugs asserts in IKsDevice_PnpStartDevice
- Set device to started when the device does not need pnp notification
- Don't complete the irp in IKsDevice_Create, the driver has already done this
- Comment out UNIMPLEMENTED macro in KsFilterAttemptProcessing
- Fix check in FindMatchingCreateItem
- Don't set DO_DIRECT_IO flags on PDO devices
- Set DO_DEVICE_INITIALIZING flag on PDO device 
- Construct device name with swprintf
- Add check if the device entry has already been constructed
- Zero device capabilities
- Implement bus watchdog routine. The routine checks if pdo has successfully been started, otherwise the pdo is marked invalid and the deleted and then constructed again. If the pdo has been started, all pending irp requests are completed with STATUS_REPARSE. (This is probably not supported by Ros kernel yet)
- Acquire device entry list lock when working with device entries
- Always store status code in irp for all Ks bus api routines
- Handle IRP_MN_REMOVE_DEVICE
- Start watchdog timer when IRP_MN_START_DEVICE is received
- Ros KS nos successfully initializes and all audio devices appear in VBOX+WinXP+SP3. Playback not yet working (Needs KsAttemptFilterProcessing for splitter and friends)
- TODO: enhance time out to make audio system initialize faster

svn path=/branches/audio-bringup/; revision=50079
2010-12-21 13:06:47 +00:00
Cameron Gutman 018e160fdf [EXPLORER-NEW]
- Fix another "sizeof" usage mistake
- CID 1631

svn path=/trunk/; revision=50078
2010-12-21 04:48:36 +00:00
Cameron Gutman e67bf5752c [USBDRIVER]
- Fix a bug that resulted in us only copying half of the old keyboard data
- CID 10402

svn path=/trunk/; revision=50077
2010-12-21 04:35:12 +00:00
Roel Messiant 95e952c388 [CLASSPNP]
- Use correct type in sizeof expression (CID 1646 and 10401).
- Simplify signature define (CID 3653 and 3654).
- Remove funky 0xFF characters.

svn path=/trunk/; revision=50076
2010-12-21 00:41:52 +00:00
Cameron Gutman 6c76be5e63 [URLMON]
- Sync to Wine 1.3.9

svn path=/trunk/; revision=50074
2010-12-20 21:29:55 +00:00
Cameron Gutman 72fa05f13b [WININET]
- Sync to Wine 1.3.9

svn path=/trunk/; revision=50073
2010-12-20 21:25:11 +00:00
Cameron Gutman cbbeec3a07 [NDIS]
- Fix sizeof typo
- CID 10400

svn path=/trunk/; revision=50072
2010-12-20 20:57:22 +00:00
Cameron Gutman f683f3f37a [WINHTTP]
- Sync to Wine 1.3.9

svn path=/trunk/; revision=50071
2010-12-20 20:36:21 +00:00
Aleksey Bragin 29d4944804 - Update "slightly less than all" IDLs to Wine-1.3.9. (Except for shlobj, shobjidl and shtypes.h, and DirectX stuff).
svn path=/trunk/; revision=50070
2010-12-20 11:56:24 +00:00
Timo Kreuzer 6e95cdc657 [CRT]
rename pow_asm.c to powl.c to reflect it's content.

svn path=/trunk/; revision=50069
2010-12-20 11:48:55 +00:00
Timo Kreuzer bc5452aa10 [CRT]
Fix bugs in converted asm file. Fixes Firefox color issues.

svn path=/trunk/; revision=50068
2010-12-20 10:16:43 +00:00
Johannes Anderwald 8baebdbded [AUDIO-BRINGUP]
- Move software bus functions into swenum.c
- Add missing #undef INTERFACE in ksiface.h
- Partly implement KsRemoveBusEnumInterface
- Implement KsServiceBusEnumPnpRequest, KsServiceBusEnumCreateRequest, KsIsBusEnumChildDevice, KsInstallBusEnumInterface, KsGetBusEnumPnpDeviceObject, KsCreateBusEnumObject, KsGetBusEnumParentFDOFromChildPDO, KsGetBusEnumIdentifier
- KS now supports the software bus driver
- As a side effect, ks.sys now fully works in Windows XP
- Tested with VBox+WINXP SP3+

svn path=/branches/audio-bringup/; revision=50067
2010-12-20 02:45:18 +00:00
Roel Messiant 8e7e8f566f [ADVAPI32]
- ConvertStringSidToSidW: Stop writing 1 subauthority too much. Fixes a DWORD sized buffer overflow. Should fix bug #5764.
- ConvertStringSidToSidW: Don't leak an allocated SID in case of failure.
[SETUPAPI]
- SetupDiClassNameFromGuidExW: Rewrite to prevent a buffer overflow and pass additional winetests. Should fix bug #5474.
- SetupDiClassNameFromGuidExA: Return the required buffer size in failure cases.

svn path=/trunk/; revision=50066
2010-12-19 23:19:04 +00:00
Roel Messiant 4989fe718a [OLEACC]
- Use an actual entrypoint. Needed to record the instance handle, used by various function that access resources of the module. Should fix oleacc:main winetest.

svn path=/trunk/; revision=50064
2010-12-19 22:53:29 +00:00
Aleksey Bragin ec2b5bea7f [WIDL]
- Update to Wine-1.3.9.
- Important note: Syntax of widl invocation changed slightly, so take this into account when merging to cmake branch.

svn path=/trunk/; revision=50063
2010-12-19 20:47:16 +00:00
Aleksey Bragin a2dad68309 [PSDK]
- Oleg Baikalow: Add missing definitions to ipexport.h.

svn path=/trunk/; revision=50053
2010-12-17 15:32:07 +00:00
James Tabor e8264b6759 [Win32k|User32]
- Finish 50030 (work by Giannis), Now PostMessage passes all the correct data based on Get/PeekMessage. Example: Post A, Get/Peek A, Translate A, Dispatch A, should be that simple. FYI: DDE memory handling should be in win32k not user32 and why,,,,, ~see next point~
- Patch up problems (at a minimum) going into the SendMessage/Timeout A2U U2A support in win32k and fixed SMTO callback if local.

svn path=/trunk/; revision=50047
2010-12-17 01:09:42 +00:00
Giannis Adamopoulos f21a470fe6 remove some more unnecessary debug output
svn path=/trunk/; revision=50045
2010-12-16 21:42:28 +00:00
Giannis Adamopoulos 5a3dff4bd2 [win32k]
-Remove an unneeded debug message

svn path=/trunk/; revision=50043
2010-12-16 20:41:25 +00:00
Giannis Adamopoulos 5996aeb16b [user32_winetest]
-revert the previous commit

svn path=/trunk/; revision=50042
2010-12-16 19:11:13 +00:00
Giannis Adamopoulos fa87a286f1 [user32_winetest]
-deactivate some tests that hang in reactos that have already been deactived and reactivded by mistake twice

svn path=/trunk/; revision=50041
2010-12-16 18:49:10 +00:00
Johannes Anderwald 219cbd064d [AUDIO-BRINGUP]
- Implement SwDispatchPower

svn path=/branches/audio-bringup/; revision=50036
2010-12-16 11:56:12 +00:00
Johannes Anderwald 7a85cb26a1 [AUDIO-BRINGUP]
- Fix several bugs in SwDispatchPnp routine
- Routine did not complete requests, when KsServiceBusEnumPnpRequest successfully handled the request
- Software bus driver did not handle resource lists irps
- Software bus driver did not support querying pnp device state
- Software bus driver leaked the irp for IOCTL_SWENUM_GET_BUS_ID requests in SwDispatchDeviceControl
- Software bus driver is now successfully initializes in XP and audio devices are present

svn path=/branches/audio-bringup/; revision=50035
2010-12-16 11:10:45 +00:00
Johannes Anderwald fe9ca5c028 [AUDIO-BRINGUP]
- Trying to activate the software bus driver. Needs more work

svn path=/branches/audio-bringup/; revision=50034
2010-12-16 09:09:43 +00:00
Aleksey Bragin 074f4cec87 [NTOS]
- Roel Messiant: Fix NtQueryObject to return the required buffer size if the buffer provided was too small. Unimplemented paths behaviour is preserved.

svn path=/trunk/; revision=50032
2010-12-15 20:12:03 +00:00
Aleksey Bragin 19e368a616 [RTL]
- Roel Messiant: Specify proper byte length of a unicode string. Fixes out of bounds access in actctx.c support code. No more half-cut active context stuff in debug logs.

svn path=/trunk/; revision=50031
2010-12-15 20:03:43 +00:00
Giannis Adamopoulos ca9039c50e [win32k]
- Use the new version of NtUserGetMessage and NtUserPeekMessage written by Jim. It is possible to use them now because GetMessage and PeekMessage don't return messages that contain pointers. As a result they don't need to do any extra work to copy the message to user mode. All messages that contain pointers are sent messages and this means that they don't get into the message loop. Instead they are passed directly to the window proc.
- DispatchMessage works only if the target window belongs to the current thread. This lets us remove uneeded copies of lparam to user mode. 

[user32]
- Remove a bunch of uneeded code in GetMessage and PeekMessage that copyied the lparam in a new buffer and did unicode to ansi convertions. It is not needed because they don't receive messages with pointers any more

svn path=/trunk/; revision=50030
2010-12-15 19:21:48 +00:00
evb 2138d6d794 - Mode detect look for 4BPP, planar, graphics < 0x800 mode now
- Add GDIINFO from NT4 VGA DDK sample driver
- Set 4BPP prefer DIB format
- No graphics caps set for VGA driver
- Put static palette/color buffer for when VGA IOCTL send later
- Convert almost done, bInitSURF is last

svn path=/trunk/; revision=50029
2010-12-14 04:10:14 +00:00
evb 46ab421926 - Finish make enable.c work full on vga, main change force 4BPP (disable other codes), create 4BPP bitmap surfobj, associate and lock
- Easy part done, now hard part

svn path=/trunk/; revision=50028
2010-12-14 03:52:00 +00:00
evb 3b3c818073 - fix now palette.c for vga, by copy logPalVGA/VGALOGPALETTE from NT4 DDK VGA sample drv and turn off codes for allocate 256 color pallette, instead use fix 16 color logPalVGA
- fix header of debug.c

svn path=/trunk/; revision=50027
2010-12-14 03:27:51 +00:00
evb bd41ac7ef9 - Add the new vga miniport to build
- Replace the framebuf_new spec rc rbuild with vga_new spec rc rbuild
- Delete pointer.c
- Start make changes, driver.h new fields for VGA, change driver short/long name/tag, add macros and in enable.c remove hw pointer support

svn path=/trunk/; revision=50026
2010-12-14 03:17:29 +00:00
evb 4803978d0e - commit base for new vga display miniport driver, is svn copy of framebuf_new as many codes identical
- Will than commit and document differences to make into vga driver

svn path=/trunk/; revision=50025
2010-12-14 03:03:30 +00:00
Pierre Schweitzer 1d0887e1ac [NTOSKRNL]
Silent FstubEx* debug prints on popular demand (ie, Timo)

svn path=/trunk/; revision=50024
2010-12-13 22:24:49 +00:00
Pierre Schweitzer fd45340e00 [NTOSKRNL]
Merge some changes from r50021 to FsRtlIsNameInExpression() to make code easier to read and understand...

svn path=/trunk/; revision=50022
2010-12-13 11:33:29 +00:00