Commit graph

28536 commits

Author SHA1 Message Date
Magnus Olsen
53ddbc9868 do not try add DDSD_LPSURFACE when it is already been set
svn path=/trunk/; revision=31269
2007-12-16 00:56:43 +00:00
Magnus Olsen
2dd0e4bc06 fix a typo
svn path=/trunk/; revision=31268
2007-12-16 00:46:43 +00:00
Magnus Olsen
dbd6da8f76 fix a bug in createsurface
DDSD_LPSURFACE should only be automatic set if we have a system memory surface.
 

svn path=/trunk/; revision=31267
2007-12-16 00:43:22 +00:00
Magnus Olsen
2bae495105 fix another bug in createsurface
a program does not need set the flag DDSD_LPSURFACE, if they forget ddraw will automatic set it.

svn path=/trunk/; revision=31266
2007-12-16 00:38:22 +00:00
Magnus Olsen
bff867887d fix a check in createsurface
do not accpect if both flag DDSCAPS_SYSTEMMEMORY and DDSCAPS_VIDEOMEMORY are set in pDDSD->ddsCaps

svn path=/trunk/; revision=31265
2007-12-16 00:28:35 +00:00
Johannes Anderwald
9ff46b90e2 - fix typo spotted by towerr
thanks

svn path=/trunk/; revision=31263
2007-12-15 22:19:24 +00:00
Aleksey Bragin
d9633373f6 - Use CmpLockRegistry instead of manual registry locking -- this also makes the registry lock shared instead of exclusive.
- Start using KCB locking/unlocking, usually shared first.
- Support KCB lock promotion from shared to exclusive when value cache functions require it (SearchNeedExclusiveLock -- not yet used).
- Add multiple checks for deleted KCBs so that operations on them fail.
- Protect symlinks from being erroneously modified.
- Remove a ReactOS symlink hack.
- Add code to setup the KCB Value Cache (right now we use the node list since nobody was setting the value cache up).
- Detect and assert on CM_KCB_SYM_LINK_FOUND, this is used by caching which we don't support.
- Protect KEY_NO_DELETE nodes from deletion.
- Lock the registry during hive flushing.
- Respect CmpNoWrite if it's set.
- Don't ignore Allocate flag sent to CmpLinkhivetoMaster during hive loading.

svn path=/trunk/; revision=31262
2007-12-15 22:06:10 +00:00
Magnus Olsen
442b5501fe Fixed param checks in createsurface code. and one wrong if check
svn path=/trunk/; revision=31260
2007-12-15 21:34:17 +00:00
Magnus Olsen
567306df67 always initate ppSurf to NULL if createsurface fail, the ppSurf must be zero out.
svn path=/trunk/; revision=31259
2007-12-15 21:25:39 +00:00
Magnus Olsen
4485c07783 Do not create a surface from wrong process.
if we found it was another process try call on createsurface that have started ddraw it will fail. 

svn path=/trunk/; revision=31258
2007-12-15 20:53:33 +00:00
Aleksey Bragin
0f4bc4008d - Fix typo in KCB flag.
- CmDeleteKey takes a Key Body, not a KCB.
- Simplify some code since ValueCache.RealKCB is a KCB now, not a hacked PKEY_OBJECT, so a bunch of typecasts can be removed.
- Implement CmpCleanUpSubKeyInfo to remove cached subkey information when a KCB is deleted (subkeys are not cached yet, however).
- Add checks in various code paths to make sure we don't touch a read-only KCB.
- Don't double-dereference a key object during a delete.
- Add checks for invalid key information classes.
- For KeyNameInformation, the caller must have some handle access to succeed the call.
- Validate alignment of key value names.
- Don't accept NULLs at the end of key value names.
- Validate key value name lengths.
- Validate data lengths.
- Remove a couple of forced lazy flushes that aren't required anymore.
- Use CmpLockRegistry() in ntapi.c instead of the manual lock release.

