Commit graph

42889 commits

Author SHA1 Message Date
Timo Kreuzer b40e7f0e03 [WINMM]
Fix a number of 64bit issues, add some comments where the code is not 64 bit safe. This module should be synced with wine, but this still causes a problem with Flash videos on FF2 (likely another timer problem)

svn path=/trunk/; revision=47900
2010-06-28 20:58:30 +00:00
Cameron Gutman e49b6bfe34 [DHCPCSVC]
- Discover adapters synchronously again until a bug (possibly a race condition) is fixed
- DHCP failure in certain situations is fixed now

svn path=/trunk/; revision=47899
2010-06-28 18:50:19 +00:00
evb 6d5d099e85 Implement Root Bus FDO AddDevice codes, get boot config, connect to HAL or ACPI config handlers (PciQueryForPciBusInterface, PciGetConfigHandlers), read BUS FDO hack flag, get _HPP HotPlug PCI ACPI data and initialize arbiter support.
PciGetHotPlugParameters work but no PCI HotPlug support on my machines, so cannot test ACPI data, that part stub now
Add PciFdoDispatchTable, PciFdoDispatchPnpTable, PciFdoDispatchPowerTable but all stub to PciIrpNotSupported however set correct IRP Dispatch Style for the IRPS
Arbiter support in PciInitializeARbiters done, but PciInterfaces array is NULL (stub) at moment
Add PCI_SIGNATURE, PCI_STATE, PCI_DISAPTCH_STYLE type, add PciInitializeState to begin the state support
Add structure for PCI_FDO_EXTENSION, PCI_SECONDARY_EXTENSION, PCI_INTERFACE, PCI_ARBITER_INSTANCE, PCI_DISPATCH_TABLE
PCI utility functions added: PciFindParentPciFdoExtension, PciInsertEntryAtTail, PciInsertEntryAtHead, PcipLinkSecondaryExtension, PciGetDeviceProperty, PciSendIoctl
Need sir_richard to add arbiter.h header to define ARBITER_INSTANCE for finish support
This 1000 more codes done now~

svn path=/trunk/; revision=47898
2010-06-28 17:30:35 +00:00
evb ce6c5dd121 Missing PCI_BUS_DRIVER_INTERNAL added to bugcodes. Thx for sir_richard to show me how to add.
svn path=/trunk/; revision=47897
2010-06-28 17:21:16 +00:00
Sylvain Petreolle f5a06bcb50 Fix midiOutOpen and midiInOpen prototypes.
svn path=/trunk/; revision=47896
2010-06-28 16:59:17 +00:00
Michael Martin c4915f13f1 [win32k]
- Only the CompletionCallback member determines if a callback is needed. Checking the SenderReturn is unwanted and this variable was never initialized which could cause bogus callback attempts. Just remove the BOOL variable SenderReturned and directly check if Message->DispatchingListEntry.Flink is NULL before attempting to remove the message from senders queue.  Noticed by Timo.

svn path=/trunk/; revision=47895
2010-06-28 12:05:49 +00:00
evb 1d4fa18cdc Begin implement full PCI Bus Driver. code by me comments by sir_richard to avoid Engrish
DriverEntry full 100% implemented, ACPI WatchDog detect, PCI IRQ Routing detect, PCI errata/hackflag detect (PciGetDebugPorts not support, need PCI Debug Device to test)
Native (S)ATA, PCI BIOS Resource Lock, System Errata/Hackflag also is detect
HAL Hoooking enabled, callbacks stub
Stub PnP Interfaces: PciAddDevice, PciDriverUnload, PciDispatchIrp
PCI utility routines: PciUnicodeStringStrStr, PciStringToUSHORT, PciIsSuiteVersion, PciIsDatacenter, PciOpenKey, PciGetRegistryValue, PciBuildDefaultExclusionList done
PCI Verifier Support for future: PciVerifierInit/PciVerifierProfileChangeCallback (stub)
Thank you for much patience~ This 1200 first codes, have 12000 codes more to come!~~


