Commit graph

28406 commits

Author SHA1 Message Date
Aleksey Bragin 4529c9c1ff - Improve the FreeLDR->NTLDR conversion layer by now converting the ARC Hardware Tree.
- Apply relocation-style fixups to convert from FreeLDR to Kernel Addresses, since a contiguous buffer was used in FreeLDR, which means we only need to add a delta to each FreeLDR pointer to get the Kernel pointer.
- Don't assert if we receive an ARC tree, since we now do! Instead, pretty-print it to the debug log.
- Remove some registry debug spew.

svn path=/trunk/; revision=31133
2007-12-10 21:01:45 +00:00
Magnus Olsen 4b25246719 Fix some typo in Main_DirectDraw_QueryInterface
svn path=/trunk/; revision=31132
2007-12-10 20:29:51 +00:00
Aleksey Bragin a1c2403f66 - Pass ARC Hardware Tree in SetupLDR too.
- Zero-initialize memory from the Hardware Heap, just to be sure.
- Don't set the Version/Key/Affinity when creating the system node, let the caller do this.
- Fix the way components were added in the tree, it was busted.
- Enable setting of component information for the APM and ACPI component nodes. This was #if'ed out because it crashed the kernel while PnP was getting bus information for ATAPI/SCSIPORT, since the nodes had no component data. Add some component data to remove the crash, and then enable component information.
- The Real Mode IRQ Routing Table is a Peripheral Class, not a System Class.
- Enable the code to create component nodes for each PCI Bus, it was #if'ed out ages ago.
- Don't create any component data for the PCI BIOS, it doesn't have any.
- Create component data for the first PCI Bus component node based on the PCI_REGISTRY_INFO strucutre.
- Fix the way the BIOS Hard disk Peripheral nodes are created.
- Always create the DiskController node with floppy disk information, but don't do actual floppy detection if no floppies are there.
- Fix flags for Floppy Peripheral nodes.
- Fix vector for Floppy Peripheral node.
- Set component information for each BIOS hard disk peripheral node.
- Fix component information for Serial Peripherals, they were being created on the Serial Controller node instead.
- Set empty component information for the system node.
- TODO: Setup ACPI and APM Bios descriptor information.
- TODO: Setup ROM BIOS Block descriptor information.

svn path=/trunk/; revision=31131
2007-12-10 20:28:31 +00:00
Marc Piulachs 82b5e2eb8b * refactor the code to make it more OOP and extensible
* remove old outdated SD project files
* make it use some .NET 2.0 features as generic collections and settings 

svn path=/trunk/; revision=31130
2007-12-10 19:08:13 +00:00
Christoph von Wittich 588f8770cd Alexandre Julliard : Fix a compiler warning. <julliard at winehq.org>
svn path=/trunk/; revision=31129
2007-12-10 18:49:56 +00:00
Dmitry Chapyshev dfb70fc664 - Add icons for buttons on "Hardware Profiles" dialog
svn path=/trunk/; revision=31128
2007-12-10 18:20:02 +00:00
Dmitry Chapyshev 44d081e116 - Add some headers from wine
svn path=/trunk/; revision=31127
2007-12-10 17:46:08 +00:00
Marc Piulachs 11a1266b23 Add MSVC8 solution and project files
svn path=/trunk/; revision=31126
2007-12-10 15:48:02 +00:00
Marc Piulachs e34176dc58 * not quite ok , fix inconsistencies in spanish translation
* update catalan translation

svn path=/trunk/; revision=31124
2007-12-10 14:34:52 +00:00
Colin Finck acd9e9c3a1 Spanish translation for "find" by Grant A. Brady (bragr AT bradphi DOT com) with some fixes by encoded.
See issue #2880 for more details.

svn path=/trunk/; revision=31123
2007-12-10 14:24:42 +00:00
Christoph von Wittich 563fc21e30 fix a typo
svn path=/trunk/; revision=31122
2007-12-10 12:21:51 +00:00
Christoph von Wittich f02a249d62 fix redzone overwrite when launching solitaire
ntoskrnl\mm\/rpoolmgr.h(707): High-side redzone overwrite detected for paged pool address 0x8d882000
Tag   th(68742020), Size 4148, UserSize 4096, LoZone 87878787, HiZone 00000000