svn path=/trunk/; revision=31257
2007-12-15 20:51:40 +00:00
Dmitry Chapyshev
55dcdfc6c9 - Add Bulgarian layouts
svn path=/trunk/; revision=31256
2007-12-15 19:17:32 +00:00
Dmitry Chapyshev
14cdb9e388 - Add some languages from wine
svn path=/trunk/; revision=31255
2007-12-15 18:44:56 +00:00
Hervé Poussineau
1f387a2397 Check if symbols are defined, not their value!
svn path=/trunk/; revision=31254
2007-12-15 18:38:24 +00:00
Aleksey Bragin
f3e67d1114 - Use CmPrepareKey only in cmlib, since it's a cmlib hack.
svn path=/trunk/; revision=31253
2007-12-15 18:25:08 +00:00
Aleksey Bragin
0b6a2fda00 - Implement NtCreateKey using the new parse routine.
- NtOpenKey should only return the key handle if the operation was successful.
- Point to new parse routine, and rename it to CmParseKey instead of CmParseKey2 which was used during the test phase.
- Delete all of the "cm" directory, this code is now fully gone; the new Configuration Manager is in place.
- Move cm.h and cm_x.h to include/internal where they belong to and fix all their includers.

svn path=/trunk/; revision=31252
2007-12-15 18:14:41 +00:00
Aleksey Bragin
ffa5f05eca - Implement BIOS access routines in HAL.
- Implement HalResetDisplay using those routines.
- Uncomment a display reset in bootvid (as real Windows bootvid does).
- Remove 1 sec delay from the shutdown thread.
- As a result, no more red screen flashing at the end of the 1st stage, shutdown quotes are displayed again, and BSODs are shown correctly.

svn path=/trunk/; revision=31251
2007-12-15 17:15:48 +00:00
Sylvain Petreolle
6d60d0c394 french translation for usetup
svn path=/trunk/; revision=31250
2007-12-15 16:52:40 +00:00
Daniel Reimer
4255cdb33e eeevil trailing spaces :D
svn path=/trunk/; revision=31249
2007-12-15 16:30:15 +00:00
Johannes Anderwald
f7611e2090 - swedish translation of usetup by Stefan Ginsberg stefan__100__@hotmail.com
- IRC: Stefan100

svn path=/trunk/; revision=31248
2007-12-15 16:25:42 +00:00
Daniel Reimer
c53906d07e Updated German USetup localisation. (Not tested yet, if the string are too long.)
svn path=/trunk/; revision=31247
2007-12-15 16:21:12 +00:00
Aleksey Bragin
a78f0c5728 - Add eol-style:native.
svn path=/trunk/; revision=31246
2007-12-15 16:18:49 +00:00
Johannes Anderwald
0600d749e8 - sorry for breaking build
svn path=/trunk/; revision=31245
2007-12-15 16:08:01 +00:00
Johannes Anderwald
d42a0f2bb3 - move static errocodes to header
- translation of errorcodes is not yet ready

svn path=/trunk/; revision=31244
2007-12-15 14:24:02 +00:00
Dmitry Chapyshev
204a24b33e - Add Russian Translation
svn path=/trunk/; revision=31243
2007-12-15 12:48:07 +00:00
Daniel Reimer
a6e6b11761 Bug 2884 : New greek resource files (djapal@gmail.com)
svn path=/trunk/; revision=31242
2007-12-15 12:41:54 +00:00
Hervé Poussineau
a3c09fcea9 Fix {module}_clean target
svn path=/trunk/; revision=31241
2007-12-15 12:27:30 +00:00
Ged Murphy
a054098132 remove NtUserGetCursorIconSize
svn path=/trunk/; revision=31240
2007-12-15 12:17:34 +00:00
Ged Murphy
a8d5e08510 remove the ros only NtUserGetCursorIconSize and implement NtUserGetIconSize in it's place
svn path=/trunk/; revision=31239
2007-12-15 12:16:45 +00:00
Johannes Anderwald
80a90cc261 - register Folder Options panel
- add code to register printer folder 

svn path=/trunk/; revision=31238
2007-12-15 12:03:47 +00:00
Johannes Anderwald
e52d13a403 - register Folder Options control panel
svn path=/trunk/; revision=31237
2007-12-15 11:48:24 +00:00
Sylvain Petreolle
fd649cdc19 include SDK first
svn path=/trunk/; revision=31236
2007-12-15 11:30:07 +00:00
Johannes Anderwald
a2359505b3 - ukrainian translation of usetup by Artem Reznikov (temarez)
- sort languages
See issue #2889 for more details.

