reactos.git
11 years ago- Go away STDCALL, time has come for WINAPI and NTAPI
Stefan Ginsberg [Sun, 30 Nov 2008 11:42:05 +0000 (11:42 +0000)]
- Go away STDCALL, time has come for WINAPI and NTAPI

svn path=/trunk/; revision=37763

11 years ago- Kill off more STDCALL
Stefan Ginsberg [Sun, 30 Nov 2008 11:16:55 +0000 (11:16 +0000)]
- Kill off more STDCALL

svn path=/trunk/; revision=37762

11 years ago- No need to include winddk.h, ntddk.h includes it for us
Stefan Ginsberg [Sun, 30 Nov 2008 10:10:19 +0000 (10:10 +0000)]
- No need to include winddk.h, ntddk.h includes it for us

svn path=/trunk/; revision=37761

11 years agofix a bug reported by aicom: get peer name fails running xitami web server
Art Yerkes [Sun, 30 Nov 2008 08:26:52 +0000 (08:26 +0000)]
fix a bug reported by aicom: get peer name fails running xitami web server

svn path=/trunk/; revision=37759

11 years agoLeft out of the previous commit by mistake
KJK::Hyperion [Sun, 30 Nov 2008 06:00:58 +0000 (06:00 +0000)]
Left out of the previous commit by mistake

svn path=/trunk/; revision=37758

11 years agomodified base/shell/explorer/explorer.rbuild
KJK::Hyperion [Sun, 30 Nov 2008 05:49:18 +0000 (05:49 +0000)]
modified   base/shell/explorer/explorer.rbuild
   The TDM build of gcc 4.3.2 is affected by PR 27067 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27067), apparently due to a missing MinGW-only patch - work around it in the linker

modified   dll/directx/ddraw/d3d/DirectD3D_main.c
modified   dll/directx/ddraw/Ddraw/ddraw_displaymode.c
modified   dll/directx/ddraw/Ddraw/ddraw_main.c
modified   dll/directx/ddraw/Ddraw/ddraw_setcooperativelevel.c
modified   dll/directx/ddraw/Ddraw/GetCaps.c
modified   dll/directx/ddraw/Ddraw/GetDeviceIdentifier.c
modified   dll/directx/ddraw/main.c
modified   dll/directx/ddraw/Surface/createsurface.c
   <pseh/pseh.h> already included in rosdraw.h

