reactos.git
9 years ago[themesvc]
Giannis Adamopoulos [Fri, 12 Aug 2011 10:25:30 +0000 (10:25 +0000)]
[themesvc]
- Add the themes service. For now it will only call ThemeHooksInstall and ThemeHooksRemove. From now on we do not need apihooksrv in order to have themes

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53195

9 years ago[uxtheme]
Giannis Adamopoulos [Fri, 12 Aug 2011 10:21:10 +0000 (10:21 +0000)]
[uxtheme]
- Send WM_THEMECHANGED when theme hooks are removed and there is an active theme

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53194

9 years ago[win32k]
Giannis Adamopoulos [Mon, 8 Aug 2011 13:31:33 +0000 (13:31 +0000)]
[win32k]
- Add co_MsqSendMessageAsync in order to send asynchronous normal and internal messages
- Use co_MsqSendMessageAsync to load and unload api hook module
- This hopefully fixes the last problems with api hooks implementation

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53139

9 years ago[uxtheme]
Giannis Adamopoulos [Sun, 7 Aug 2011 20:50:01 +0000 (20:50 +0000)]
[uxtheme]
- UXTHEME_LoadTheme call in theme hook callback is still needed in order to load the active theme in an application that starts after themes are enabled

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53125

9 years ago[uxtheme]
Giannis Adamopoulos [Sun, 7 Aug 2011 20:42:22 +0000 (20:42 +0000)]
[uxtheme]
- Broadcast WM_THEMECHANGED when hook themes are activated
- Do not call UXTHEME_LoadTheme in the hook theme callback. It will now be called when the application gets WM_THEMECHANGED

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53124

9 years ago[user32]
Giannis Adamopoulos [Sun, 7 Aug 2011 20:10:07 +0000 (20:10 +0000)]
[user32]
- Store ghmodUserApiHook before calling ClearUserApiHook because it will be zeroed during this call
- Fix a typo in ClearUserApiHook

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53123

9 years ago[win32k]
Giannis Adamopoulos [Tue, 2 Aug 2011 13:59:13 +0000 (13:59 +0000)]
[win32k]
- HACK RegisterClass in order to let comctl32 re-register built in classes. This is needed in order to fix themes and will keep it till we find a way to do it properly. (of course this breaks class wine tests as well)

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53030

9 years ago[comctl32]
Giannis Adamopoulos [Tue, 2 Aug 2011 13:54:41 +0000 (13:54 +0000)]
[comctl32]
- Register themed built-in controls even if themes are not enabled. This allows built in controls to use themes without restarting the application
- Register built in controls in the same way it done in windows (as global classes that belong to comctl32). This is needed in order to have themed controls in dialogs. Unfortunately our user32/win32k does not support it yet and this breaks themed built in controls

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53029

9 years ago[comctl32]
Giannis Adamopoulos [Tue, 2 Aug 2011 13:42:18 +0000 (13:42 +0000)]
[comctl32]
- Do not call CombineRgn with erroneous parameters
- Should be sent to wine

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53027

9 years ago[uxtheme]
Giannis Adamopoulos [Tue, 2 Aug 2011 13:38:58 +0000 (13:38 +0000)]
[uxtheme]
- Do not try to load the current theme when uxtheme loads. Instead, load the current theme when theme hooks are installed or when the application receives a WM_THEMECHANGED message. This allows us to change themes without restarting the running applications.
- Use the default behaviour of DefWindowProc from user32 when themes are not active. This allows us to have api hooks enabled when themes are disabled.

svn path=/branches/GSoC_2011/ThemesSupport/; revision=53026

9 years ago[user32]
Giannis Adamopoulos [Thu, 28 Jul 2011 13:06:56 +0000 (13:06 +0000)]
[user32]
- When ClearUserApiHook returns false, this means that the library will be freed in EndUserApiHook. In this case return success to let win32k know that the process has removed the api hook. Fixes reloading the api hook after unloading it

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52949

9 years ago[user32]
Giannis Adamopoulos [Thu, 28 Jul 2011 12:23:42 +0000 (12:23 +0000)]
[user32]
- Always call EndUserApiHook if BeginIfHookedUserApiHook returned true

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52948

