Commit graph

45036 commits

Author SHA1 Message Date
James Tabor b294b7d774 [GDI32]
- Patch by Thomas Faber: GetTextExtentPoint32 must not assume null termination of lpString.

svn path=/trunk/; revision=51147
2011-03-26 02:10:04 +00:00
Timo Kreuzer 6af9026458 [USER32]
Improve formatting

svn path=/trunk/; revision=51146
2011-03-26 01:20:11 +00:00
James Tabor 6e23217097 [Csrss|Win32k]
- Enable the desktop class and set the ReactOS variant of csrss back to local desktop class. Now all class tests pass, see bug 4778.

svn path=/trunk/; revision=51145
2011-03-26 00:43:56 +00:00
Rafal Harabien 61b6e9119f [WIN32K]
wcsncpy -> RtlStringCbCopyW (part 4/x)
Avoid unneeded allocation

svn path=/trunk/; revision=51144
2011-03-25 23:09:06 +00:00
Rafal Harabien 03a8c91d75 [WIN32K]
wcsncpy -> safe api (part 3/x)

svn path=/trunk/; revision=51143
2011-03-25 22:57:46 +00:00
Rafal Harabien 00cfa29229 [WIN32K]
Fix GDITAG_LDE/TAG_LDE mess

svn path=/trunk/; revision=51142
2011-03-25 22:49:30 +00:00
Rafal Harabien eeaccfdfe1 [WIN32K]
Forgotten in r51139...

svn path=/trunk/; revision=51141
2011-03-25 22:45:59 +00:00
Rafal Harabien 04d67b9ebd [WIN32K]
Change wcsncpy to safe functions (part 2/x)

svn path=/trunk/; revision=51140
2011-03-25 22:36:37 +00:00
Rafal Harabien 0b986764d4 [WIN32K]
Make sure strings returned by internal function RegQueryValue are NULL terminated

svn path=/trunk/; revision=51139
2011-03-25 22:34:53 +00:00
Rafal Harabien 547a7d215f [NTOSKRNL]
Change strncpy calls to RtlStringSbCopyA (PART 1/x)
Fix bug in MmLoadSystemImage which caused FileName parameter to be freed

svn path=/trunk/; revision=51138
2011-03-25 22:28:15 +00:00
Rafal Harabien 54dc46543f [USER32]
Fix bug causing no NULL termination of strings after conversion in EnumDisplayDevicesA. Fixes one usr32:monitor winetest

svn path=/trunk/; revision=51137
2011-03-25 21:58:39 +00:00
Rafal Harabien c14b8afbdc Forgotten in r51135...
svn path=/trunk/; revision=51136
2011-03-25 21:49:03 +00:00
Rafal Harabien e0191e8920 [PSDK]
Import strsafe.h from mingw-w64. It's more complete compared to our headers

[DDK]
Import ntstrsafe.h from mingw-w64 (converted from strsafe.h). It's more complete compared to our headers

[NTOSKRNL]
Use sizeof instead of magic numbers

Let's use strsafe functions now instead of strncpy/wcsncpy, which doesn't always NULL terminate :)

svn path=/trunk/; revision=51135
2011-03-25 21:42:48 +00:00
Gabriel Ilardi 855227336f [SHELL32]
Italian & Spanish fixes + RunFileDlg translations

svn path=/trunk/; revision=51133
2011-03-24 08:34:49 +00:00
Amine Khaldi 70a12312e3 [BUILD]
- Remove redundant -fms-extensions as we set it globally already.

svn path=/trunk/; revision=51132
2011-03-23 23:17:45 +00:00
Rafal Harabien 58789369ad Revert previous commit
Sorry... I'll test first next time.

svn path=/trunk/; revision=51131
2011-03-23 20:48:20 +00:00
Rafal Harabien a3c683546c [DDK]
Add most of RtlString***W functions based on ANSI versions.

svn path=/trunk/; revision=51130
2011-03-23 20:36:25 +00:00
Rafal Harabien 4732a3af3d [WIN32K]
Remove a useless if in cliprgn.c
Patch by Thomas Faber <thfabba at gmx dot de>
See issue #6015 for more details.