modified   dll/win32/advapi32/misc/trace.c
   Silence a warning reported by gcc 4.3.2 (possibly incorrectly, but it's just a stub anyway)

modified   ntoskrnl/include/internal/ntoskrnl.h
added      ntoskrnl/include/internal/probe.h
replaced   ntoskrnl/include/ntoskrnl.h
added      ntoskrnl/include/precomp.h
modified   ntoskrnl/ntoskrnl-generic.rbuild
added      subsystems/win32/win32k/pch.h
replaced   subsystems/win32/win32k/w32k.h
modified   subsystems/win32/win32k/win32k.rbuild
   gcc 4.3.2-tdm-1 doesn't like PSEH in precompiled headers. Shuffle things around a bit to remove PSEH from precompiled headers

svn path=/trunk/; revision=37757

11 years ago- Relying on includers to define certain macros is an awesome idea -- sustain this...
Stefan Ginsberg [Sat, 29 Nov 2008 23:34:39 +0000 (23:34 +0000)]
- Relying on includers to define certain macros is an awesome idea -- sustain this practice for a little while

svn path=/trunk/; revision=37756

11 years ago- Deprecate STDCALL from HAL
Stefan Ginsberg [Sat, 29 Nov 2008 23:16:39 +0000 (23:16 +0000)]
- Deprecate STDCALL from HAL

svn path=/trunk/; revision=37755

11 years ago- Don't use DDKAPI either
Stefan Ginsberg [Sat, 29 Nov 2008 23:15:54 +0000 (23:15 +0000)]
- Don't use DDKAPI either

svn path=/trunk/; revision=37754

11 years agoadd missing parenthesis in utf16le
Sylvain Petreolle [Sat, 29 Nov 2008 23:11:14 +0000 (23:11 +0000)]
add missing parenthesis in utf16le

svn path=/trunk/; revision=37753

11 years ago- Less STDCALL, more WINAPI/NTAPI/APIENTRY
Stefan Ginsberg [Sat, 29 Nov 2008 22:48:58 +0000 (22:48 +0000)]
- Less STDCALL, more WINAPI/NTAPI/APIENTRY

svn path=/trunk/; revision=37752

11 years ago- STDCALL strikes back
Stefan Ginsberg [Sat, 29 Nov 2008 21:42:41 +0000 (21:42 +0000)]
- STDCALL strikes back

svn path=/trunk/; revision=37751

11 years ago- Hey STDCALL, you just got deprecated from rostests
Stefan Ginsberg [Sat, 29 Nov 2008 21:37:54 +0000 (21:37 +0000)]
- Hey STDCALL, you just got deprecated from rostests

svn path=/trunk/; revision=37750

11 years ago- Welcome to rosapps NTAPI/WINAPI, farewell STDCALL
Stefan Ginsberg [Sat, 29 Nov 2008 21:23:45 +0000 (21:23 +0000)]
- Welcome to rosapps NTAPI/WINAPI, farewell STDCALL

svn path=/trunk/; revision=37749

11 years ago- <@silverblade> it does nothing, it can be destroyed. -- Goodbye avtest, no one...
Stefan Ginsberg [Sat, 29 Nov 2008 21:19:34 +0000 (21:19 +0000)]
- <@silverblade> it does nothing, it can be destroyed. -- Goodbye avtest, no one will miss you

svn path=/trunk/; revision=37748

11 years ago- Don't generate a function with non-standard STDCALL -- WINAPI works great, I promise.
Stefan Ginsberg [Sat, 29 Nov 2008 21:01:42 +0000 (21:01 +0000)]
- Don't generate a function with non-standard STDCALL -- WINAPI works great, I promise.

svn path=/trunk/; revision=37747

11 years ago- Improve parameter checks to prevent access beyond array boundaries
Gregor Schneider [Sat, 29 Nov 2008 21:01:14 +0000 (21:01 +0000)]
- Improve parameter checks to prevent access beyond array boundaries
- Patch by Daniel Zimmermann, <netzimme AT aim DOT com>
- Bug #3913, CIDs 595-598

svn path=/trunk/; revision=37746

11 years ago- STDCALL -> NTAPI
Stefan Ginsberg [Sat, 29 Nov 2008 20:47:48 +0000 (20:47 +0000)]
- STDCALL -> NTAPI

svn path=/trunk/; revision=37745

11 years ago- Fix two possible memory leaks by freeing resources
Gregor Schneider [Sat, 29 Nov 2008 20:30:18 +0000 (20:30 +0000)]
- Fix two possible memory leaks by freeing resources
- Patch by Daniel Zimmermann, <netzimme AT aim DOT com>
- Bug #3911, CIDs 607 and 608

svn path=/trunk/; revision=37744

11 years ago- Remove system_header
Stefan Ginsberg [Sat, 29 Nov 2008 20:17:45 +0000 (20:17 +0000)]
- Remove system_header

svn path=/trunk/; revision=37743

11 years ago- STDCALL -> NTAPI
Stefan Ginsberg [Sat, 29 Nov 2008 20:14:45 +0000 (20:14 +0000)]
- STDCALL -> NTAPI

svn path=/trunk/; revision=37742

11 years ago- Updated msvcrt winetests introduced new printf testcases and new failures - fixed:
Gregor Schneider [Sat, 29 Nov 2008 19:39:53 +0000 (19:39 +0000)]
- Updated msvcrt winetests introduced new printf testcases and new failures - fixed:
- Special qualifiers with short gG formats may even skip all decimal digits, but the separator is applied nonetheless
- Padding spaces on the right caused problems in exponential format, because those are split into two parts, the padding was done in between
- Failing fwprintf test was removed from the tests, so the printf test is passed completely now

svn path=/trunk/; revision=37740

11 years ago- Kill off ramdrv, it is deprecated since a long time ago.
Stefan Ginsberg [Sat, 29 Nov 2008 19:35:04 +0000 (19:35 +0000)]
- Kill off ramdrv, it is deprecated since a long time ago.
See issue #3422 for more details.

svn path=/trunk/; revision=37739

11 years agoUpdate msvcrt winetest, test_codepage still disabled as before
Gregor Schneider [Sat, 29 Nov 2008 19:18:59 +0000 (19:18 +0000)]
Update msvcrt winetest, test_codepage still disabled as before

svn path=/trunk/; revision=37736

11 years ago- Added support for floating point and exponential formats to *printf functions
Gregor Schneider [Sat, 29 Nov 2008 17:07:09 +0000 (17:07 +0000)]
- Added support for floating point and exponential formats  to *printf functions
- Based on the tools/ssprintf.cpp implementation, ported to C with changes made to comply with msvcrt behaviour
- Reduces msvcrt winetest printf failure from 13 down to 1 - same failure as WinXP
- Related bugs: bug #1533, bug #3727, bug #3878

svn path=/trunk/; revision=37734

11 years ago- Implement ScsiPortCompleteRequest based on OSR description.
Aleksey Bragin [Sat, 29 Nov 2008 16:24:29 +0000 (16:24 +0000)]
- Implement ScsiPortCompleteRequest based on OSR description.
See issue #3025 for more details.

svn path=/trunk/; revision=37732

11 years ago- Fix build
Dmitry Chapyshev [Sat, 29 Nov 2008 12:57:50 +0000 (12:57 +0000)]
- Fix build

svn path=/trunk/; revision=37726

11 years ago- DPRINT1(...); -> UNIMPLEMENTED;
Dmitry Chapyshev [Sat, 29 Nov 2008 12:49:08 +0000 (12:49 +0000)]
- DPRINT1(...); -> UNIMPLEMENTED;

svn path=/trunk/; revision=37725

11 years ago- Fix GetSystemPaletteEntries.
James Tabor [Sat, 29 Nov 2008 11:31:40 +0000 (11:31 +0000)]
- Fix GetSystemPaletteEntries.

svn path=/trunk/; revision=37723

11 years ago- guiddef.h: Don't define GUID_NULL as extern as the official header set doesn't...
Stefan Ginsberg [Sat, 29 Nov 2008 10:49:36 +0000 (10:49 +0000)]
- guiddef.h: Don't define GUID_NULL as extern as the official header set doesn't do this. Also, it causes conflicts under some circumstances.
- regstr.h: Add missing _IN_KERNEL_ guard
- rpcndr.h: Don't use the DWORD type
- windef.h: Add missing types, and put some under the BASETYPES guard
- winnt.h: Don't define types which should be in windef.h
- winuser.h: Correct KEYBOARD_OVERRUN_MAKE_CODE declaration, add missing NOWINDOWSTATION guard
- ntgdityp.h: Fix header guard for "FIX" type declaration

svn path=/trunk/; revision=37721

11 years ago- MSFS: Don't rely on PSDK headers for MAILSLOT_NO_MESSAGE/MAILSLOT_WAIT_FOREVER
Stefan Ginsberg [Sat, 29 Nov 2008 10:26:47 +0000 (10:26 +0000)]
- MSFS: Don't rely on PSDK headers for MAILSLOT_NO_MESSAGE/MAILSLOT_WAIT_FOREVER

svn path=/trunk/; revision=37719

11 years ago- Don't redefine basic types
Stefan Ginsberg [Sat, 29 Nov 2008 10:22:57 +0000 (10:22 +0000)]
- Don't redefine basic types

svn path=/trunk/; revision=37718

11 years ago - Fix behavior of kernel APCs interrupting waits on gate objects. Patch by Alex...
Cameron Gutman [Sat, 29 Nov 2008 02:57:21 +0000 (02:57 +0000)]
 - Fix behavior of kernel APCs interrupting waits on gate objects. Patch by Alex Ionescu.

svn path=/trunk/; revision=37714

11 years ago - Merge aicom-network-fixes up to r37712
Cameron Gutman [Sat, 29 Nov 2008 01:51:19 +0000 (01:51 +0000)]
 - Merge aicom-network-fixes up to r37712

svn path=/trunk/; revision=37713

11 years ago- Don't add an include path for internal win32k headers as dxg doesn't include them...
Stefan Ginsberg [Fri, 28 Nov 2008 20:26:25 +0000 (20:26 +0000)]
- Don't add an include path for internal win32k headers as dxg doesn't include them anymore

svn path=/trunk/; revision=37711

11 years ago- Add a header guard for pnp.idl's RESOURCEID, and add an internal define for setupap...
Stefan Ginsberg [Fri, 28 Nov 2008 20:24:36 +0000 (20:24 +0000)]
- Add a header guard for pnp.idl's RESOURCEID, and add an internal define for setupapi as it uses incompatible Wine headers

svn path=/trunk/; revision=37710

11 years ago- Use stdarg.h from psdk so we don't get redefinition conflicts
Stefan Ginsberg [Fri, 28 Nov 2008 20:18:13 +0000 (20:18 +0000)]
- Use stdarg.h from psdk so we don't get redefinition conflicts

svn path=/trunk/; revision=37709

11 years ago- Add a missing define -- fixes DECLARE_INTERFACE and everything related for kernel...
Stefan Ginsberg [Fri, 28 Nov 2008 18:24:30 +0000 (18:24 +0000)]
- Add a missing define -- fixes DECLARE_INTERFACE and everything related for kernel mode

svn path=/trunk/; revision=37707

11 years agoGCC 4.3 correctly aligns stack-allocated objects
KJK::Hyperion [Fri, 28 Nov 2008 14:47:19 +0000 (14:47 +0000)]
GCC 4.3 correctly aligns stack-allocated objects
Patch by "hto", from bugzilla
See issue #3608 for more details.

svn path=/trunk/; revision=37706

11 years agoDon't let ASSERT_SRW_WAITBLOCK evaluate to nothing - make it evaluate to (void)0...
KJK::Hyperion [Fri, 28 Nov 2008 14:38:41 +0000 (14:38 +0000)]
Don't let ASSERT_SRW_WAITBLOCK evaluate to nothing - make it evaluate to (void)0, like ASSERT would
See issue #3608 for more details.

svn path=/trunk/; revision=37705

11 years agoASSERT really needs to be void, despite what DDK headers might say. Fixes following...
KJK::Hyperion [Fri, 28 Nov 2008 14:33:21 +0000 (14:33 +0000)]
ASSERT really needs to be void, despite what DDK headers might say. Fixes following warning:

lib\rtl\srw.c: In function 'RtlAcquireSRWLockShared':
lib\rtl\srw.c:498: error: statement with no effect
lib\rtl\srw.c: In function 'RtlAcquireSRWLockExclusive':
lib\rtl\srw.c:637: error: statement with no effect
lib\rtl\srw.c:668: error: statement with no effect
lib\rtl\srw.c:696: error: statement with no effect
See issue #3922 for more details.

svn path=/trunk/; revision=37704

11 years agoTypo. Bogus text to make commit message long enough.
KJK::Hyperion [Fri, 28 Nov 2008 14:29:12 +0000 (14:29 +0000)]
Typo. Bogus text to make commit message long enough.

svn path=/trunk/; revision=37703

11 years ago- update user32 winetest
Kamil Hornicek [Fri, 28 Nov 2008 12:02:57 +0000 (12:02 +0000)]
- update user32 winetest

svn path=/trunk/; revision=37702

11 years ago- fix a typo
Kamil Hornicek [Fri, 28 Nov 2008 11:51:12 +0000 (11:51 +0000)]
- fix a typo
- add a define for user32 winetest

svn path=/trunk/; revision=37701

11 years agoUpdate UniATA to Version 0.39j Credits go to Samuel Serapion
Daniel Reimer [Fri, 28 Nov 2008 09:02:24 +0000 (09:02 +0000)]
Update UniATA to Version 0.39j Credits go to Samuel Serapion

svn path=/trunk/; revision=37700

11 years ago- Move out stubs and place them where they belong.
James Tabor [Fri, 28 Nov 2008 03:57:57 +0000 (03:57 +0000)]
- Move out stubs and place them where they belong.

svn path=/trunk/; revision=37699

11 years agoUpdate gdi32 winetests, so we don't run out of things to fix.
Gregor Schneider [Thu, 27 Nov 2008 20:52:01 +0000 (20:52 +0000)]
Update gdi32 winetests, so we don't run out of things to fix.

svn path=/trunk/; revision=37695

11 years ago- Finnish up gdi wine pen cross test fixes.
James Tabor [Thu, 27 Nov 2008 20:51:19 +0000 (20:51 +0000)]
- Finnish up gdi wine pen cross test fixes.
- Fix width issue with simple stock pens.
- Fix Info DC building. This was made obvious with wine pen cross tests.

svn path=/trunk/; revision=37694

11 years ago- PS_NULL might always be a LOGPEN, but can be retrieved as LOGPEN and EXTLOGPEN...
Gregor Schneider [Thu, 27 Nov 2008 20:31:37 +0000 (20:31 +0000)]
- PS_NULL might always be a LOGPEN, but can be retrieved as LOGPEN and EXTLOGPEN, distinguished by the supplied buffer size
- Fixes 8 gdi32 pen winetests, finally all left failures are visible in one cmd window ;-)