9 years ago[win32k]
Giannis Adamopoulos [Sun, 17 Jul 2011 15:30:12 +0000 (15:30 +0000)]
[win32k]
- Fix TrackMouseEvent. Now hot tracking really works

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52716

9 years ago[user32]
Giannis Adamopoulos [Sun, 17 Jul 2011 15:18:11 +0000 (15:18 +0000)]
[user32]
- Partly sync button handling with wine. Needed for hot tracking

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52715

9 years ago[comctl32]
Giannis Adamopoulos [Sun, 17 Jul 2011 15:16:59 +0000 (15:16 +0000)]
[comctl32]
- Sync comctl32 with wine. Among it's improvements are reduced flicker in the listview and hot tracking support for themed buttons

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52714

9 years ago* Bring back rbuild build to be used until bug 6372 is fixed.
Amine Khaldi [Fri, 15 Jul 2011 22:27:16 +0000 (22:27 +0000)]
* Bring back rbuild build to be used until bug 6372 is fixed.

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52691

9 years ago"fix" vs generator
Giannis Adamopoulos [Fri, 15 Jul 2011 14:41:17 +0000 (14:41 +0000)]
"fix" vs generator

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52689

9 years ago[uxtheme]
Giannis Adamopoulos [Thu, 14 Jul 2011 12:15:06 +0000 (12:15 +0000)]
[uxtheme]
- Fix the size of the caption buttons. Now they have the correct size with themes like Luna Inspirat or clear looks

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52679

9 years ago[uxtheme]
Giannis Adamopoulos [Thu, 14 Jul 2011 10:10:07 +0000 (10:10 +0000)]
[uxtheme]
- Add yet another reactos specific hack
- Fixes drawing scrollbar items

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52677

9 years ago[apihooksrv]
Giannis Adamopoulos [Thu, 14 Jul 2011 08:46:43 +0000 (08:46 +0000)]
[apihooksrv]
- Call ThemeHooksRemove after the user presses a key

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52676

9 years ago[win32k]
Giannis Adamopoulos [Thu, 14 Jul 2011 08:37:55 +0000 (08:37 +0000)]
[win32k]
- Fix a bug that caused ClientLoadLibrary to be called recursively

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52675

9 years ago[ntdll]
Giannis Adamopoulos [Wed, 13 Jul 2011 17:57:40 +0000 (17:57 +0000)]
[ntdll]
- Disable Server to server calls in csr because they do not work yet as our csr is not compatible with windows.

[user32]
- Call CsrClientConnectToServer when the dll is initialized in order to connect with the server and determine if user32 is running in the server process.
- Do not load user api hook if we are in the server process
- Fixes drawing the console window

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52672

9 years ago* Update spec2def.
Amine Khaldi [Wed, 13 Jul 2011 12:00:42 +0000 (12:00 +0000)]
* Update spec2def.

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52671

9 years ago* Sync with recent trunk (r52669).
Amine Khaldi [Wed, 13 Jul 2011 11:58:32 +0000 (11:58 +0000)]
* Sync with recent trunk (r52669).

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52670

9 years agoremove test command
Giannis Adamopoulos [Tue, 12 Jul 2011 21:27:46 +0000 (21:27 +0000)]
remove test command

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52666

9 years ago[apihooksrv]
Giannis Adamopoulos [Tue, 12 Jul 2011 21:25:51 +0000 (21:25 +0000)]
[apihooksrv]
- Commit a test utility that can install user api hooks and give for the first time real themes support. This is a temporary test program till the same functionality is integrated to winlogon. To use it someone has to activate themes with themecfg and then run "apihook uxtheme.dll". Also note that it is possible to use this tool in windows for testing purposes

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52665

9 years ago[themecfg]
Giannis Adamopoulos [Tue, 12 Jul 2011 21:09:43 +0000 (21:09 +0000)]
[themecfg]
- Add a test utility called themecfg that can configure themes. This is a small part of winecfg from wine. With this utility we can test themes support now. In the future this functionality will become part of desk.cpl

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52664

9 years ago[uxtheme]
Giannis Adamopoulos [Tue, 12 Jul 2011 19:45:49 +0000 (19:45 +0000)]
[uxtheme]
- Fix build

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52662