svn path=/trunk/; revision=31235
2007-12-15 11:25:03 +00:00
Johannes Anderwald
fec18d2cf4 - add IDS_FOLDER_OPTIONS constant
- start implementing folder options cpl
- export a few functions by name, patch by Kamil Hornicek(Pigglesworth)
- move Options_RunDll[A|W] to new file folder_options.c

svn path=/trunk/; revision=31234
2007-12-15 11:13:01 +00:00
Hervé Poussineau
3e0d6fc8cf Fix deletion of generated proxy makefile
svn path=/trunk/; revision=31233
2007-12-15 10:04:29 +00:00
Aleksey Bragin
61ed2f0c41 - Colin Finck: Replace broken memcmp comparison of wide strings by an own version of wcsncmp (due to the fact it may be different on different hosts).
- Add RtlAssert to mkhive, it was missing in some compiling cases, and fix DbgPrint function implementation.
- Mark a memory overwrite in mkhive with a FIXME, to be fixed later.

svn path=/trunk/; revision=31232
2007-12-15 10:02:00 +00:00
James Tabor
5bd30618ac Use new share handle table info.
svn path=/trunk/; revision=31231
2007-12-15 09:11:59 +00:00
James Tabor
383356eb43 Add CAPS1 capability flags, not found in sdk. Source is from wine.
svn path=/trunk/; revision=31230
2007-12-15 08:39:27 +00:00
James Tabor
9c07113163 Start using gdi shared handle table.
svn path=/trunk/; revision=31229
2007-12-15 08:08:11 +00:00
James Tabor
d7abb13de2 Add new items to gdi handle table. Added cfont and user space share gdi handle table.
svn path=/trunk/; revision=31228
2007-12-15 07:03:51 +00:00
Dmitry Chapyshev
2bac48a11b - Add some dialogs
svn path=/trunk/; revision=31227
2007-12-15 06:35:55 +00:00
Timo Kreuzer
07eb7f5d69 - use own version of GdiQueryTable() instead of relying on gdi32.dll
- more tests for NtGdiGetDIBitsInternal

svn path=/trunk/; revision=31226
2007-12-15 04:35:16 +00:00
Timo Kreuzer
5f55fe95c7 - use own version of GdiQueryTable() instead of relying on gdi32.dll
- CrateFont -> CreateFontA
- A bunch of tests for SelectObject

svn path=/trunk/; revision=31225
2007-12-15 04:22:19 +00:00
Timo Kreuzer
de6ac22db5 - fix type field calculation in GDIOBJ_CovertToStockObject
- add some DPRINTs on problems

svn path=/trunk/; revision=31224
2007-12-15 02:08:23 +00:00
Timo Kreuzer
e324228af3 add a bitmask for the flags in the gdi objects type field
svn path=/trunk/; revision=31223
2007-12-15 02:07:43 +00:00
Timo Kreuzer
12096d19c4 - add GDI_OBJECT_TYPE_PFE
- use own version of GdiQueryTable() instead of relying on gdi32.dll, as vista seems not to support it anymore

svn path=/trunk/; revision=31222
2007-12-15 00:34:57 +00:00
Aleksey Bragin
541c17ddaa Filip Navara <xnavara at volny dot cz>
- Remove unused code from HvGetCellSize().
- Fix situation, when a new cell is allocated with a too small size, resulting in an empty free cell (a cell has to be able to store at least one HCELL_INDEX), then the free list code overrides the next cell after the empty one.
- Reenable commented out assert in HvpRemoveFree(), since now it works as expected.

svn path=/trunk/; revision=31221
2007-12-14 23:17:43 +00:00
James Tabor
716baf379c Use long for HandleIndex.
svn path=/trunk/; revision=31220
2007-12-14 18:02:22 +00:00
James Tabor
24f650c712 Add more items for device capabilities.
svn path=/trunk/; revision=31219
2007-12-14 17:35:31 +00:00
Hervé Poussineau
591c2ff8ee Add missing space
svn path=/trunk/; revision=31218
2007-12-14 16:56:20 +00:00