Commit Graph

42088 Commits

Author SHA1 Message Date
Timo Kreuzer
327684fd1c Fix usage of PNTSTATUS instead of NTSTATUS in NT_SUCCESS, which could result in IopCheckVpbMounted returning a wrong status code
svn path=/trunk/; revision=38121
2008-12-16 18:12:13 +00:00
Stefan Ginsberg
1258b49708 - Add missing break (<3 kjk <3)
svn path=/trunk/; revision=38120
2008-12-16 17:51:57 +00:00
Timo Kreuzer
bafa860eb4 remove kernel32 dependency from mingw lib
svn path=/branches/ros-amd64-bringup/; revision=38119
2008-12-16 17:37:45 +00:00
Timo Kreuzer
7d2ae2011e Let rbuild throw an exception when an implicit module dependency (like mingw lib) cannot be resolved instead of silently failing.
svn path=/trunk/; revision=38118
2008-12-16 15:51:55 +00:00
Stefan Ginsberg
2521c1979a - Remove KeRosDumpStackFrames export and make the call go through KdSystemDebugControl instead
svn path=/trunk/; revision=38117
2008-12-16 15:25:51 +00:00
Stefan Ginsberg
45aaa00ef8 - Temporarily revert part of 38078 to make build server builds bootable again
svn path=/trunk/; revision=38116
2008-12-16 14:50:57 +00:00
Johannes Anderwald
7f7f904854 - Implement KsCreateAllocator, KsRegisterWorker, KsUnregisterWorker, KsRegisterCountedWorker, KsDecrementCountedWorker, KsIncrementCountedWorker, KsQueueWorkItem
svn path=/trunk/; revision=38115
2008-12-16 13:19:53 +00:00
Timo Kreuzer
944d1fea6a use setjmp/longjmp from libcntpr
svn path=/branches/ros-amd64-bringup/; revision=38114
2008-12-15 20:38:21 +00:00
Dmitry Gorbachev
4c0f9b5052 Fix TLS callbacks. Testers, please test it on real software.
svn path=/trunk/; revision=38113
2008-12-15 18:19:18 +00:00
Stefan Ginsberg
3e536240a1 - Revert part of 37861 on kjk's request
svn path=/trunk/; revision=38112
2008-12-15 18:18:23 +00:00
Samuel Serapion
c97d86c1df opps, same here.
svn path=/branches/ros-amd64-bringup/; revision=38111
2008-12-15 17:20:44 +00:00
Samuel Serapion
fe19c9eaa6 - Fix UNALIGNED definition in crt.
- Definition not fixed in psdk because attribute(packed) is ignored on pointers and causes warnings, that with the pedantic warnings as errors break everything.

svn path=/branches/ros-amd64-bringup/; revision=38110
2008-12-15 17:19:10 +00:00
Stefan Ginsberg
ab621541ae - Silence debug spam
svn path=/trunk/; revision=38109
2008-12-15 14:43:25 +00:00
Timo Kreuzer
e50e0d8646 - remove outdated files from mingw lib
- remove allowwarnings=true

svn path=/trunk/; revision=38108
2008-12-15 14:02:28 +00:00
Dmitry Chapyshev
32dfe68057 - Formatting fix
svn path=/trunk/; revision=38107
2008-12-15 13:54:34 +00:00
Timo Kreuzer
7dff983dd1 For some reason SVN didn't sync the line ending changes, although it's a binary file.
svn path=/branches/ros-amd64-bringup/; revision=38106
2008-12-15 13:19:02 +00:00
Timo Kreuzer
6803d9fd10 Use KeGetCurrentPrcb() instead of KeGetPcr()->Prcb / KeGetPcr()->CurrentPrcb
svn path=/branches/ros-amd64-bringup/; revision=38105
2008-12-15 12:56:15 +00:00
Timo Kreuzer
be2c347725 fix a typo
svn path=/trunk/; revision=38104
2008-12-15 12:26:16 +00:00
Dmitry Chapyshev
d07b497cbb - Add ACTIVATION_CONTEXT_STACK structure
- Add ICVERSION define

svn path=/trunk/; revision=38103
2008-12-15 10:48:53 +00:00
James Tabor
58d352809d - Fix bitmap tests.
svn path=/trunk/; revision=38102
2008-12-15 05:48:22 +00:00
James Tabor
8a3fedace3 - Implement DIB section attribute flag support.
- Fix height negativity being passed to NtGdiCreateCompatibleBitmap. See bug 3947.