svn path=/trunk/; revision=47894
2010-06-28 05:23:31 +00:00
Sir Richard e1b8cfb906 [NDK]: Add some missing RTL Range Functions needed by eVb.
svn path=/trunk/; revision=47893
2010-06-28 04:26:18 +00:00
Sir Richard 2f23c40c67 [ACPI]: Share ACPI table structures and NT-specific registry data in a shared, internal ACPI header, instead of HAL's internal headers, because FreeLDR, the kernel's PnP Manager, the PCI Bus Driver and the ACPI Driver all need access to these types as well.
svn path=/trunk/; revision=47892
2010-06-28 04:25:38 +00:00
Timo Kreuzer 641c5d6ab8 [WINEMP§.ACM]
Define WIN32 to fix compilation for anything else than x86

svn path=/trunk/; revision=47891
2010-06-28 02:56:08 +00:00
Timo Kreuzer e1ba256aed [WINED3D]
Fix prototype of wined3d_event_query_supported (BOOL != HRESULT)

svn path=/trunk/; revision=47890
2010-06-28 02:27:53 +00:00
Timo Kreuzer c2da054c20 usurp: Physicus: better use </if> in .rbuild ;)
So be it.

svn path=/trunk/; revision=47889
2010-06-28 01:29:27 +00:00
Timo Kreuzer c0cf67d988 build w32knapi only for x86
svn path=/trunk/; revision=47888
2010-06-28 00:32:35 +00:00
Sir Richard 55c95b78f9 [PCI]: Add pciclass.rc to use the pciclass.mc/res-generated file by MC. eVb can now start committing his driver.
svn path=/trunk/; revision=47887
2010-06-28 00:02:20 +00:00
Sir Richard 079e15a99e [PCI]: Add PCI IRQ Routing Table structure to Shared, Internal PCI Header (based off the Microsoft Spec and the Apple SMBIOS Header).
[PCI]: Remove HAL-internal PCI definitions from the existing "Shared/Internal" PCI Header which existed in NTOS's private include directory, and move them to HAL-internal headers.
[PCI]: Remove remaining shared PCI definitions from that same header, and put them in the new Shared/Internal PCI Header.
[PCI]: Remove duplicated PCI definitions from FreeLDR, and use thw new Shared/Internal PCI Header.

svn path=/trunk/; revision=47886
2010-06-27 23:54:47 +00:00
Sir Richard cdbd59e260 [PCI]: Add the PCI_ENABLE_BRIDGE definitions that can be present in PCI_COMMON_CONFIG/type1/BridgeControl. Microsoft does not document these in the public PCI headers, but the definitions were found in the Singularity headers. eVb's PCI driver uses these.
svn path=/trunk/; revision=47885
2010-06-27 22:22:34 +00:00
Timo Kreuzer 9322109bcf [USER32]
Merge from amd64 branch:

36987:
- Fix user32 compilation errors. (Samuel Serapion)
36988:
- Make user32 compile and link by defining Get/SetClass/WindowLongPtrA/W (Stefan Ginsberg)
41480:
- Fix 64bit issues, add a wine compatibility hack (Timo Kreuzer)
41540:
- Make parameters for NtUserCallOneParam and NtUserCallTwoParam DWORD_PTR instead of DWORD (Timo Kreuzer)
43965:  (Samuel Serapion)
- Fix several user32 warnings.
- Sync GetWindow*A/W with wine and unify all versions, commenting out a wine hack.
- As a bonus implement GetWindowLongPtrA/W.
- Tested to work in trunk.
43992:
- Fix user32 build.  (Samuel Serapion)
45124:
- Fix user32 build. (Samuel Serapion)
47472:
- Remove wine hack and allow user32 to compile again. (Samuel Serapion)
47878: (Timo Kreuzer)
- Use UlongToHandle instead of LongToHandle
- case to ULONG_PTR instead of using HandleToUlong
- SetSysColorsTemp: don't truncate the pointer sized n value, remove a comment
- IntGetClsWndProc: fix a bug
- IntGetWindowLong: pass !unicode to IntGetWndProc
47882:
- Make the uiLo and uiHi members of the KMDDELPARAM structure UINT_PTRs (Timo Kreuzer)