svn path=/trunk/; revision=31121
2007-12-10 09:57:30 +00:00
Magnus Olsen 13dc179a11 patch from Kamil Hornicek tykef at atlas dot cz (irc nick : Pigglesworth)
Fixed Main_DirectDraw_GetDisplayMode for dx1, dx2 
Fixed some compile warnings 







svn path=/trunk/; revision=31120
2007-12-10 07:34:54 +00:00
Dmitry Chapyshev ce09f0b1a4 - Update Russian translation
svn path=/trunk/; revision=31119
2007-12-10 07:19:34 +00:00
Christoph von Wittich f4081a9668 Alexander Nicolaysen Sørnes : Localize 'new folder' string. <alex at thehandofagony.com>
svn path=/trunk/; revision=31118
2007-12-10 07:06:29 +00:00
Thomas Bluemel 2ef4f7e239 _findnext is already implemented. Fixes a crash during Abiword startup
svn path=/trunk/; revision=31117
2007-12-10 05:07:47 +00:00
Aleksey Bragin 222172277b - Because we'll need to pass the ARC hardware information to the kernel, we need to use the usual FreeLDR trick of using a static buffer where to store the data instead of allocating memory. But, unlike our other data, this kind of information is variably-sized, and it's not possible to make arrays of arrays and start assuming upper bounds. Therefore, give us a large 16KB stash buffer, and implement a very simple array-based heap allocator so that all the ARC hardware memory will be contiguous and static as the kernel will expect it.
- Copy all configuration data, identifiers and other data passed to the arc hardware routines into a new location. This is because the caller will free this information, and we want to keep it in memory. We also want it to be contiguous and part of our stash buffer, so allocate the copies from the stash buffer described above.
- Store the root of the hardware tree in the ArchExtra ReactOS Loader Parameter Block, the kernel's freeldr->ntldr conversion routines will later deal with this data.

svn path=/trunk/; revision=31116
2007-12-09 22:57:40 +00:00
Aleksey Bragin 4fa42fad47 - Further refactor the code by completing getting rid of the registry key parameters and work only with ARC configuration component nodes; the registry key is now hidden in an opaque structure from the rest of the code.
- Fix some bugs in the ARC component node creation.