9 years ago[win32k]
Giannis Adamopoulos [Tue, 12 Jul 2011 09:24:16 +0000 (09:24 +0000)]
[win32k]
- Call UserUnregisterUserApiHook from the process cleanup routine if the process has registered the user api hook

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52652

9 years ago[user32]
Giannis Adamopoulos [Tue, 12 Jul 2011 09:14:24 +0000 (09:14 +0000)]
[user32]
- Implement UnregisterUserApiHook
- Fix a warning

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52651

9 years ago[win32k]
Giannis Adamopoulos [Tue, 12 Jul 2011 08:43:43 +0000 (08:43 +0000)]
[win32k]
- Implement NtUserRegisterUserApiHook and NtUserUnregisterUserApiHook

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52650

9 years ago[win32k]
Giannis Adamopoulos [Tue, 12 Jul 2011 08:37:40 +0000 (08:37 +0000)]
[win32k]
- Implement co_IntClientLoadLibrary that calls ClientLoadLibrary in user32

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52649

9 years ago[user32]
Giannis Adamopoulos [Tue, 12 Jul 2011 08:34:00 +0000 (08:34 +0000)]
[user32]
- Convert LOADUSERAPIHOOK macro to an inline function
- Implement ClientLoadLibrary callback from win32k

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52648

9 years ago[uxtheme]
Giannis Adamopoulos [Mon, 11 Jul 2011 22:29:33 +0000 (22:29 +0000)]
[uxtheme]
- Implement drawing non client scrollbars. This code is heavily based on code from wine and modified properly to use themes

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52645

9 years ago* Sync with recent trunk (r52637).
Amine Khaldi [Mon, 11 Jul 2011 19:40:43 +0000 (19:40 +0000)]
* Sync with recent trunk (r52637).

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52643

9 years ago[uxtheme]
Giannis Adamopoulos [Mon, 11 Jul 2011 18:23:44 +0000 (18:23 +0000)]
[uxtheme]
- Fix build

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52640

9 years ago[uxtheme]
Giannis Adamopoulos [Mon, 11 Jul 2011 18:17:11 +0000 (18:17 +0000)]
[uxtheme]
- After doing any drawing operation for the non client area, restore the previously opened theme. Fixes GetWindowTheme

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52639

9 years ago[uxtheme]
Giannis Adamopoulos [Mon, 11 Jul 2011 14:18:36 +0000 (14:18 +0000)]
[uxtheme]
- Really fix a comment

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52636

9 years ago[uxtheme]
Giannis Adamopoulos [Mon, 11 Jul 2011 13:53:58 +0000 (13:53 +0000)]
[uxtheme]
- Fix some comments

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52635

9 years ago[uxtheme]
Giannis Adamopoulos [Mon, 11 Jul 2011 13:38:05 +0000 (13:38 +0000)]
[uxtheme]
- Do not close hKey in query_reg_path. Noticed while testing our uxtheme in windows. Should be sent to wine

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52634

9 years ago[uxtheme]
Giannis Adamopoulos [Mon, 11 Jul 2011 13:28:20 +0000 (13:28 +0000)]
[uxtheme]
- Call UXTHEME_InitSystem when user api hooks are installed

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52633

9 years ago[uxtheme]
Giannis Adamopoulos [Mon, 11 Jul 2011 13:17:39 +0000 (13:17 +0000)]
[uxtheme]
- Move some definitions to a header file

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52632

9 years ago[win32k]
Giannis Adamopoulos [Mon, 11 Jul 2011 12:59:21 +0000 (12:59 +0000)]
[win32k]
-Add a hack to GreStretchBltMask to return TRUE when a dimension is 0. After some investigation it seems that windows returns TRUE in such a case but couldn't investigate more if this change is really correct. This hack is needed because a drawing operation in uxtheme is aborted when StretchBlt returns FALSE

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52631

9 years ago[CMAKE] Fix my mistake returning the original space, rather than the mapped area.
Art Yerkes [Mon, 11 Jul 2011 07:11:12 +0000 (07:11 +0000)]
[CMAKE] Fix my mistake returning the original space, rather than the mapped area.

svn path=/trunk/; revision=52629