svn path=/trunk/; revision=47884
2010-06-27 22:19:17 +00:00
Sir Richard 66bec4f5b8 [PCI]: Add the 40 different PCI erratas ("hack flags") that Windows can apply to broken PCI devices. eVb's driver knowss to apply these by parsing the PCI\Parameters list. These are the actual internal symbolic names used by Microsoft, which accidentally leaked out in the Vista Errata Manager .INF file.
svn path=/trunk/; revision=47883
2010-06-27 22:17:37 +00:00
Sir Richard 495536ab69 [BOOTDATA]: Add the 176 different PCI devices that Windows knows about, and the erratas that need to be applied to make those devices work correctly. This information is processed by eVb's PCI Bus driver. 3rd-party device manufacturers, as well as Microsoft online support pages, sometimes instruct users to add new entries to this list as well, and new entries are also added by 3rd-party driver .INF files. Probably 30% of computers in the world have at least one of these devices installed.
svn path=/trunk/; revision=47881
2010-06-27 22:12:00 +00:00
Amine Khaldi b3d42ba099 Fix a warning (treated as an error).
svn path=/trunk/; revision=47879
2010-06-27 21:37:42 +00:00
Sir Richard 12d80eeec0 [NDK]: Not Alex, not 2006, not February (27th, though), not Power Management.
svn path=/trunk/; revision=47876
2010-06-27 21:19:46 +00:00
Aleksey Bragin 5794cf44f1 [NTOS]
- Warn only once in MmSecureVirtualMemory/MmUnsecureVirtualMemory, like it was done in 47864.

svn path=/trunk/; revision=47875
2010-06-27 21:18:59 +00:00
Amine Khaldi e53a466981 Fix Build. Seriously this time ;)
svn path=/trunk/; revision=47874
2010-06-27 21:11:57 +00:00
Sir Richard 86f4c22185 [NTOS]: VfFailDeviceNode is actuall __cdecl.
[NTOS]: Sort, update, clean-up, and add descriptions to bugcodes.mc.

svn path=/trunk/; revision=47873
2010-06-27 21:02:20 +00:00
Sir Richard 2ab1f8b0d4 [NTOS]: Add "vf" NTOS component, required NDK headers, and enable exports required for PCI driver to load.
svn path=/trunk/; revision=47872
2010-06-27 20:47:52 +00:00
Sir Richard 26f62038b8 [NTOS]: I am sorry, this is embarssing. Fix build again.
svn path=/trunk/; revision=47871
2010-06-27 20:45:15 +00:00
Pierre Schweitzer d80d711832 Fix ARM build
svn path=/trunk/; revision=47870
2010-06-27 20:44:47 +00:00
Sir Richard dca7e2a102 [NTOS]: My SVN is haunted. Commit missing changes?
svn path=/trunk/; revision=47869
2010-06-27 20:38:12 +00:00
Eric Kohl 4c932f1485 [NTOSKRNL]
NtDuplicateToken: Fail, if TokenType is neither TokenImpersonation nor TokenPrimary.

svn path=/trunk/; revision=47868
2010-06-27 20:13:44 +00:00
Sir Richard 9d9fede96c [MC]: Add pciclass.mc required for eVb's PCI driver. Matches resource data in Windows driver, minus typos.
svn path=/trunk/; revision=47867
2010-06-27 20:08:38 +00:00
Cameron Gutman f4530b30f2 [DHCPCSVC]
- Use an event to signal when an adapter has been added

svn path=/trunk/; revision=47866
2010-06-27 20:05:52 +00:00
Sir Richard 763a24d9d7 - There's no such thing as PRTL_MESSAGE_RESOURCE_ENTRY, use PMESSAGE_RESOURCE_ENTRY instead.
svn path=/trunk/; revision=47865
2010-06-27 19:56:57 +00:00
Sir Richard 626e3e7295 [NTOS]: Warn only once about MmLockPageableImageSection being unimplemented.
svn path=/trunk/; revision=47864
2010-06-27 19:55:36 +00:00
Cameron Gutman 91aa625c40 [MSAFD]
- Handle the case (again) where we get passed an invalid lpErrno pointer to a WSP function
- Fixes some crashes I encountered when running Opera 9