svn path=/trunk/; revision=31115
2007-12-09 22:09:37 +00:00
Aleksey Bragin 35d35bd7e9 - Start filling out ARC component data nodes for all the new refactored hardware node APIs (these are just dummies for now).
svn path=/trunk/; revision=31114
2007-12-09 21:49:17 +00:00
Aleksey Bragin 0e2f7faae4 - Refactor creation of component data under the HARDWARE\DESCRIPTION node to use separate routines in a new ARC file, so that registry routines are factored out of the process. This allows 1) Better portability with PPC branch (which will need to do the same kind of hardware work) 2) Ability to eventually get rid of the registry calls and build a true ARC hardware device tree instead (which the kernel will have to parse during boot). The idea is to remove registry writing support from freeldr (because the code is old and freeldr shouldn't be touching the registry anyway). Patch by Alex.
svn path=/trunk/; revision=31113
2007-12-09 20:17:56 +00:00
Aleksey Bragin a0da7760d4 - Our NtCreateKey currently allows building trees (which is incorrect) if the parent key is a symbolic link (which does exist), but if the target doesn't exist (Since the check 'does parent exist' is done Before the symlink is converted to its target. One side-effect is that although we create the CurrentControlSet symlink to ControlSet001, we never create ControlSet001. We end up creating it later during the boot by creating a sub-key, by exposing the bug in NtCreateKey. Since the new NtCreateKey uses the new parse routine code and doesn't exhibit this bug, we have to create ControlSet001 manually to avoid a failure. Other bugs of this nature may exist. Bug found and fixed by Alex.
- Implement the last bit of the new parse routine (creating children) and write a new version of NtCreateKey which uses the parse routine. Disable it for now until other latent bugs are fixed.

svn path=/trunk/; revision=31112
2007-12-09 19:36:04 +00:00
James Tabor 9f375e0914 Prevent crash in gdibatch.
svn path=/trunk/; revision=31111
2007-12-09 18:45:13 +00:00
Hervé Poussineau 709089678a CurrentControlSet should already be created at this point.
svn path=/trunk/; revision=31110
2007-12-09 18:07:33 +00:00
Christoph von Wittich 0b9eeb1205 fix a bug in ScConnectControlPipe
svn path=/trunk/; revision=31109
2007-12-09 18:05:02 +00:00
Christoph von Wittich 64e05ea20e Andrew Talbot : advapi32: Explicitly initialize nested array element. <Andrew.Talbot at talbotville.com>
svn path=/trunk/; revision=31108
2007-12-09 15:46:24 +00:00
Christoph von Wittich bdd068e087 regedit: Correctly parse key name containing ']' when deleting/exporting. <thestig at google.com>
svn path=/trunk/; revision=31107
2007-12-09 15:34:14 +00:00
Christoph von Wittich e24f9c4632 Lei Zhang : regedit: Allow entering - for a key in a . reg file to delete that key. <thestig at google.com>
Lei Zhang : regedit: Removed dead code from regproc.c. <thestig at google.com>

svn path=/trunk/; revision=31106
2007-12-09 15:31:41 +00:00
Christoph von Wittich 04b04c90ab forgot to save this one before committing
svn path=/trunk/; revision=31105
2007-12-09 14:16:49 +00:00
Christoph von Wittich 609e6d2ac0 Dmitry Timoshkov : wine: Switch to using 'long' for INT_PTR type for 64-bit compatibility. <dmitry at codeweavers.com>
svn path=/trunk/; revision=31104
2007-12-09 14:15:31 +00:00
Christoph von Wittich da3a3f761b Dmitry Timoshkov : include/wine/debug.h: Fix compilation warning in 64-bit mode. <dmitry at codeweavers.com>
svn path=/trunk/; revision=31103
2007-12-09 13:57:09 +00:00
Pierre Schweitzer 7adb28bee6 Updated French translation for butterflies
svn path=/trunk/; revision=31102
2007-12-09 13:03:07 +00:00
Magnus Olsen 9626ca08f9 BugFix : Main_DirectDraw_EnumDisplayModes and Main_DirectDraw_EnumDisplayModes4
it did never entry the callbacks loops it was wrong logic check in the begin of 
the function. This change are base on Kamil Hornicek tykef at atlas dot cz (irc nick : Pigglesworth) patch
and once again Thank you Kamil Hornicek tykef at atlas dot cz (irc nick : Pigglesworth) to notice it. and provide a partly fix for it.




svn path=/trunk/; revision=31100
2007-12-09 12:51:50 +00:00
Magnus Olsen b22185298e fix one smaller mistake in ddraw.h
LPDDENUMMODESCALLBACK, LPDDENUMMODESCALLBACK2, LPDDENUMSURFACESCALLBACK, LPDDENUMSURFACESCALLBACK2, LPDDENUMSURFACESCALLBACK4, LPDDENUMSURFACESCALLBACK7
is STDCALL and I did miss that. 
Thank you Kamil Hornicek tykef at atlas dot cz (irc nick : Pigglesworth) to notice it. and provide a partly fix for it.




svn path=/trunk/; revision=31099
2007-12-09 12:38:49 +00:00
Daniel Reimer 9d091efc46 Add and Update German RC Files of the Screensavers.
svn path=/trunk/; revision=31098
2007-12-09 11:58:39 +00:00
Marc Piulachs ecf35e3b7e - Trimed space from shlfldr_mydocuments.c in shell32.rbuild don't yet understand how rbuild was happy with it. I haven't modified what seems to be a typo on filename.
- Properly express paths with rbuild syntax (when possible)

svn path=/trunk/; revision=31097
2007-12-09 11:56:11 +00:00
Marc Piulachs c199df2315 Partly applied patch from bug 2874 by Vytis Girdzijauskas "CMan" cman<at>cman<dot>us
* Added description string to Butterflies screensaver for all languages.
* Use string resources in Maze screensaver.

My notes:
I haven't added butterflies.scr to reactos.dff as opengl screen savers are still broken under reactos , we already have 3dtext added for testing no need to add another one
I have modified mazescr installname to have the same name as the module has inset of changing it on reactos.dff
See issue #2874 for more details.

svn path=/trunk/; revision=31096
2007-12-09 11:27:23 +00:00
Aleksey Bragin 661de9fa33 - Convert msvcrt.def to msvcrt.spec (it better suits dll with stubbed functions).
svn path=/trunk/; revision=31095
2007-12-08 21:04:06 +00:00
Aleksey Bragin 60fad32ecf - Move NtCreateKey to regobj.c, delete ntfunc.c, now all those routines exist solely for creating keys.
- Move NtOpenKey to ntapi.c and rewrite it to use the new parse routine. It's now 6 lines of code instead of 80.
- Fix a bug in CmpDereferenceNameCnotrolBlockWithLock.
- Fix bugs during reference and dereference of KCB.
- Fix KCB structure.
- CmpDelayDerefKCBWorker is now called, don't make it assert anymore, just print out that it's not completed.
- Remove debug output from new parse routine, since it's now called for each key open.
- Add one more case to handle: opening the root \REGISTRY node.
- Don't dereference KCBs in the parse routine anymore: we have some bugs related to this and it would make ReactOS crash.

svn path=/trunk/; revision=31094
2007-12-08 21:00:45 +00:00
Aleksey Bragin f7d91421f8 - Temporary disable PnP in 1st stage, until a problem with CM is resolved.
svn path=/trunk/; revision=31093
2007-12-08 20:55:38 +00:00
Hervé Poussineau 8366ad6ef8 Fix some possible problems
svn path=/trunk/; revision=31091
2007-12-08 19:38:39 +00:00
Christoph von Wittich 24707452c1 Dmitry Timoshkov : kernel32: Fix the size of ThreadAffinityMask to match PSDK. <dmitry at codeweavers.com>
Dmitry Timoshkov : winternl.h: Make the fields of the PROCESS_BASIC_INFORMATION structure use same type width as a PSDK one .

svn path=/trunk/; revision=31090
2007-12-08 18:58:42 +00:00
Christoph von Wittich d7b6fab9eb -UniqueProcessId is ULONG_PTR not ULONG
-some formatting fixes

svn path=/trunk/; revision=31089
2007-12-08 18:42:10 +00:00
James Tabor 5b49088f56 Louis Lenders : gdi32: Add check for null pointer in SetDIBitsToDevice.
svn path=/trunk/; revision=31088
2007-12-08 18:32:22 +00:00
Christoph von Wittich 4eeedf2f9e Dmitry Timoshkov : Windows doesn' t send the initialization messages to a dialog if a passed in dlgProc is NULL . <dmitry at codeweavers.com>
svn path=/trunk/; revision=31087
2007-12-08 18:11:28 +00:00
Christoph von Wittich 2d1aaeaa7e use REFGUID instead of UUID* to be compatible with MS PSDK
svn path=/trunk/; revision=31086
2007-12-08 17:37:25 +00:00
Christoph von Wittich 665ac7b486 revert 31080 and apply the patch from Francois Gouget to delete_registry_key (Modify getRegClass() to avoid dubious comparisons and casts between HKEYs and error codes.)
svn path=/trunk/; revision=31085
2007-12-08 16:48:36 +00:00
Christoph von Wittich e936501a0c Michael Stefaniuc : kernel32: Pass HEAP_ZERO_MEMORY to HeapAlloc() instead of clearing the memory with a separate memset() call. <mstefani at redhat.de>
svn path=/trunk/; revision=31084
2007-12-08 16:33:05 +00:00
Christoph von Wittich 012c324bfb move GetTextExtentExPointI and GetTextExtentPointI from stubs.c to text.c
svn path=/trunk/; revision=31083
2007-12-08 16:26:40 +00:00
Christoph von Wittich e2181b108c Francois Gouget : Make the dword and binary data parsing both more flexible and stricter. <fgouget at codeweavers.com>
Jason Edmeades : Fix importing of .reg hex. <jason.edmeades at googlemail.com>

svn path=/trunk/; revision=31082
2007-12-08 15:17:39 +00:00
Christoph von Wittich 50ac6f77f8 Francois Gouget : Add missing '\n' to an error message. <fgouget at codeweavers.com>
Francois Gouget : Modify getRegClass() to avoid dubious comparisons and casts between HKEYs and error codes.
Francois Gouget : Having garbage after the dash in '"foo"=-' is not valid.
Francois Gouget : The registry functions return standard error codes, not HRESULTs.
Francois Gouget : If the data for a given value is in an unknown format, then print an error and don't modify the value.

svn path=/trunk/; revision=31081
2007-12-08 14:29:51 +00:00