9 years ago[NTOSKRNL]
Timo Kreuzer [Mon, 11 Jul 2011 03:36:29 +0000 (03:36 +0000)]
[NTOSKRNL]
Implement the "SLIST hack". It checks whether the access to the Next member of the first list item of an iSList caused the exception, this can happen, when a concurrent thread pops the first entry and frees its memory between the point where the address of the entry is loaded and the access to it. This is done before the call to MmAccessFault to handle the theoretical scenario of a guard page exception being triggered by the fault, which we don't want to be handled.
Currently only kernel mode is handled.

svn path=/trunk/; revision=52628

9 years ago[OSKITTCP]
Cameron Gutman [Mon, 11 Jul 2011 02:44:32 +0000 (02:44 +0000)]
[OSKITTCP]
- Fix a crash that occurs during BitTorrent downloads
- The official BitTorrent client works now

svn path=/trunk/; revision=52627

9 years ago[NTDLL]: Always compile your code before comitting, like my cat used to say.
Alex Ionescu [Mon, 11 Jul 2011 01:22:01 +0000 (01:22 +0000)]
[NTDLL]: Always compile your code before comitting, like my cat used to say.

svn path=/trunk/; revision=52626

9 years ago[NTDLL]: Reimplement RtlGetCurrentDirectory_U... I couldn't even understand what...
Alex Ionescu [Mon, 11 Jul 2011 01:13:34 +0000 (01:13 +0000)]
[NTDLL]: Reimplement RtlGetCurrentDirectory_U... I couldn't even understand what the old version was doing. This one is at least commented and makes more sense.

svn path=/trunk/; revision=52625

9 years ago[RTL]: RtlDetermineDosPathNameType_U Path is not optional. Checked build ASSERTs...
Alex Ionescu [Mon, 11 Jul 2011 00:47:44 +0000 (00:47 +0000)]
[RTL]: RtlDetermineDosPathNameType_U Path is not optional. Checked build ASSERTs if not present. Also, \\? is valid, not only \\., so this should fix a bunch of incorrect path determinations. Aren't there supposed to be unit tests for these things?!

svn path=/trunk/; revision=52624

9 years ago[RTL]: Clarify what RtlGetLongestNtPathLength returns instead of using "+9" as a...
Alex Ionescu [Mon, 11 Jul 2011 00:38:34 +0000 (00:38 +0000)]
[RTL]: Clarify what RtlGetLongestNtPathLength returns instead of using "+9" as a magic constant.

svn path=/trunk/; revision=52623

9 years ago[NTDLL] Merge LdrpResolveFullName and LdrpSearchPath and LdrpAllocateUnicodeString...
Alex Ionescu [Mon, 11 Jul 2011 00:25:26 +0000 (00:25 +0000)]
[NTDLL] Merge LdrpResolveFullName and LdrpSearchPath and LdrpAllocateUnicodeString from the LDR Rewrite branch. Not actually used yet since they use Rtl APIs that ReactOS does not implement. Guess what the next commits are going to be about.

svn path=/trunk/; revision=52622

9 years ago[NTDLL]: Cleanup and half-fix LdrpCheckForLoadedDll, including adding comments for...
Alex Ionescu [Mon, 11 Jul 2011 00:12:33 +0000 (00:12 +0000)]
[NTDLL]: Cleanup and half-fix LdrpCheckForLoadedDll, including adding comments for where it's broken. This uses RtlImageNtHeaderEx with much stringent checks as well.

svn path=/trunk/; revision=52621

9 years ago[RTL]: One day, Microsoft is going to stop using flags that are negatives. Fix boot...
Alex Ionescu [Mon, 11 Jul 2011 00:10:27 +0000 (00:10 +0000)]
[RTL]: One day, Microsoft is going to stop using flags that are negatives. Fix boot/etc.

svn path=/trunk/; revision=52620

9 years ago[WIN32CSR]
Rafal Harabien [Sun, 10 Jul 2011 22:40:43 +0000 (22:40 +0000)]
[WIN32CSR]
- Fix CSR hard error messages. Parameters are now converted to ANSI string which are expected by message format string.

svn path=/trunk/; revision=52619

