Commit graph

31782 commits

Author SHA1 Message Date
Timo Kreuzer 8bbca850f6 RtlpCreateCriticalSectionSem: use InterlockedCompareExchangePointer instead of InterlockedCompareExchange for a handle
svn path=/trunk/; revision=34581
2008-07-18 23:47:33 +00:00
Matthias Kupfer 8fddba3256 Mario Kacmar <kario AT szm DOT sk>
- Enhancement for basic Slovak keyboard layout added.
- See #1251 for more details.

svn path=/trunk/; revision=34580
2008-07-18 21:08:52 +00:00
Matthias Kupfer 98ecafb85f Mario Kacmar <kario AT szm DOT sk>
- Enhancement for Slovak keyboard layout (QWERTY) added.
- See #3528 for more details.

svn path=/trunk/; revision=34579
2008-07-18 21:05:40 +00:00
Matthias Kupfer 820054b030 Mario Kacmar <kario AT szm DOT sk>
- Slovak and Czech translation of several rc-files
- See #3519 for more details.

svn path=/trunk/; revision=34578
2008-07-18 20:58:09 +00:00
Klemens Friedl 50147b7f55 * update GUI interface, according to http://www.reactos.org/wiki/index.php/First_Stage_GUI_Setup
svn path=/trunk/; revision=34576
2008-07-18 19:35:03 +00:00
James Tabor ce85b4a0f3 Update WinUser, CWPRETSTRUCT and MOUSEHOOKSTRUCTEX.
svn path=/trunk/; revision=34575
2008-07-18 18:09:12 +00:00
Art Yerkes 747d575347 Patch by Cameron Gutman (aicommander <at> gmail <dot> com)
- Reenable spinlocks in MiniIndicateData
- Don't raise IRQL when calling MiniDoRequest

svn path=/trunk/; revision=34574
2008-07-18 11:19:29 +00:00
Matthias Kupfer 11f2456fdf - gui template for 1st stage setup, english only
- implemented, but still disabled - it's work in progress

svn path=/trunk/; revision=34572
2008-07-18 09:07:54 +00:00
Stefan Ginsberg 90f3efacc5 - Patch from Samuel "encoded" Serapion (samdwise51 at gmail dot com)
- Use "size_t" instead of "unsigned int" where appropriate

svn path=/trunk/; revision=34570
2008-07-17 22:25:03 +00:00
Stefan Ginsberg 7c9bd27915 - Fix a typo in the DC_ATTR structure: mxDevicetoWorld -> mxDeviceToWorld
svn path=/trunk/; revision=34569
2008-07-17 21:54:40 +00:00
Jeffrey Morlan b4db43fa7b Clean up console code a bit:
- Get/SetConsoleTitle: Get rid of unnecessary handle creation; instead, just have csrss get the console from the ProcessData.
- Instead of using ShowX/ShowY to store the origin of the buffer, use the VirtualX member that was put there for this purpose. Rename it to VirtualY, though, since it's a row number. ShowX/ShowY should hold the position of the visible window, once that's implemented.
- From the CSRSS_CONSOLE structure: remove hActiveBuffer (redundant), CodePageId (unused), and hWindowIcon (only used as a temporary)
- Make cursor coordinates be "logical", not "physical". This simplifies various things.
- ConioConsoleFromProcessData: If process has no console, return STATUS_INVALID_HANDLE; don't pretend to succeed (causing many functions to access memory around address 0, which is probably not a good thing). Remove various Console != NULL checks which are now unnecessary.

svn path=/trunk/; revision=34568
2008-07-17 21:53:39 +00:00
Art Yerkes ecdd55845d Patch by Cameron Gutman (aicommander <at> gmail <dot> com)
- Don't mess with cancelled IRPs
- Don't attempt to cancel an already cancelled IRP
- Unmap MDL when then IRP gets completed