svn path=/trunk/; revision=38101
2008-12-15 05:25:31 +00:00
Samuel Serapion
8f799ea5b2 Accidentally undid 64 bit fixes, revert
svn path=/branches/ros-amd64-bringup/; revision=38100
2008-12-15 04:28:45 +00:00
Samuel Serapion
901f0cf805 attempt to fix kernel build.
svn path=/branches/ros-amd64-bringup/; revision=38099
2008-12-15 04:19:03 +00:00
Samuel Serapion
f771d5b193 Fix build a bit.
svn path=/branches/ros-amd64-bringup/; revision=38098
2008-12-15 04:17:53 +00:00
Samuel Serapion
45cf586a15 Sync to trunk head(r38096)
svn path=/branches/ros-amd64-bringup/; revision=38097
2008-12-15 04:14:26 +00:00
Samuel Serapion
0588a0d2a7 Sync to wine64. Adds support for amd64 relays.. not that we use this feature.
svn path=/branches/ros-amd64-bringup/; revision=38096
2008-12-15 02:45:33 +00:00
Samuel Serapion
d169f154e0 Fix packing for commdlg
svn path=/branches/ros-amd64-bringup/; revision=38095
2008-12-15 02:17:21 +00:00
Samuel Serapion
f9f9de97ed Start making heap 64bit friendly.
svn path=/branches/ros-amd64-bringup/; revision=38094
2008-12-15 02:13:20 +00:00
Samuel Serapion
a04b01097c hack for wine specific hack.
svn path=/branches/ros-amd64-bringup/; revision=38093
2008-12-15 02:09:44 +00:00
Samuel Serapion
c35f0410c2 Fix 64bit-warnings.
svn path=/branches/ros-amd64-bringup/; revision=38092
2008-12-15 01:45:23 +00:00
Samuel Serapion
119dbe70f5 Fix some 64bit portability issues.
svn path=/branches/ros-amd64-bringup/; revision=38091
2008-12-15 00:30:46 +00:00
Samuel Serapion
fdc49dfd3d Fix 64bit widl stubs.
svn path=/branches/ros-amd64-bringup/; revision=38090
2008-12-15 00:23:37 +00:00
Samuel Serapion
d4682afd4e define _SEH2_FINALLY
svn path=/branches/ros-amd64-bringup/; revision=38089
2008-12-15 00:22:04 +00:00
Timo Kreuzer
e9d55d0638 mbctype.h: fix broken _mbctype[] and _mbcasemap[] declarations
sec_api/time_s.h: add asctime_s
stdio.h: comment out defines for non-conforming swprintfs
sys/utime.h: fix definition of _utime / _utime32 to be compatible to msvc while linking to msvcrt.dll
tchar.h: add secure time functions
fixes msvcrt_winetest

svn path=/trunk/; revision=38088
2008-12-14 23:41:51 +00:00
Timo Kreuzer
2f3c5f280b - Replace a 'for' with a 'do .. while '
- Make sure OutputDebugStringA terminates with a newline
Fixes winetest debug output. I wonder how it worked before. Dedicated to Stefan100.

svn path=/trunk/; revision=38087
2008-12-14 23:18:59 +00:00
Timo Kreuzer
39324400b9 [FORMATTING]
Fix indentation, no code change

svn path=/trunk/; revision=38086
2008-12-14 22:52:51 +00:00
KJK::Hyperion
41dd7167ea Revert r38084
Sigh.