9 years ago[NDK]: Add missing RtlImageNtHeaderEx flags.
Alex Ionescu [Sun, 10 Jul 2011 21:55:55 +0000 (21:55 +0000)]
[NDK]: Add missing RtlImageNtHeaderEx flags.
[RTL]: Implement RtlImageNtHeaderEx and make RtlImageNtHeader call it. This will result in much stricter (and correct) PE loading by default, and enable a flag which can do even stricter checks.
[NTDLL]: Export RtlImageNtHeaderEx (maybe NTOS should export it too, not sure).

svn path=/trunk/; revision=52618

9 years ago- Add more NT status messages. Few of them are used by new LDR. Contains patch by...
Rafal Harabien [Sun, 10 Jul 2011 19:47:45 +0000 (19:47 +0000)]
- Add more NT status messages. Few of them are used by new LDR. Contains patch by Thomas Faber.

svn path=/trunk/; revision=52617

9 years ago[NTOSKRNL/MM]
Jérôme Gardou [Sun, 10 Jul 2011 19:24:49 +0000 (19:24 +0000)]
[NTOSKRNL/MM]
- The initial region does not necessarily begins with the asked address, calculate remaining space acccordingly.

svn path=/trunk/; revision=52616

9 years ago[RTL]
Cameron Gutman [Sun, 10 Jul 2011 17:46:27 +0000 (17:46 +0000)]
[RTL]
- Revert r52612
- It came before its time ;)

svn path=/trunk/; revision=52615

9 years ago[NTOSKRNL/MM]
Jérôme Gardou [Sun, 10 Jul 2011 17:21:38 +0000 (17:21 +0000)]
[NTOSKRNL/MM]
- fix broken logic
- simplify calculation of remainig space to alter
- call ExFreePoolWithTag instead of ExFreePool
- return error on failure

svn path=/trunk/; revision=52614

9 years ago[NTDLL]
Timo Kreuzer [Sun, 10 Jul 2011 16:43:03 +0000 (16:43 +0000)]
[NTDLL]
add some stubs for amd64

svn path=/trunk/; revision=52613

9 years ago[RTL]
Cameron Gutman [Sun, 10 Jul 2011 16:33:23 +0000 (16:33 +0000)]
[RTL]
- Enable the proper implementation of RtlActivateActivationContextUnsafeFast

svn path=/trunk/; revision=52612

9 years ago[NTDLL]
Cameron Gutman [Sun, 10 Jul 2011 16:25:42 +0000 (16:25 +0000)]
[NTDLL]
- Fix memory corruption by reverting part of r52603

svn path=/trunk/; revision=52611

9 years ago[EVENTLOG]
Rafal Harabien [Sun, 10 Jul 2011 15:39:32 +0000 (15:39 +0000)]
[EVENTLOG]
- Fix MSVC warnings

svn path=/trunk/; revision=52610

9 years ago[SFC_OS]
Sylvain Petreolle [Sun, 10 Jul 2011 15:05:14 +0000 (15:05 +0000)]
[SFC_OS]
Implement SfcFileException, required by VBox Guest additions to install 3D support.

svn path=/trunk/; revision=52609

9 years ago[NTDLL/LDR] - Fix one more USHORT and -1 comparison. Patch by Thomas Faber
Rafal Harabien [Sun, 10 Jul 2011 15:02:00 +0000 (15:02 +0000)]
[NTDLL/LDR] - Fix one more USHORT and -1 comparison. Patch by Thomas Faber

svn path=/trunk/; revision=52608

9 years ago[NTDLL]: Fix parsing and buffer overflow in LdrpLoadDll. Add more debug prints, and...
Alex Ionescu [Sun, 10 Jul 2011 13:51:40 +0000 (13:51 +0000)]
[NTDLL]: Fix parsing and buffer overflow in LdrpLoadDll. Add more debug prints, and add some missing code (commented out) for later.

svn path=/trunk/; revision=52607

9 years ago[NTDLL/LDR]
Rafal Harabien [Sun, 10 Jul 2011 13:44:19 +0000 (13:44 +0000)]
[NTDLL/LDR]
- Fix CMake build
- Minor improvements
Path by Thomas Faber

svn path=/trunk/; revision=52606