svn path=/trunk/; revision=51129
2011-03-23 17:11:40 +00:00
Rafal Harabien cd1a61c18f [USER32]
Gray close button if SC_CLOSE is disabled is sysmenu or class has CS_NOCLOSE flag
See issue #5272 for more details.

svn path=/trunk/; revision=51128
2011-03-23 16:51:26 +00:00
Rafal Harabien fcd25281d9 [SHELL32]
Sync RunFileDlg to wine. It was crashing for one char input.
Add "All files (*.*)" filter to RunDlg and OpenWith dialogs. 
Improved polish translation.
Translators: please localize rest...

svn path=/trunk/; revision=51127
2011-03-23 16:22:38 +00:00
Rafal Harabien cd22887a97 [NTOSKRNL]
Revert r51108. ProbeForRead doesn't check if memory is readable.
Improve comments and replace trick raising exception with call to ExRaiseAccessViolation.

[WIN32K]
Remove ASSERTs in IntSetSysColors: this function is only called in NtUserSetSysColors in SEH block. It shouldn't crash for NULL pointers.

svn path=/trunk/; revision=51126
2011-03-23 15:49:44 +00:00
Rafal Harabien 2165af8818 [WIN32K]
Check for failed allocations when creating window
See issue #6021 for more details.

svn path=/trunk/; revision=51125
2011-03-23 15:33:13 +00:00
Gabriel Ilardi aeddc6ac0c Jeisson Toscano: Some Spanish translation updates plus some corrections added by elhoir and me. Bugs: 5891, 5892 and 5897.
See issue #5891 for more details.

svn path=/trunk/; revision=51124
2011-03-23 14:39:39 +00:00
Aleksey Bragin 17d6f165a7 [NTDLL/LDR]
- Fix a few bugs (wrong variable usage, wrong variable initialization) which led to incorrect snapping of import address table.
- Wrap LdrpSnapThunk() invocations into SEH.

svn path=/trunk/; revision=51123
2011-03-23 12:25:53 +00:00
Gabriel Ilardi 906bcad66a Paolo Devoti: Some Italian fixes.
See issue #5847 for more details.

svn path=/trunk/; revision=51122
2011-03-23 11:56:35 +00:00
Gabriel Ilardi d312252d26 [NTOS/INBV]
- Update boot screen copyright year.

svn path=/trunk/; revision=51121
2011-03-23 11:44:35 +00:00
Aleksey Bragin cc6c8e90e2 [NTOS/KE]
- Remove VirtualBox SYSENTER-hack added in r50991.
- Bring back NT-compatible SYSENTER support detection changed in r50991.

svn path=/trunk/; revision=51120
2011-03-22 16:35:51 +00:00
Aleksey Bragin 4fb00286d5 [RTL/HEAP]
- Thomas Faber: Use macro instead of manually removing item from the list.
See issue #6016 for more details.

svn path=/trunk/; revision=51119
2011-03-22 16:27:41 +00:00
Aleksey Bragin 64e9e4c196 [NTDLL]
- Implement LdrpInitializeProcess(). Currently unused.
- Add a whole bunch of supportive PE related code. Used only by the new code, which is not enabled yet in trunk.
- Implement LdrpCheckForLoadedDll().
- Move on to usage of various global vars defined in the new code, rename some of them to match.
- Almost no changes for the codepath in trunk.

svn path=/trunk/; revision=51117
2011-03-22 12:41:52 +00:00
Giannis Adamopoulos 4a05e4ef29 [win32k]
- Simplify BuildWindowStationNameList a bit

svn path=/trunk/; revision=51116
2011-03-22 09:59:36 +00:00
Giannis Adamopoulos 8cf95d1319 [ntoskrnl]
- Implement calling OkayToCloseProcedure callouts to win32k for desktop and window station objects
- Fix a bug that caused ObpCloseHandle to return success even when OkayToCloseProcedure failed

[win32k]
- Rewrite SetProcessWindowStation to actually set the current window station and close the previous one
- Implement OkayToCloseProcedure callouts from the kernel to prevent closing the current desktop or window station

svn path=/trunk/; revision=51115
2011-03-22 09:19:26 +00:00
Pierre Schweitzer eb3ddf59b3 [NTDLL]
Fixed build

svn path=/trunk/; revision=51114
2011-03-22 06:53:56 +00:00
Aleksey Bragin 1df2f8464a [NTDLL/LDR]
- Implement misc utility functions needed for monstrous LdrpInitializeProcess(). Currently unused.