svn path=/trunk/; revision=34567
2008-07-17 19:42:26 +00:00
Jeffrey Morlan 846c750785 Fix argument parsing for label command. It should not split the arguments by spaces; on Windows you can do 'label c:x y z' and it will set the label to X Y Z. (Bug 3530 #2)
svn path=/trunk/; revision=34566
2008-07-17 16:46:09 +00:00
Stefan Ginsberg c7ed95cb55 - Patch by Cameron Gutman aicommander <at> gmail <dot> com
- Don't release the device spinlock twice if KeSynchronizeExecution returns false
See issue #3520 for more details.

svn path=/trunk/; revision=34564
2008-07-17 14:43:36 +00:00
Stefan Ginsberg 03c3603a3d -PCHify OpenGL32
svn path=/trunk/; revision=34562
2008-07-17 11:37:49 +00:00
Christoph von Wittich 30feb7b285 fix for getaddrinfo
patch by Yuri Sidorov <jura at cp-lab dot com>

svn path=/trunk/; revision=34560
2008-07-17 08:07:37 +00:00
Jeffrey Morlan c1e4ff95a4 - CsrReleaseObject: Fix locking to prevent possibility of closing the same handle twice.
- GuiConsolePaint: Clip the paint area to the screen buffer, to stop heap corruption if the window gets oversized.
- ConioDeleteConsole: Do decrement the active screen buffer's refcount, but only after calling ConioCleanupConsole to destroy the window.
- Remove Win32CsrInsertObject. This function did two unrelated things (initialize lock and create handle), but in the only place it was used (CsrCreateScreenBuffer) the lock had already been initialized in CsrInitConsoleScreenBuffer, so this use was erroneous.
- Rename Win32CsrInsertObject2 (creates handle only) to Win32CsrInsertObject.

svn path=/trunk/; revision=34559
2008-07-16 23:16:40 +00:00
Colin Finck f776a00eeb Commit my test suite I used for verifying the behaviours of wctomb, wcstombs and WideCharToMultiByte and writing the reimplementations for ReactOS on request of Stefan
svn path=/trunk/; revision=34558
2008-07-16 22:08:58 +00:00
Colin Finck 248d39652c - Remove 2 wrong versions of wctomb and 2 wrong versions of wcstombs
- Implement new versions of wctomb and wcstombs, which consider the language set by setlocale() and work according to all behaviours I could find when testing under WinXP SP2.
  This was tested with an own test suite (which I can commit as well if anyone is interested)
- Do a real conversion to MultiByte characters using wctomb in fputwc and vfwprintf. (verified under WinXP SP2)
- Set 'MSVCRT___lc_codepage' and 'MSVCRT___lc_collate_cp' to 1252 by default ("C" locale) and not the current active codepage (which might not work with i.e. Eastern codepages)
- Add a new check for 'MultiByteCount < 0' to WideCharToMultiByte (also verified under WinXP SP2)
- Change MB_LEN_MAX back to 2, the value 5 only applies to newer CRT's (msvcrt only handles single-byte and double-byte characters)
- Don't compile the Wine-imported 'wcscpy_s', it isn't available in msvcrt

svn path=/trunk/; revision=34557
2008-07-16 21:40:09 +00:00
Matthias Kupfer d37dc48ec3 add new Slovak keyboard layout to first stage setup list
svn path=/trunk/; revision=34556
2008-07-16 21:21:21 +00:00
Timo Kreuzer ea50e3e05c FLOATOBJ is a structure only on x86 in kernelmode, for usermode drivers and other architectures it's a FLOAT. Update winddi.h accordingly.
svn path=/trunk/; revision=34555
2008-07-16 21:12:27 +00:00
Timo Kreuzer a5e5e742fd Patch by Stefan Ginsberg:
- remove XFORM members from DC structure and use MATRIX instead. Use MatrixS2XForm and XForm2MatrixS for intermediate conversion.
- this is a temporary solution (still using fpu) until I'm finished with FLOATOBJ rewrite + XFOROMOBJ api (soon)

svn path=/trunk/; revision=34554
2008-07-16 20:16:30 +00:00
Timo Kreuzer a8f3f89717 DC_AllocDc:
- Set DC's iGraphicsMode to GM_COMPATIBLE when creating a DC
NtGdiRectangle:
- only exclude bottom/right pixels if dc is GM_COMPATIBLE
- fix indentation

svn path=/trunk/; revision=34553
2008-07-16 19:48:19 +00:00
Timo Kreuzer 4a5e93fab1 Add MATRIX accelerator flag MX_SCALE and set it in XForm2MatrixS, when off-diagonal elements are zero.
svn path=/trunk/; revision=34552
2008-07-16 18:57:23 +00:00
James Tabor 816777c79a - Fix CurrentWnd when it has a NULL, see Bug 3527.
svn path=/trunk/; revision=34550
2008-07-16 16:12:44 +00:00
Aleksey Bragin 2557cd7a1e Dmitry Gorbachev
- Fix a problem in VgaIsPresent: Content of the Address Register goes to the Data Register, and vice versa. It also writes content of the Map Select Register (which is number 4) into the Bit Mask Register (number 8).
See issue #2125 for more details.

svn path=/trunk/; revision=34549
2008-07-16 16:02:32 +00:00
Colin Finck 4cacee7617 Fix build, broken in r34546
Reminder: Never apply patches twice (and test the latest changes before committing) :-)