9 years ago[AFD]
Jérôme Gardou [Sun, 10 Jul 2011 13:28:47 +0000 (13:28 +0000)]
[AFD]
  - fix MSVC build

svn path=/trunk/; revision=52605

9 years ago[NTDLL]: Actually delete the file.
Alex Ionescu [Sun, 10 Jul 2011 13:23:54 +0000 (13:23 +0000)]
[NTDLL]: Actually delete the file.

svn path=/trunk/; revision=52604

9 years ago[NTDLL]: More fixes to the PE parsing code.
Alex Ionescu [Sun, 10 Jul 2011 13:23:19 +0000 (13:23 +0000)]
[NTDLL]: More fixes to the PE parsing code.
[NTDLL]: Move and fix LdrUnloadDll to ldrapi.c
[NTDLL]: Remove yet another cruft file.

svn path=/trunk/; revision=52603

9 years ago[NTDLL/LDR]
Rafal Harabien [Sun, 10 Jul 2011 11:49:52 +0000 (11:49 +0000)]
[NTDLL/LDR]
- Don't use -1 for USHORT LDR_DATA_TABLE_ENTRY::LoadCount. When comparing ((USHORT)-1) == 0xFFFF vs (int)-1 it ends in comparison 0xFFFF vs 0xFFFFFFFF with is wrong. Fixes shutdown from shell
See issue #6345 for more details.

svn path=/trunk/; revision=52601

9 years ago[AFD]
Cameron Gutman [Sun, 10 Jul 2011 08:25:31 +0000 (08:25 +0000)]
[AFD]
- Fix broken TDI address functions which were causing subtle memory corruptions, wasted memory, and incorrect or uninitialized values of the address length field
- Remove some buggy code that wasn't used anywhere
- General refactoring to reduce code duplication
- Handle an invalid address type properly

svn path=/trunk/; revision=52600

9 years ago[KERNEL32]: Fix build
Cameron Gutman [Sun, 10 Jul 2011 07:15:26 +0000 (07:15 +0000)]
[KERNEL32]: Fix build

svn path=/trunk/; revision=52598

9 years ago[AFD]
Cameron Gutman [Sun, 10 Jul 2011 02:23:12 +0000 (02:23 +0000)]
[AFD]
- Probe and lock pages with the KernelMode access mode instead of Irp->RequestorMode (UserMode) since we're dealing with memory that we allocated in kernel-mode
- Fixes getpeername() and HTTPS browsing in Firefox

svn path=/trunk/; revision=52597

9 years ago[NTDLL]: More attempts at fixing up the loader, this time in the PE side of things.
Alex Ionescu [Sun, 10 Jul 2011 02:14:29 +0000 (02:14 +0000)]
[NTDLL]: More attempts at fixing up the loader, this time in the PE side of things.

svn path=/trunk/; revision=52596

9 years ago[NTDLL]: Multiple fixes and cleanups to several loader functions in ldrutils.
Alex Ionescu [Sun, 10 Jul 2011 01:34:19 +0000 (01:34 +0000)]
[NTDLL]: Multiple fixes and cleanups to several loader functions in ldrutils.
[NTDLL]: Use original symbolic function names instead of modified ones.
[NTDLL]: Fixup some incorrect flag and typedef definitions with correct ones.
[NTDLL]: Tag functions which seem broken/lacking in functionality/very different from the rest of the code the LDR rewrite was based on.

svn path=/trunk/; revision=52595

9 years ago[NTDLL/LDR]
Rafal Harabien [Sat, 9 Jul 2011 22:26:23 +0000 (22:26 +0000)]
[NTDLL/LDR]
- Fix build (not sure if its right place for IMAGE_LOADER_FLAGS_*)
- Remove unused label

svn path=/trunk/; revision=52593

9 years ago[NTDLL/LDR]
Rafal Harabien [Sat, 9 Jul 2011 21:48:59 +0000 (21:48 +0000)]
[NTDLL/LDR]
- Fix CMake build
- Don't override failure status in LdrGetDllHandleEx
- Minor improvements
Fixes loading of mshtml.tlb in 2nd stage. Patch by Thomas Faber

svn path=/trunk/; revision=52591