svn path=/trunk/; revision=38085
2008-12-14 22:44:33 +00:00
KJK::Hyperion
41467cc1ad Supersedes r38081
modified   include/reactos/libs/pseh/pseh2.h
modified   lib/pseh/framebased-gcchack.c
modified   lib/pseh/i386/framebased-gcchack.S
   Disassemble trampolines in the library, instead of the macros. Results in better, smaller code. As a side effect, PSEH no longer requires a trampoline for nested functions - which results in even better, even smaller code in many common cases where the nested functions don't use any variables from the containing function
   Simulate a no-op setjmp so that GCC correctly handles variables in registers, instead of surprise-corrupting random variables in random conditions
   Save EBP every time a _SEH2_TRY/_SEH2_EXCEPT is entered, instead of only the first time: correctly handles code compiled with -fomit-frame-pointers
   Don't generate a nested function for a _SEH2_EXCEPT() filter expression if the value is a compile-time constant: convert the value to (void *)0, (void *)1 or (void *)-1, and set that as the filter, instead (like Visual C++ does, incidentally)
   If a _SEH2_EXCEPT() filter expression is a compile-time constant evaluating to EXCEPTION_CONTINUE_EXECUTION or EXCEPTION_CONTINUE_SEARCH, allow GCC to optimize out the body of the _SEH2_EXCEPT (because it'd be unreachable). This should really result in a compile-time warning, but #pragma message is unsupported in GCC 4.1.3
   Let _SEH2_EXCEPT() accept a comma expression as filter expression (e.g. _SEH2_EXCEPT(MessageBox(...), EXCEPTION_EXECUTE_HANDLER) instead of _SEH2_EXCEPT((MessageBox(...), EXCEPTION_EXECUTE_HANDLER)))
   Small optimizations in PSEH library
   Clean up GCC hacks
   Remove currently unused PSEH 3 hacks

svn path=/trunk/; revision=38084
2008-12-14 21:50:31 +00:00
Dmitry Gorbachev
e415cd9e65 - Use HEAP_ZERO_MEMORY instead of memset().
- Do not crash if no adapter found.

svn path=/trunk/; revision=38083
2008-12-14 20:45:16 +00:00
KJK::Hyperion
966a02f90b Revert r38081
svn path=/trunk/; revision=38082
2008-12-14 19:54:52 +00:00
KJK::Hyperion
0d1b89e5c2 modified include/reactos/libs/pseh/pseh2.h
modified   lib/pseh/framebased-gcchack.c
   Disassemble trampolines in the library, instead of the macros. Results in better, smaller code. As a side effect, PSEH no longer requires a trampoline for nested functions - which results in even better, even smaller code in many common cases where the nested functions don't use any variables from the containing function
   Simulate a no-op setjmp so that GCC correctly handles variables in registers, instead of surprise-corrupting random variables in random conditions
   Save EBP every time a _SEH2_TRY/_SEH2_EXCEPT is entered, instead of only the first time: correctly handles code compiled with -fomit-frame-pointers
   Don't generate a nested function for a _SEH2_EXCEPT() filter expression if the value is a compile-time constant: convert the value to (void *)0, (void *)1 or (void *)-1, and set that as the filter, instead (like Visual C++ does, incidentally)
   If a _SEH2_EXCEPT() filter expression is a compile-time constant evaluating to EXCEPTION_CONTINUE_EXECUTION or EXCEPTION_CONTINUE_SEARCH, allow GCC to optimize out the body of the _SEH2_EXCEPT (because it'd be unreachable). This should really result in a compile-time warning, but #pragma message is unsupported in GCC 4.1.3
   Let _SEH2_EXCEPT() accept a comma expression as filter expression (e.g. _SEH2_EXCEPT(MessageBox(...), EXCEPTION_EXECUTE_HANDLER) instead of _SEH2_EXCEPT((MessageBox(...), EXCEPTION_EXECUTE_HANDLER)))
   Small optimizations in PSEH library
   Clean up GCC hacks
   Remove currently unused PSEH 3 hacks

svn path=/trunk/; revision=38081
2008-12-14 19:49:05 +00:00
Timo Kreuzer
973a6f3ef5 Patch by encoded: update SHARED_CACHE_MAP
svn path=/branches/ros-amd64-bringup/; revision=38080
2008-12-14 17:59:11 +00:00
Dmitry Gorbachev
47b29bf325 Fix winsta.dll rbuild file.
svn path=/trunk/; revision=38079
2008-12-14 13:52:28 +00:00
Eric Kohl
41a958b128 - SEH-protect LsaClose, LsaDelete and LsaOpenPolicy.
- Move the code of LsaOpenPolicy into LsarOpenPolicy and make LsaOpenPolicy call LsarOpenPolicy.

svn path=/trunk/; revision=38078
2008-12-14 13:16:16 +00:00
Michael Martin
1605d036fe - Use volatile with PagesLocked and MdlAddress. Fixes bug #3674.
- For safety may have to declare all variable used in except this way.

svn path=/trunk/; revision=38077
2008-12-14 12:14:00 +00:00
Aleksey Bragin
5e305bbdf6 - Undo one "fix" from 38075. Coverity warned you about possible double check of the same pointer (though in || you probably can't go without it), but one check should definately stay! SpiGetLunExtension can return NULL!
svn path=/trunk/; revision=38076
2008-12-14 11:59:21 +00:00
Stefan Ginsberg
a9295e691b - Fix a broken loop
- Remove unnecessary checks
- Fixes CID 171, 172 and 655

svn path=/trunk/; revision=38075
2008-12-14 10:15:49 +00:00
Stefan Ginsberg
afa4c210b2 - Get rid off STATIC, DECL_IMPORT and DECL_EXPORT
- Fix FIELD_OFFSET

svn path=/trunk/; revision=38074
2008-12-14 10:02:46 +00:00
Samuel Serapion
aa4aedbeca same here.
svn path=/branches/ros-amd64-bringup/; revision=38073
2008-12-14 06:18:50 +00:00
Samuel Serapion
a2b06cb051 revert CryptReleaseContext "fix", WINE headers made a fool out of me... need sleep.
fix FARPROC, NEARPROC, PROC definitions, for real this time


svn path=/branches/ros-amd64-bringup/; revision=38072
2008-12-14 06:17:16 +00:00