svn path=/trunk/; revision=47863
2010-06-27 17:21:03 +00:00
Timo Kreuzer b51143af5f The Win32ClientInfo TEB field can be bigger than the CLIENTINFO structure.
svn path=/trunk/; revision=47862
2010-06-27 15:20:34 +00:00
Sylvain Petreolle 0cd695d643 update olepro32 base address.
svn path=/trunk/; revision=47860
2010-06-27 13:26:22 +00:00
Michael Martin 429fe0b64c [win32k]
- Add Check for spwndNext being null before accessing any of the members. Fixes bugcheck when using cubicexplorer.

svn path=/trunk/; revision=47859
2010-06-27 12:36:23 +00:00
Gabriel Ilardi 4203b20f25 [EVENTVWR]
- Update Italian and Spanish translations

svn path=/trunk/; revision=47858
2010-06-26 22:14:07 +00:00
Sylvain Petreolle 9b17ccc624 french translation for eventvwr
svn path=/trunk/; revision=47857
2010-06-26 21:51:29 +00:00
Eric Kohl e946994785 [EVENTVWR]
- Replace hard-coded column names by string resources.

svn path=/trunk/; revision=47856
2010-06-26 19:55:05 +00:00
Daniel Reimer fe430b6d23 Update WineFile to Wine 1.2rc5
svn path=/trunk/; revision=47855
2010-06-26 14:07:37 +00:00
Daniel Reimer 195cab6a79 Update reg, xcopy, winhlp32, wordpad to Wine 1.2rc5
svn path=/trunk/; revision=47854
2010-06-26 13:56:41 +00:00
Timo Kreuzer 3be89c6184 [USER32]
ntstatus.h is in psdk, not in ddk folder.
(How did this work?)

svn path=/trunk/; revision=47853
2010-06-26 11:03:09 +00:00
Timo Kreuzer 6965f5f1f5 [DDK/XDK]
Don't auto define NO_LEGACY_DRIVERS on reactos x64 builds.

svn path=/trunk/; revision=47852
2010-06-26 10:27:25 +00:00
Eric Kohl 3c656ee009 [FORMATTING]
- Fix indentation.

svn path=/trunk/; revision=47851
2010-06-26 09:50:41 +00:00
Eric Kohl 84ab81fe4b [NTDLL]
- Add RtlCreateBootStatusDataFile() stub.

svn path=/trunk/; revision=47850
2010-06-26 09:49:31 +00:00
Michael Martin bc5e79f42d [win32k]
- co_IntSendMessageWithCallBack is called for two reasons; for messages that originate from win32k and from user mode when using Callbacks.
For both cases do not do anything with the sendqueue member of message struct and do not add the message to the senders dispatch message list.
- In msgqueue related functions, check if the message is a nowait messages before attempting to remove and entry from the dispatch message list as it doesnt exist.
- Fixes a NonPagedPool corruption that was occurring on regtest bootcd. Thanks Caemyr for testing.

svn path=/trunk/; revision=47849
2010-06-26 09:15:32 +00:00
Timo Kreuzer 5b46128dfb [UNIATA]
Merge from amd64 branch:
44634: Make x86 specific optimizations x86 specific, use macros otherwise. (Samuel Serapion)
44639: Try to fix numerous pointer to ULONG casts. (Samuel Serapion)
47846/47847: Remove all the byteswap "optimisations" and use portable RTL byteswap functions (Timo Kreuzer)

svn path=/trunk/; revision=47848
2010-06-26 00:15:24 +00:00
Michael Martin f4962e7c69 [usbehci]
- Use the correct offset of ROOTHUB2_CONFIGURATION_DESCRIPTOR and ROOTHUB2_INTERFACE_DESCRIPTOR to calculate needed buffer sizes. Fixes a buffer overflow crash.

svn path=/trunk/; revision=47845
2010-06-25 15:50:26 +00:00
Timo Kreuzer c3b4cac97a [SUSPEND]
Fix compilation for amd64

svn path=/trunk/; revision=47844
2010-06-25 01:37:58 +00:00