9 years ago[BZIP2]
Rafal Harabien [Sat, 9 Jul 2011 21:07:30 +0000 (21:07 +0000)]
[BZIP2]
- Fix MSVC build

svn path=/trunk/; revision=52590

9 years ago[FRAMEBUF_NEW]
Rafal Harabien [Sat, 9 Jul 2011 20:33:47 +0000 (20:33 +0000)]
[FRAMEBUF_NEW]
- Fix MSVC build

svn path=/trunk/; revision=52589

9 years ago[NTDLL]: Fix busted up LdrpCreateDllSection function, checking for the wrong things...
Alex Ionescu [Sat, 9 Jul 2011 20:33:29 +0000 (20:33 +0000)]
[NTDLL]: Fix busted up LdrpCreateDllSection function, checking for the wrong things completely for Safer support, and also messing up the failure/success paths. Based on a find by arty.

svn path=/trunk/; revision=52588

9 years ago[NORMALIZ]
Rafal Harabien [Sat, 9 Jul 2011 19:18:49 +0000 (19:18 +0000)]
[NORMALIZ]
- Don't build normaliz.dll - it's Win Vista library. It didn't even work because exports was redirected to commented out kernel32 exports. GCC ignored it but MSVC returns error in such case.

svn path=/trunk/; revision=52587

9 years ago[NTOSKRNL]
Timo Kreuzer [Sat, 9 Jul 2011 19:15:34 +0000 (19:15 +0000)]
[NTOSKRNL]
Update TRAP_ENTRY macro to generate debugging information. Now WinDbg knows how to deal with the trap functions and also shows the user mode back traces.

svn path=/trunk/; revision=52586

9 years ago[NTDLL]: Reimplemnt LdrDisableThreadCalloutsForDll using new loader APIS.
Alex Ionescu [Sat, 9 Jul 2011 16:15:43 +0000 (16:15 +0000)]
[NTDLL]: Reimplemnt LdrDisableThreadCalloutsForDll using new loader APIS.
[NTDLL]: Fix LdrpInitializeProcess to use new loader relocation API instead of LdrRelocateImage. Warn if an EXE gets relocated since this was never supported in ReactOS.
[NTDLL]: Move APIs into ldrapi.c and delete 3 leftover cruft files.
This is the extent of my review for the moment. There are still many problems with the loader. It should've been tested/put in a branch. I found these 25 bugs in less than a day. Other problems remaining are missing SEH around loader lock, not too sure if the cookie generation is correct, cookies are ULONG_PTR not ULONGs, and haven't checked the PE loading code yet (only reviewed ldrapi.c).

svn path=/trunk/; revision=52585

9 years ago[NTDLL]: Some more misc. cleanups and extra output.
Alex Ionescu [Sat, 9 Jul 2011 15:32:36 +0000 (15:32 +0000)]
[NTDLL]: Some more misc. cleanups and extra output.

svn path=/trunk/; revision=52584

9 years ago[NTDLL]: LdrFindEntryForAddress should cehck EntryInProgress first. Also add missing...
Alex Ionescu [Sat, 9 Jul 2011 14:52:07 +0000 (14:52 +0000)]
[NTDLL]: LdrFindEntryForAddress should cehck EntryInProgress first. Also add missing dprint.
[NTDLL]: LdrVerifyImageMatchesCheckSum does not actually do the check if the FileHandle is ORed with 1 (this is an optimization for KnownDLLs). Also, use EndOfFile.LowPart for the checksum, not ViewSize.
[NTDLL]: LdrpGetProcedureAddress: fix overflows, incorrect constants, incorrect memcopy call, and only run init routines if the thunk was actually snapped.

svn path=/trunk/; revision=52583

9 years ago[NTOSKRNL]
Timo Kreuzer [Sat, 9 Jul 2011 14:15:47 +0000 (14:15 +0000)]
[NTOSKRNL]
In MmDbgCopyMemory do physical memory copy, if the virtual target address is valid, but not writable. Fixes Step-Over on user mode addresses with WinDbg (can write break points now)

svn path=/trunk/; revision=52582

