Commit graph

45014 commits

Author SHA1 Message Date
Aleksey Bragin fb0b4f31c4 [NTOS/MM]
- Remove IMG_SCN_TYPE_NOLOAD support which was firstly removed by Alex, then reenabled by Herve. Hopefully it works this time.
- Return proper image size after successfully mapping an image section (previously, 0 was always returned). The change above is necessary for returning correct size.

svn path=/trunk/; revision=51192
2011-03-29 10:56:28 +00:00
Timo Kreuzer d7e597d60e [WIN32K]
- Move IntGdiSetBrushOwner to brush.c
- Move IntGdiSetDCOwnerEx to dclife.c
- Move IntGdiSetRegionOwner to region.c

svn path=/trunk/; revision=51191
2011-03-29 10:25:10 +00:00
Timo Kreuzer e78589d99a [WIN32K]
Disable system service hooks, that got accidentally enabled.


svn path=/trunk/; revision=51190
2011-03-29 10:07:11 +00:00
Timo Kreuzer 854e23cc3e [WIN32K]
Make GdiTableSection a static variable and use it only from gdiobj.c

svn path=/trunk/; revision=51189
2011-03-29 10:02:38 +00:00
Timo Kreuzer 216026918d [WIN32K]
Fix parameter check and buffer probing in NtUserSetSysColors

svn path=/trunk/; revision=51188
2011-03-29 09:52:39 +00:00
James Tabor 0bf0c70444 [User32|Win32k]
- Properly implement RealGetWindowClass, fixes the ApiTest. Keeping the Ansi support for now, will use it as a reference.

svn path=/trunk/; revision=51187
2011-03-29 05:53:34 +00:00
James Tabor 827e75cb89 [User32]
- Fix select old brush in FillRect.

svn path=/trunk/; revision=51186
2011-03-29 05:11:02 +00:00
James Tabor 9e22fe5962 [Win32k]
- Finish object attribute support part 2.
- Removed DC from the list, ReactOS handles this in a different way. Comment out Brush and Pen switches until proper handling is implemented.

svn path=/trunk/; revision=51185
2011-03-29 02:57:48 +00:00
Rafal Harabien c5dad4998c [USER32]
Fix a bug causing "Attempted to lock object, wrong reuse counter" messages when CMD was started in LiveCD. Once got desktop HDC was used in different threads. When thread, which created handle terminated, DC handle was removed and next calls to CreateIcon* API was using invalid hDC.

svn path=/trunk/; revision=51184
2011-03-28 20:52:27 +00:00
James Tabor 4ef3dbc225 [GDI32|User32|Win32k]
- Fix ScrollDC ApiTest.

svn path=/trunk/; revision=51179
2011-03-28 00:17:21 +00:00
Rafal Harabien f21acd6f09 [USER32]
Don't fail if FillRect is called without brush. Fixes user32:uitools winetest

svn path=/trunk/; revision=51178
2011-03-27 23:19:56 +00:00
Rafal Harabien 54cac2ef9e [PING]
Fix crash if option, which needs number is on the end of command line
Get rid of GetULONG and GetULONG2 functions. MS doesn't check input so precisely
Command line options can be preceded by "/"

See issue #6047 for more details.

svn path=/trunk/; revision=51177
2011-03-27 22:47:59 +00:00
Rafal Harabien 8174c5cfde [SYSSETUP]
Set HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate to install date.
Patch by Edijs Kolesnikovics <terminedijs at yahoo dot com> slightly modified by me
See issue #6044 for more details.

svn path=/trunk/; revision=51176
2011-03-27 21:51:41 +00:00
Daniel Reimer 91eff339fd Update the Applications to the recent Versions.
Add the dlls the C,VB etc Runtime Packs will install into the description.
Remove goOO from rapps.

svn path=/trunk/; revision=51175
2011-03-27 18:34:22 +00:00
Aleksey Bragin 29b96f834c - Lay out critical system DLLs so that they don't overlap when loaded properly.
svn path=/trunk/; revision=51173
2011-03-27 16:37:26 +00:00
Eric Kohl 4288ba6306 [SERVICES]
ScmWriteDependencies:
- Fixed an off-by-one bug. This bug caused a wrong calculation of the 'DependOnGroup' value data length. Group dependencies were not written properly to the registry.

- Write 'DependOnService' and 'DependOnService' values to the registry only if the dependency strings are not empty. Delete a value if the corresponding dependency string is empty.

This fixes another winetest.

svn path=/trunk/; revision=51172
2011-03-27 13:12:12 +00:00
Aleksey Bragin 828d04705a [NTOS/MM]
- Return STATUS_IMAGE_NOT_AT_BASE when mapping an image section to a different base address. New ntdll loader depends on this and fails to relocate the image if this status is not returned.

svn path=/trunk/; revision=51171
2011-03-27 11:32:55 +00:00
James Tabor 34bb476056 [GDI32]
- Finish object attribute support.

svn path=/trunk/; revision=51170
2011-03-27 05:40:30 +00:00
Rafal Harabien 8900f7d5d4 [WIN32K]
Rename IntResetMonitorSize to IntUpdateMonitorSize
Use IntUpdateMonitorSize instead of setting monitor size manually when attaching monitor
Change display device name from VIDEOx to DISPLAYx as it is in Windows (fixes user32:monitor winetest)

[USER32]
Return FALSE in EnumDisplayMonitors if EnumProc returned FALSE (fixes user32:monitor winetest)

svn path=/trunk/; revision=51169
2011-03-27 01:12:25 +00:00
Olaf Siejka 47d38c2989 [RAPPS]
- Add DoubleCommander to app list. Russian and Ukrainian translation by Igorko, Polish translation by me.

[CMD]
- Fix Russian translation of cmd. Patch by seven_ro. See bugreport no.#6043

svn path=/trunk/; revision=51168
2011-03-26 23:53:49 +00:00
Olaf Siejka 7dfe6edff5 [NTDLL]
- Fix "entry point not found" harderror parameters. Patch by Thomas Faber
See issue #5983 for more details.

svn path=/trunk/; revision=51167
2011-03-26 23:36:56 +00:00
Rafal Harabien 164140d904 Fix duplicated startup version string
Patch by Thomas Faber <thfabba at gmx dot de>
See issue #6015 for more details.

svn path=/trunk/; revision=51165
2011-03-26 21:41:49 +00:00
Eric Kohl ac4083c6d7 Disable some misleading service tests because a test cannot determine wheter or not the number of active or inactive services is correct.
svn path=/trunk/; revision=51164
2011-03-26 20:07:09 +00:00
Rafal Harabien 299f6a7826 [VIDEOPRT]
Add missing check
Don't assume UNICODE_STRING is NULL-terminated

svn path=/trunk/; revision=51163
2011-03-26 17:49:55 +00:00
Rafal Harabien 291012914d [GDI32]
Fix gdi32:CreatePen apitest

svn path=/trunk/; revision=51161
2011-03-26 15:24:05 +00:00
Rafal Harabien 68af0e9cd1 [GDI32_APITEST]
Improve CreatePen and GetCurrentObject tests

svn path=/trunk/; revision=51160
2011-03-26 15:23:10 +00:00
Rafal Harabien 7e914b6e08 [NDIS]
Correct Length value in case string is truncated

svn path=/trunk/; revision=51159
2011-03-26 15:12:23 +00:00
James Tabor 00a64f39cb [User32]
- Cleanup edit and add back missing break in combo.

svn path=/trunk/; revision=51148
2011-03-26 05:31:59 +00:00
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