svn path=/trunk/; revision=37693

11 years ago- less break, more build
Stefan Ginsberg [Thu, 27 Nov 2008 20:15:51 +0000 (20:15 +0000)]
- less break, more build

svn path=/trunk/; revision=37692

11 years ago- Videoprt should only use the error codes provided in dderror.h, fix that. Also...
Stefan Ginsberg [Thu, 27 Nov 2008 20:05:12 +0000 (20:05 +0000)]
- Videoprt should only use the error codes provided in dderror.h, fix that. Also include dderror.h and make the windef.h dependency explicit.
- Include dderror.h in vbemp/vgamp/xboxvmp too, and make sure vbemp gets its precious HIWORD/LOWORD

svn path=/trunk/; revision=37691

11 years ago- Correct numerous structures to work without windef.h (makes them match official...
Stefan Ginsberg [Thu, 27 Nov 2008 17:02:09 +0000 (17:02 +0000)]
- Correct numerous structures to work without windef.h (makes them match official DDK, too) and fix some double definitions.
- Use same header guard in ddk's ntstatus.h as psdk's to prevent bogus redefinition errors. Also correct some status codes in the psdk version.

svn path=/trunk/; revision=37690

11 years ago- DXAPI: Fix incompatible header inclusion
Stefan Ginsberg [Thu, 27 Nov 2008 15:34:33 +0000 (15:34 +0000)]
- DXAPI: Fix incompatible header inclusion
- DXG: Change the way PDC is defined -- treat the DC structure as opaque instead of including internal win32k headers. Also rework the way DD_BASEOBJECT is defined.

svn path=/trunk/; revision=37689

11 years ago- ACPI: Don't redefine standard DDK types
Stefan Ginsberg [Thu, 27 Nov 2008 15:02:47 +0000 (15:02 +0000)]
- ACPI: Don't redefine standard DDK types
- TCPIP/IP/TDI/Uniata: Don't use user mode types
- USBDRIVER: Remove a peculiar redefinition of ULONG_PTR
- NDIS: Remove duplicate (and undocumented) types from ndis.h, defined in an internal NDIS header long ago. Also fix some warnings, define UINT as appropriate, and add a clever (not really) workaround for a gcc/msvc incompatibility. -- For some obnoxious reason msvc is fine with redeclaring types compatibly, while gcc treats it as an error. PSDK and DDK require this, so we need...extended header checks.

svn path=/trunk/; revision=37688

11 years ago- Add WM_SYSCHAR to U32IsValidAccelMessage. See bug #543 for more info.
Michael Martin [Thu, 27 Nov 2008 13:54:29 +0000 (13:54 +0000)]
- Add WM_SYSCHAR to U32IsValidAccelMessage. See bug #543 for more info.

svn path=/trunk/; revision=37687

11 years ago- sync wined3d, d3d8, d3d9 to wine HEAD part 2/2
Kamil Hornicek [Thu, 27 Nov 2008 09:20:38 +0000 (09:20 +0000)]
- sync wined3d, d3d8, d3d9 to wine HEAD part 2/2

svn path=/trunk/; revision=37684

11 years ago- sync wined3d, d3d8, d3d9 to wine HEAD part 1/2
Kamil Hornicek [Thu, 27 Nov 2008 09:20:16 +0000 (09:20 +0000)]
- sync wined3d, d3d8, d3d9 to wine HEAD part 1/2

svn path=/trunk/; revision=37683

11 years ago- .DEF -> .SPEC
Dmitry Chapyshev [Thu, 27 Nov 2008 08:40:47 +0000 (08:40 +0000)]
- .DEF -> .SPEC
- Add some stubs

svn path=/trunk/; revision=37681

11 years ago- Fixed stock object creation for pens. Now pass all but 25 pen cross tests. Please...
James Tabor [Wed, 26 Nov 2008 20:44:41 +0000 (20:44 +0000)]
- Fixed stock object creation for pens. Now pass all but 25 pen cross tests. Please use latest wine gdi tests.

svn path=/trunk/; revision=37677

11 years ago- tool for autoconverting INF files to utf-16le from an arbitrary unicode encoding
Matthias Kupfer [Wed, 26 Nov 2008 20:38:15 +0000 (20:38 +0000)]
- tool for autoconverting INF files to utf-16le from an arbitrary unicode encoding

svn path=/trunk/; revision=37676

11 years ago- Slightly reorder freeldr.h's include order
Stefan Ginsberg [Wed, 26 Nov 2008 20:33:34 +0000 (20:33 +0000)]
- Slightly reorder freeldr.h's include order

svn path=/trunk/; revision=37675

11 years ago- Fix some definitions, and remove __DD_INCLUDED__ hack
Stefan Ginsberg [Wed, 26 Nov 2008 20:00:14 +0000 (20:00 +0000)]
- Fix some definitions, and remove __DD_INCLUDED__ hack

svn path=/trunk/; revision=37673

11 years agoadd myself
Matthias Kupfer [Wed, 26 Nov 2008 19:48:01 +0000 (19:48 +0000)]
add myself

svn path=/trunk/; revision=37672

11 years ago- Fix release build
Stefan Ginsberg [Wed, 26 Nov 2008 19:24:10 +0000 (19:24 +0000)]
- Fix release build

svn path=/trunk/; revision=37671

11 years ago- Define NTSTATUS in a way compatible with the current header set
Stefan Ginsberg [Wed, 26 Nov 2008 19:22:33 +0000 (19:22 +0000)]
- Define NTSTATUS in a way compatible with the current header set

svn path=/trunk/; revision=37670

11 years ago- Ksuser: Cleanup header usage a bit, and make sure NTSTATUS gets defined
Stefan Ginsberg [Wed, 26 Nov 2008 19:04:55 +0000 (19:04 +0000)]
- Ksuser: Cleanup header usage a bit, and make sure NTSTATUS gets defined
- Kernel32: Undefine IOCTL_SERIAL_LSRMST_INSERT so we don't get a (bogus) incompatible redefinition warning

svn path=/trunk/; revision=37669

11 years ago- Fix some coverity errors.
Aleksey Bragin [Wed, 26 Nov 2008 18:56:41 +0000 (18:56 +0000)]
- Fix some coverity errors.
- Use KeBugCheck(MEMORY_MANAGEMENT) instead of ASSERT(FALSE), so it dies on release builds too.
- Enable support for Hyper-V.
- Fix incorrect gate wait code -- fixes sporadic crashes in the network stack.
- Mark KeBugCheck*, ExRaise* and RtlRaiseStatus as declspec(noreturn), for better optimization of functions which call them, less potential warnings in the compiler, and, assuming coverity understands it, less false CIDs.
- Fix KiUpdateDr7, which resulted in broken support for hardware breakpoints.
- Fix failure cases in EnumerateRootDevices which might've freed non-allocated memory.
- Fix NtAddAtom/NtFindAtom logic when dealing with NULL or kernel Atom names.

Patch by Alex Ionescu.

svn path=/trunk/; revision=37668

11 years ago- kmtest: Don't use user mode types
Stefan Ginsberg [Wed, 26 Nov 2008 18:43:27 +0000 (18:43 +0000)]
- kmtest: Don't use user mode types
- memtest: uh, no. ZwQuerySystemInformation does not return NO_ERROR

svn path=/trunk/; revision=37667

11 years ago- Add ExtCreatePen note: This is an enhancement and prevents a call to kernel space.
James Tabor [Wed, 26 Nov 2008 17:47:21 +0000 (17:47 +0000)]
- Add ExtCreatePen note: This is an enhancement and prevents a call to kernel space.

svn path=/trunk/; revision=37666

11 years ago- Update CL type.
James Tabor [Wed, 26 Nov 2008 17:11:59 +0000 (17:11 +0000)]
- Update CL type.

svn path=/trunk/; revision=37665

11 years agomodified lib/pseh/i386/framebased-gcchack.S
KJK::Hyperion [Wed, 26 Nov 2008 16:15:29 +0000 (16:15 +0000)]
modified   lib/pseh/i386/framebased-gcchack.S
   Typo

svn path=/trunk/; revision=37664

11 years agomodified include/reactos/libs/pseh/pseh2.h
KJK::Hyperion [Wed, 26 Nov 2008 16:03:12 +0000 (16:03 +0000)]
modified   include/reactos/libs/pseh/pseh2.h
   If the compiler is not GCC, assume native SEH support

modified   lib/pseh/framebased-gcchack.c
modified   lib/pseh/i386/framebased-gcchack.S
   Allow pseh to be compiled with Visual C++ without warnings

svn path=/trunk/; revision=37663

11 years ago- ExtCreatePen creates a PS_NULL style pen in the LOGPEN Format, use the NULL_PEN...
Gregor Schneider [Wed, 26 Nov 2008 15:12:38 +0000 (15:12 +0000)]
- ExtCreatePen creates a PS_NULL style pen in the LOGPEN Format, use the NULL_PEN StockObject for that matter
- Fixes 24 gdi32 pen winetests

svn path=/trunk/; revision=37661

11 years agoMerging fixes from Visual C++ branch
KJK::Hyperion [Wed, 26 Nov 2008 14:28:19 +0000 (14:28 +0000)]
Merging fixes from Visual C++ branch

modified   include/psdk/rpcndr.h
   Mask argument before casting in NdrFcShort

modified   include/psdk/winternl.h
   Visual C++-compatible placement of function attribute

modified   include/reactos/wine/port.h
   Visual C++ has interlocked intrinsics, too

modified   lib/3rdparty/adns/adns_win32/adns_unix_calls.c
modified   lib/3rdparty/adns/src/setup.c
   alloca -> _alloca

modified   lib/3rdparty/libwine/debug.c
   Fix a benign range check warning

modified   lib/3rdparty/libwine/debug_ros.c
   Properly decorate malloc replacement

modified   lib/3rdparty/libwine/string.c
   The actual function is called _stricmp

modified   lib/3rdparty/mingw/wcrt1.c
   Visual C++ support

svn path=/trunk/; revision=37659

11 years ago- Migrate advapi32 to PSEH 2.0.
Michael Martin [Wed, 26 Nov 2008 10:45:42 +0000 (10:45 +0000)]
- Migrate advapi32 to PSEH 2.0.

svn path=/trunk/; revision=37656

11 years agoBug 3871: Polish translation update for netshell,usetup and reactos.exe by Maciej...
Daniel Reimer [Wed, 26 Nov 2008 06:44:47 +0000 (06:44 +0000)]
Bug 3871: Polish translation update for netshell,usetup and reactos.exe by Maciej Bialas

svn path=/trunk/; revision=37649

11 years agoAdd comments about workarounds for GCC bugs
KJK::Hyperion [Tue, 25 Nov 2008 21:13:57 +0000 (21:13 +0000)]
Add comments about workarounds for GCC bugs

svn path=/trunk/; revision=37645

11 years ago- Remove blue's implicit dependency on windef.h
Stefan Ginsberg [Tue, 25 Nov 2008 17:11:42 +0000 (17:11 +0000)]
- Remove blue's implicit dependency on windef.h

svn path=/trunk/; revision=37643

11 years ago- FIX is declared in winddi.h, don't redeclare
Stefan Ginsberg [Tue, 25 Nov 2008 17:08:48 +0000 (17:08 +0000)]
- FIX is declared in winddi.h, don't redeclare

svn path=/trunk/; revision=37642

11 years ago- Remove Freeldr's dependency on windef.h
Stefan Ginsberg [Tue, 25 Nov 2008 16:55:43 +0000 (16:55 +0000)]
- Remove Freeldr's dependency on windef.h
- Explicitly include winerror.h

svn path=/trunk/; revision=37641

11 years ago- Enhance test with icon drawing
Gregor Schneider [Tue, 25 Nov 2008 16:50:25 +0000 (16:50 +0000)]
- Enhance test with icon drawing
- Tests some configurations of DrawIcon and DrawIconEx, highlighting another problem in 32bpp
- Reference TransparentBlt and AlphaBlend directly

svn path=/trunk/; revision=37640

11 years ago- Fix weird code in RtlGetVersion (inspired by Coverity ID 1355 and Daniel's patch...
Aleksey Bragin [Tue, 25 Nov 2008 16:31:07 +0000 (16:31 +0000)]
- Fix weird code in RtlGetVersion (inspired by Coverity ID 1355 and Daniel's patch in bug 3906).
See issue #3906 for more details.

svn path=/trunk/; revision=37638

11 years agoDaniel Zimmerman
Aleksey Bragin [Tue, 25 Nov 2008 15:57:03 +0000 (15:57 +0000)]
Daniel Zimmerman
- First check for NULL before reference a member in it.
See issue #3907 for more details.

svn path=/trunk/; revision=37636

11 years agoDaniel Zimmerman
Aleksey Bragin [Tue, 25 Nov 2008 15:51:09 +0000 (15:51 +0000)]
Daniel Zimmerman
- Check pdev and purb for NULL before accessing them. Resolves CID 764 and 763.
See issue #3908 for more details.

svn path=/trunk/; revision=37634

11 years ago- Change LPTSTR to LPWSTR for NtUserGetAltTabInfo, as this will always be a wide...
Stefan Ginsberg [Tue, 25 Nov 2008 14:50:53 +0000 (14:50 +0000)]
- Change LPTSTR to LPWSTR for NtUserGetAltTabInfo, as this will always be a wide string

svn path=/trunk/; revision=37633

11 years agoSupersedes r37631
KJK::Hyperion [Tue, 25 Nov 2008 14:17:27 +0000 (14:17 +0000)]
Supersedes r37631
Undoing fishy patch for warnings in Wine code (see r37629)

svn path=/trunk/; revision=37632

11 years agoUndoing fishy patch for warnings in Wine code (see r37629)
KJK::Hyperion [Tue, 25 Nov 2008 14:11:55 +0000 (14:11 +0000)]
Undoing fishy patch for warnings in Wine code (see r37629)

svn path=/trunk/; revision=37631

11 years ago- Correct some type casts
Stefan Ginsberg [Tue, 25 Nov 2008 13:57:26 +0000 (13:57 +0000)]
- Correct some type casts

svn path=/trunk/; revision=37630

11 years agoSupersedes r37623 with fixes for cross compilation
KJK::Hyperion [Tue, 25 Nov 2008 13:44:30 +0000 (13:44 +0000)]
Supersedes r37623 with fixes for cross compilation

modified   base/shell/explorer/explorer.rbuild
modified   dll/win32/glu32/glu32.rbuild
modified   dll/win32/kernel32/kernel32.rbuild
modified   drivers/wdm/audio/backpln/portcls/portcls.rbuild
modified   ReactOS-generic.rbuild
   Set -Wno-non-virtual-dtor globally because we have no use for this warning and it only messes with COM interface definitions
   This alone disables a ton of spurious warnings

modified   tools/rbuild/backend/mingw/mingw.cpp
modified   tools/rbuild/backend/mingw/modulehandler.cpp
modified   tools/rbuild/backend/mingw/modulehandler.h
   Project-global compiler flags now actually work as intended
   Removed some dead code

modified   dll/directx/dxdiagn/container.c
modified   dll/directx/wine/d3d8/device.c
modified   dll/directx/wine/d3d9/device.c
modified   dll/win32/comdlg32/printdlg.c
modified   dll/win32/crypt32/chain.c
modified   dll/win32/crypt32/main.c
modified   dll/win32/crypt32/oid.c
modified   dll/win32/crypt32/protectdata.c
modified   dll/win32/crypt32/rootstore.c
modified   dll/win32/dbghelp/pe_module.c
modified   dll/win32/fusion/assembly.c
modified   dll/win32/gdiplus/font.c
modified   dll/win32/gdiplus/image.c
modified   dll/win32/icmp/icmp_main.c
   Get rid of warnings.
   Patch by Robin Geuze <r.geuze@chello.nl>

svn path=/trunk/; revision=37629

11 years ago- Check parameters before allocating memory
Gregor Schneider [Tue, 25 Nov 2008 12:53:21 +0000 (12:53 +0000)]
- Check parameters before allocating memory
- Patch by Daniel Zimmermann, <netzimme AT aim DOT com>
- Fixes possible memory leaks pointed out by CID 605, bug #3910

svn path=/trunk/; revision=37628

11 years agoUndo r37623 until cross compilation is fixed
KJK::Hyperion [Mon, 24 Nov 2008 21:32:17 +0000 (21:32 +0000)]
Undo r37623 until cross compilation is fixed

svn path=/trunk/; revision=37626

11 years ago- don't calc the same values multiple times
Matthias Kupfer [Mon, 24 Nov 2008 21:28:42 +0000 (21:28 +0000)]
- don't calc the same values multiple times

svn path=/trunk/; revision=37625

11 years agomodified base/shell/explorer/explorer.rbuild
KJK::Hyperion [Mon, 24 Nov 2008 19:29:13 +0000 (19:29 +0000)]
modified   base/shell/explorer/explorer.rbuild
modified   dll/win32/glu32/glu32.rbuild
modified   dll/win32/kernel32/kernel32.rbuild
modified   drivers/wdm/audio/backpln/portcls/portcls.rbuild
modified   ReactOS-generic.rbuild
   Set -Wno-non-virtual-dtor globally because we have no use for this warning and it only messes with COM interface definitions
   This alone disables a ton of spurious warnings

modified   tools/rbuild/backend/mingw/mingw.cpp
modified   tools/rbuild/backend/mingw/modulehandler.cpp
modified   tools/rbuild/backend/mingw/modulehandler.h
   Project-global compiler flags now actually work as intended
   Removed some dead code

modified   dll/directx/dxdiagn/container.c
modified   dll/directx/wine/d3d8/device.c
modified   dll/directx/wine/d3d9/device.c
modified   dll/win32/comdlg32/printdlg.c
modified   dll/win32/crypt32/chain.c
modified   dll/win32/crypt32/main.c
modified   dll/win32/crypt32/oid.c
modified   dll/win32/crypt32/protectdata.c
modified   dll/win32/crypt32/rootstore.c
modified   dll/win32/dbghelp/pe_module.c
modified   dll/win32/fusion/assembly.c
modified   dll/win32/gdiplus/font.c
modified   dll/win32/gdiplus/image.c
modified   dll/win32/icmp/icmp_main.c
   Get rid of warnings.
   Patch by Robin Geuze <r.geuze@chello.nl>

svn path=/trunk/; revision=37623

11 years ago- Add copyright information I forgot, update paths
Gregor Schneider [Mon, 24 Nov 2008 19:27:30 +0000 (19:27 +0000)]
- Add copyright information I forgot, update paths

svn path=/trunk/; revision=37622

11 years ago- Move slightly changed PS_ALTERNATE and PS_INSIDEFRAME checks from win32k to gdi32
Gregor Schneider [Mon, 24 Nov 2008 18:40:46 +0000 (18:40 +0000)]
- Move slightly changed PS_ALTERNATE and PS_INSIDEFRAME checks from win32k to gdi32
- Don't restrict the width of PS_SOLID pens
- Fixes 25 gdi32 pen winetests
- Pen types left tbd: PS_NULL (problems in GetObject and ExtCreatePen) and PS_ALTNATE (EngLineTo/StrokePath does not support bitmap pens)

svn path=/trunk/; revision=37620

11 years ago- Fix heap corruption and memory leak
Johannes Anderwald [Mon, 24 Nov 2008 18:05:51 +0000 (18:05 +0000)]
- Fix heap corruption and memory leak
- patch by Daniel Zimmermann
- CID 707
- bug 3905

svn path=/trunk/; revision=37619

11 years ago- Store settings of SPI_SETMOUSEBUTTONSWAP in registry
Johannes Anderwald [Mon, 24 Nov 2008 17:57:17 +0000 (17:57 +0000)]
- Store settings of SPI_SETMOUSEBUTTONSWAP in registry
- bug 2443

svn path=/trunk/; revision=37618

11 years agomodified ntoskrnl/ex/sysinfo.c
KJK::Hyperion [Mon, 24 Nov 2008 13:47:44 +0000 (13:47 +0000)]
modified   ntoskrnl/ex/sysinfo.c
   MaxSystemInfoClass is now much larger than the size of the CallQS table: use the actual size of the table in range checks to prevent an overrun
   Fixes CID 527, CID 528

svn path=/trunk/; revision=37616

11 years agoEverything
KJK::Hyperion [Mon, 24 Nov 2008 13:40:26 +0000 (13:40 +0000)]
Everything
   Migrate ntoskrnl to PSEH 2.0. The code should speak for itself

modified   ntoskrnl/ex/atom.c
   _SEH_LEAVE was used improperly in NtQueryInformationAtom. As a free bonus, the upgrade to PSEH 2.0 (and to _SEH2_LEAVE) fixes the potential bug

modified   ntoskrnl/fsrtl/fastio.c
   Corrected exception filter logic

modified   ntoskrnl/include/internal/ex.h
   Goodbye _SEH_ExSystemExceptionFilter, you won't be missed

modified   ntoskrnl/include/internal/ntoskrnl.h
   Don't FORCEINLINE functions that use SEH, it's bad form and the compiler doesn't like

modified   ntoskrnl/ke/i386/usercall.c
   Dispatch the correct EXCEPTION_RECORD in case of exception inside KiInitializeUserApc

modified   ntoskrnl/ke/powerpc/exp.c
   Removed bogus, unused SEH code

modified   ntoskrnl/ntoskrnl-generic.rbuild
   Sources using PSEH 2.0 must be compiled with -fno-unit-at-a-time due to a GCC bug. See also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17982 and http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38054
   Apparently, -fno-unit-at-a-time makes GCC crash when using precompiled headers. Disable precompiled headers for ntoskrnl

svn path=/trunk/; revision=37615

11 years agomodified include/psdk/rpc.h
KJK::Hyperion [Mon, 24 Nov 2008 13:05:40 +0000 (13:05 +0000)]
modified   include/psdk/rpc.h
   Implemented RPC exception handling macros with PSEH 2.0

modified   base/services/rpcss/rpcss.rbuild
modified   dll/win32/rpcrt4/rpcrt4.rbuild
   RPC proxy stubs now depend on pseh. We should really add pseh as a link dependency automatically in rbuild, but, eh

modified   tools/rbuild/backend/mingw/modulehandler.cpp
   Compile RPC proxy stubs with -fno-unit-at-a-time due to a GCC bug. See also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17982 and http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38054

svn path=/trunk/; revision=37614