9 years ago[NTDLL]: Fix multiple levels of fail in LdrGetDllHandleEx (returning with lock held...
Alex Ionescu [Sat, 9 Jul 2011 13:37:47 +0000 (13:37 +0000)]
[NTDLL]: Fix multiple levels of fail in LdrGetDllHandleEx (returning with lock held, leaking memory, using NULL pointers, using magic flags, missing ASSERTs, buffer overflows, usage of incorrect constants, ignoring status failures, lack of varaible initialization, incorrect string initialization).

svn path=/trunk/; revision=52581

9 years ago[CMAKE]
Jérôme Gardou [Sat, 9 Jul 2011 11:17:12 +0000 (11:17 +0000)]
[CMAKE]
  - fix typo

svn path=/trunk/; revision=52580

9 years ago[WLANSVC]
Eric Kohl [Sat, 9 Jul 2011 10:41:55 +0000 (10:41 +0000)]
[WLANSVC]
Set status SERVICE_STOPPED when the service has been stopped.

svn path=/trunk/; revision=52579

9 years ago[CMAKE] Sidesetup overloading nonpaged pool with big slabs of dwarf data.
Art Yerkes [Sat, 9 Jul 2011 09:58:02 +0000 (09:58 +0000)]
[CMAKE] Sidesetup overloading nonpaged pool with big slabs of dwarf data.

svn path=/trunk/; revision=52578

9 years ago[NTDLL/LDR]
Aleksey Bragin [Fri, 8 Jul 2011 22:32:48 +0000 (22:32 +0000)]
[NTDLL/LDR]
- Comment out the actctx redirection check because it's placed wrongly. This should fix cases when a DLL is being loaded twice or more times for the same process. Spotted by Rafal Harabien.

svn path=/trunk/; revision=52577

9 years ago[NTDLL]: Simplify LdrLockLoaderLock, fix its prototype, add an ASSERT, move cookie...
Alex Ionescu [Fri, 8 Jul 2011 21:19:38 +0000 (21:19 +0000)]
[NTDLL]: Simplify LdrLockLoaderLock, fix its prototype, add an ASSERT, move cookie generation into its own inline.

svn path=/trunk/; revision=52576

9 years ago[NTDLL]: Fix LdrUnlockLoaderLock bugs. 4x10000$.
Alex Ionescu [Fri, 8 Jul 2011 21:07:31 +0000 (21:07 +0000)]
[NTDLL]: Fix LdrUnlockLoaderLock bugs. 4x10000$.

svn path=/trunk/; revision=52575

9 years ago[NTDLL/LDR]
Rafal Harabien [Fri, 8 Jul 2011 19:42:53 +0000 (19:42 +0000)]
[NTDLL/LDR]
- Use \\KnownDlls\\KnownDllPath instead of \\KnownDlls\\KnownDlls to check known dlls patch (spotted by Thomas Faber)
- Assume known dlls are in system32 if \\KnownDlls exists but KnownDllPath not

svn path=/trunk/; revision=52574

9 years ago[IP]
Cameron Gutman [Fri, 8 Jul 2011 16:34:49 +0000 (16:34 +0000)]
[IP]
- Complete waiting requests upon socket error
- Fixes connect() stall forever if the remote side is not listening

svn path=/trunk/; revision=52572

9 years ago[CMAKE]
Amine Khaldi [Fri, 8 Jul 2011 11:16:26 +0000 (11:16 +0000)]
[CMAKE]
* Add yet another awesome rossym/kdbg feature: struct printing using the command "dt". Brought to you by the Arty.

svn path=/trunk/; revision=52571

9 years ago[CMAKE]
Amine Khaldi [Fri, 8 Jul 2011 11:14:10 +0000 (11:14 +0000)]
[CMAKE]
* Disable stdcall fixup for executables.

svn path=/trunk/; revision=52570

9 years ago[CMAKE]
Timo Kreuzer [Fri, 8 Jul 2011 10:01:43 +0000 (10:01 +0000)]
[CMAKE]
Improve configure.cmd

svn path=/trunk/; revision=52569

9 years ago[NDK]
Timo Kreuzer [Fri, 8 Jul 2011 09:25:50 +0000 (09:25 +0000)]
[NDK]
Fix LPCP_PORT_OBJECT definition

svn path=/trunk/; revision=52568