svn path=/trunk/; revision=34547
2008-07-16 14:33:47 +00:00
Matthias Kupfer 4ea00fafbc Mario Kacmar <kario AT szm DOT sk>
- Slovak keyboard layout (QWERTY) added.
- See #3528 for more details.

svn path=/trunk/; revision=34546
2008-07-16 13:41:23 +00:00
Ged Murphy 5744130b55 - Implement freeaddrinfo and getaddrinfo.
- Implement bare boned getprotobyname and getprotobynumber.
- Make winsock functions return proper error codes instead of success (will help to identify any probs with network apps)
- patch by Yuri Sidorov <jura at cp-lab dot com>

For future reference, freeaddrinfo and getaddrinfo should really call GetAddrInfoW and FreeAddrInfoW which should do the work, but our umode network layers are a mess anyway and by no means XP compatible
See issue #3523 for more details.

svn path=/trunk/; revision=34545
2008-07-16 12:49:15 +00:00
James Tabor 1ef680846a Fix build.
svn path=/trunk/; revision=34542
2008-07-16 02:07:55 +00:00
James Tabor 900b6e2e6a Sorry for commit my test tree,,,, good for testing Bug 2451.
svn path=/trunk/; revision=34541
2008-07-16 02:06:05 +00:00
James Tabor 702a9bb706 make does like tabs, right? Fix build.
svn path=/trunk/; revision=34540
2008-07-16 01:22:26 +00:00
Jeffrey Morlan 44e8888c47 Increment a console's initial screen buffer's reference count *after* calling CsrInitConsoleScreenBuffer (which sets the reference count to 0). Fixes bug 3524.
svn path=/trunk/; revision=34539
2008-07-16 00:24:54 +00:00
Matthias Kupfer 0f5230d382 Mario Kacmar <kario AT szm DOT sk>
- Slovak translation of several inf-files
- See #3518 for more details.

svn path=/trunk/; revision=34537
2008-07-15 22:29:42 +00:00
Colin Finck a9fabb5fd5 Revert r34533 (except the nice indentation in the Makefile) for unbreaking trunk.
This change is also not compatible with current cleaning scripts in RosBE and on the Buildslaves (which only delete "makefile.auto"), leading to possibly unclean builds if the generated makefile wouldn't be deleted.
The ultimate goal would be putting the generated makefiles into the intermediate directories, so we also save one cleaning step.

svn path=/trunk/; revision=34536
2008-07-15 22:04:16 +00:00
Pierre Schweitzer 7d8bcb4fd9 Fixed typos spotted by "jeanmichel" <jeanmichel.123@free.fr>
See issue #618 for more details.

svn path=/trunk/; revision=34535
2008-07-15 21:05:20 +00:00
Hervé Poussineau d1a689916c Rename makefile.auto to makefile-$(ARCH).auto
svn path=/trunk/; revision=34533
2008-07-15 20:42:08 +00:00
Ged Murphy 01824511d8 - Delete the service key along with any subkeys
- Delete the service from the internal list
- patch by Yuri Sidorov <jura at cp-lab dot com>