svn path=/trunk/; revision=51113
2011-03-21 22:58:47 +00:00
Rafal Harabien 46afc9aa8c Fix for r51111. Fixes build...
svn path=/trunk/; revision=51112
2011-03-21 18:30:17 +00:00
Rafal Harabien 08632f7128 [GDI32]
GetTextExtentExPointW doesn't fail if nMaxExtent is negative (only ANSI version does)
Fixes gdi32:GetTextExtentExPoint apitest

svn path=/trunk/; revision=51111
2011-03-21 17:58:08 +00:00
Rafal Harabien f561f03d31 Fix gdi32:SetSysColors apitest
svn path=/trunk/; revision=51110
2011-03-21 14:52:08 +00:00
Rafal Harabien 347b8aee6f Make sure rectangle is not inverted in Rectangle function
Fixes gdi32:Rectangle apitest

svn path=/trunk/; revision=51109
2011-03-21 14:47:06 +00:00
Rafal Harabien ec3c8d2441 Fix ProbeForRead. It wasn't ever checking if memory can be accessed. Thanks to big-endian it wasn't breaking MmUserProbeAddress as well. Code is now nearly the same as in ProbeForWrite. It shouldn't break anything. If it does, it's not bug in this code. :)
svn path=/trunk/; revision=51108
2011-03-21 14:43:56 +00:00
Rafal Harabien 96de2d1363 Improve GetClipRgn and SetSysColors apitests
svn path=/trunk/; revision=51107
2011-03-21 14:36:32 +00:00
Rafal Harabien 6a7c60945f Set last error to ERROR_INVALID_PARAMETER in NtGdiGetRandomRgn if invalid hdc is given
Fixes gdi32:GetClipRgn apitest

svn path=/trunk/; revision=51106
2011-03-21 14:32:46 +00:00
Rafal Harabien 32b6884390 Don't assume WM_DESTROY is last message - listview sends notification after it. Confirmed in Windows 7.
See issue #6026 for more details.

svn path=/trunk/; revision=51105
2011-03-21 14:21:16 +00:00
Rafal Harabien 8fb7057c46 Set last error to ERROR_PROC_NOT_FOUND in case of NULL module in GetProcAddress
Check for error when freeing datafile
Fixes 2 winetests

svn path=/trunk/; revision=51104
2011-03-21 14:16:01 +00:00
Rafal Harabien 073c778dcb Don't destroy ImageList used by ListView if control was created without LVS_SHAREIMAGELISTS flag
Fixes crashes when closing RegEdit, RApps and hardware tab in mouse settings.

svn path=/trunk/; revision=51103
2011-03-21 14:07:29 +00:00
James Tabor 01ecf02e26 [Win32k]
- Setup RectInRegion for internal use.

svn path=/trunk/; revision=51102
2011-03-21 02:20:24 +00:00
Giannis Adamopoulos 508ce4d9f8 [win32k]
- Fix disconnecting from a desktop when IntSetThreadDesktop gets NULL parameter

svn path=/trunk/; revision=51101
2011-03-20 14:28:12 +00:00
James Tabor 5177b0a967 [User32_ApiTests]
- Patch by Thomas Faber: Tests for new DeferWindowPos implementation. See bug 6025.

svn path=/trunk/; revision=51100
2011-03-20 12:59:07 +00:00
James Tabor 66f5809036 - Fix a miss var for testing.
svn path=/trunk/; revision=51099
2011-03-20 11:29:51 +00:00
Olaf Siejka 099a888ea2 [CACLS]
- Danish translation by Wilhelm Wiens

[RAPPS]
- Polish translations of SumatraPDF entry by Adam Stachowicz

[SETUP]
- Polish translation of 'VBR only' in the reactos.exe

svn path=/trunk/; revision=51098
2011-03-20 11:25:34 +00:00
Pierre Schweitzer 75629abccd [MSI]
Fix build according to Christoph recommandations

svn path=/trunk/; revision=51097
2011-03-20 10:10:52 +00:00
Christoph von Wittich 7dfa68869c [msi]
-partial sync to wine 1.3.16

svn path=/trunk/; revision=51096
2011-03-20 08:47:41 +00:00