See issue #3523 for more details.

svn path=/trunk/; revision=34532
2008-07-15 20:41:35 +00:00
Colin Finck 2916a0bda2 Fix the mess created by SVN's inability to handle with UTF-16 files.
Remove the svn:eol-style property and set svn:mime-type to application/octet-stream, so that these files aren't modified by SVN.

svn path=/trunk/; revision=34531
2008-07-15 20:11:26 +00:00
Matthias Kupfer 10ca3b514c - Revert inf back to LF, because of damaged line endings on checkout with CRLF (under linux).
- Take care on further change, change only if you are absolutely sure, that all clients can handle it correctly!

svn path=/trunk/; revision=34530
2008-07-15 19:43:28 +00:00
Colin Finck 0c37df4fff Set svn:eol-style CRLF for all *.inf files.
These are copied without any further processing, so they should always have a CRLF line-ending.

svn path=/trunk/; revision=34529
2008-07-15 17:54:28 +00:00
Aleksey Bragin a7d600b8b8 - Save pointer to driver's section in DriverSection during driver loading.
- Fix unloading function to check if a driver to be unloaded really has DriverSection set, and if not, fail.
- Inspired by bug 3221.
See issue #3221 for more details.

svn path=/trunk/; revision=34526
2008-07-15 14:24:47 +00:00
Aleksey Bragin 81c0fbc19f Yuriy Sidorov <jura@cp-lab.com>
- Fix BSOD in NtUserWaitForInputIdle because KeWaitForMultipleObjects expects actual pointers to objects, not handles.
- Fix failure branches to have UserLeave and/or object dereference where needed.
See issue #3522 for more details.

svn path=/trunk/; revision=34525
2008-07-15 14:00:37 +00:00
Aleksey Bragin fa443b5f5b Dmitry Gorbachev
- Include greek translation into shutdown's rsrc.rc.
See issue #3487 for more details.

svn path=/trunk/; revision=34523
2008-07-15 13:48:43 +00:00
Aleksey Bragin 69bc3c08df Dmitry Gorbachev
- Don't leak critical region when going through failure return branch.
See issue #3517 for more details.

svn path=/trunk/; revision=34522
2008-07-15 13:44:14 +00:00
Aleksey Bragin 39f888f2b3 Yuriy Sidorov <jura@cp-lab.com>
- Speed-up user mode exception handling by calling RtlDispatchException() first if there is no active user mode debugger. This avoids switches to kernel mode if exception can be handled by SEH.
See issue #3485 for more details.

svn path=/trunk/; revision=34521
2008-07-15 13:32:18 +00:00
Aleksey Bragin f8f3b78fce Stefan Ginsberg <stefan__100__@hotmail.com>
- Remove a hack in the executive handle implementation, which worked around a memory corruption bug. Revision 32770 should have fixed the bug hidden by this hack.
See issue #3512 for more details.

svn path=/trunk/; revision=34520
2008-07-15 13:20:38 +00:00
Matthias Kupfer 439d1715c8 Maciej Bialas <bjauy AT tlen DOT pl>
- Updated polish version of dll/cpl/usrmgr
- See issue #3480 for more details.

svn path=/trunk/; revision=34516
2008-07-15 08:21:27 +00:00
Matthias Kupfer c4c2d12ac8 Mario Kacmar <kario AT szm DOT sk>
- Slovak translation of several inf-files
- See #3518 for more details.

svn path=/trunk/; revision=34515
2008-07-15 08:10:44 +00:00
Timo Kreuzer 1c8355690a IntRectangle:
- use coordinate transformation
- if transform is not diagonal, call IntGdiPolygon
IntRectangle/IntGdiPolygon:
- use special locking order to avoid lockups
- don't unlock objects that weren't locked
IntGdiPie:
- if transform is cheese, call IntGdiCheeseCake

svn path=/trunk/; revision=34514
2008-07-15 02:06:38 +00:00