reactos.git
13 years ago[CMAKE]
Amine Khaldi [Fri, 15 Apr 2011 22:49:50 +0000 (22:49 +0000)]
[CMAKE]
* Remove inflib from build. It's been superseded by newinflib.
* Rename newinflibhost and newinflib targets into inflibhost and inflib respectively.
* Update mkhive and usetup to link to the new targets.

svn path=/branches/cmake-bringup/; revision=51362

13 years ago[CMAKE]
Amine Khaldi [Fri, 15 Apr 2011 22:41:41 +0000 (22:41 +0000)]
[CMAKE]
* Back out r51360. The export in question is in ole32 (DllGetClassObject). This fixes comcat msvc build.

svn path=/branches/cmake-bringup/; revision=51361

13 years ago[CMAKE]
Amine Khaldi [Fri, 15 Apr 2011 22:36:17 +0000 (22:36 +0000)]
[CMAKE]
- Silence a linker warning about DllInitialize.

svn path=/branches/cmake-bringup/; revision=51360

13 years ago[CMAKE]
Amine Khaldi [Fri, 15 Apr 2011 22:34:20 +0000 (22:34 +0000)]
[CMAKE]
* Empty CMAKE_C_STANDARD_LIBRARIES_INIT

svn path=/branches/cmake-bringup/; revision=51359

13 years ago[CMAKE]
Amine Khaldi [Thu, 14 Apr 2011 12:50:32 +0000 (12:50 +0000)]
[CMAKE]
* Sync with trunk r51339.
* Move the static lib creation command from the toolchain file to gcc.cmake

svn path=/branches/cmake-bringup/; revision=51340

13 years ago[TRANSLATIONS]
Amine Khaldi [Thu, 14 Apr 2011 12:13:38 +0000 (12:13 +0000)]
[TRANSLATIONS]
Igor Paliychuk (mansonigor at gmail dot com):
* Update Ukrainian localization.
* Leftover from r51055: Update reactos.exe strings and resource sizes.
* Fix displaying of doskey localizations.

svn path=/trunk/; revision=51338

13 years ago[CMAKE]
Amine Khaldi [Thu, 14 Apr 2011 11:55:40 +0000 (11:55 +0000)]
[CMAKE]
- Reflect the recent user32_apitest changes. Please consider updating the cmake files when you alter the rbuild files in the future.

svn path=/trunk/; revision=51336

13 years ago[RTL]
Aleksey Bragin [Thu, 14 Apr 2011 09:57:08 +0000 (09:57 +0000)]
[RTL]
- Properly check parameters in RtlFindActivationContextSectionString. Almost the same as Wine did, but factored out into a standalone function, improved undocumented flags checks and allowing null data pointer in certain cases.

svn path=/trunk/; revision=51333

13 years ago[Win32k]
Michael Martin [Thu, 14 Apr 2011 01:21:38 +0000 (01:21 +0000)]
[Win32k]
- Fix implementation of message callbacks,  now callbacks can be called across processes.
- Fix some comments.

svn path=/trunk/; revision=51332

13 years agoremove obsolete object handling
Matthias Kupfer [Wed, 13 Apr 2011 20:20:16 +0000 (20:20 +0000)]
remove obsolete object handling

svn path=/trunk/; revision=51331

13 years ago[explorer]
Giannis Adamopoulos [Wed, 13 Apr 2011 18:25:58 +0000 (18:25 +0000)]
[explorer]
- Use the shell default auto-arrangement positioning. Aloow using custom positioning when configured. This fixes the positioning of icons of the desktop to look like windows

svn path=/trunk/; revision=51330

13 years ago[CMAKE]
Amine Khaldi [Wed, 13 Apr 2011 08:39:17 +0000 (08:39 +0000)]
[CMAKE]
* Sync with trunk r51323.

svn path=/branches/cmake-bringup/; revision=51329

13 years ago[GDI32]
Rafal Harabien [Wed, 13 Apr 2011 08:14:37 +0000 (08:14 +0000)]
[GDI32]
* DPtoLP/LPtoDP functions should return TRUE even if they get 0 or less points or if pointer to points is invalid. See gdi32:DPtoLP apitest.
* Fixes 24 gdi32:DPtoLP apitests.

svn path=/trunk/; revision=51328

13 years ago[USB\USBEHCI]
Michael Martin [Wed, 13 Apr 2011 04:48:50 +0000 (04:48 +0000)]
[USB\USBEHCI]
- Implement ExecuteTransfer to replace SubmitTransfer.
- Start implentation for BulkTransfers and needed DMA. This needs much more work to be done correctly. We will get to it.
- Implement URB_FUNCTION_CLASS_INTERFACE.
- Add comments.
Change 3 of 3.

svn path=/trunk/; revision=51327

13 years ago[USB\USBEHCI]
Michael Martin [Wed, 13 Apr 2011 04:43:25 +0000 (04:43 +0000)]
[USB\USBEHCI]
- For common buffer memory, only allocate one page and allocate more as needed. This implementation will most likely be replaced with janderwalds.
- Use a safecount while attempting to stop and start the controller, so that an error can be displayed vice doing endless loop for controllers that are misbehaving.
- Reorganize a few structuers and remove members of structures that are not used.
- Add comments for some of the DirectCall Interface Functions.
Change 2 of 3.

svn path=/trunk/; revision=51326

13 years ago[USB\USBEHCI]
Michael Martin [Wed, 13 Apr 2011 04:33:14 +0000 (04:33 +0000)]
[USB\USBEHCI]
- Fix linking of QueueHeads. Implement LinkQueueHeadToCompletedList and CleanupAsyncList. These functions are used to software link the completed queueheads to a completed list. Only after the driver handshakes with the controller can this memory be freed.
Fix a few incorrect values for QueueHead.
- EhciDefferedRoutine: Implement handling of completed QueueHeads by removing them from the AnsycList and setting any errors for failure.
- Reserved a QueueHead that will always be in the AsyncList Address Register. By setting it as the Head of Reclamation the controller can know when it has reached the end of the QueueHead list.
- Remove all code from FdoDispatchInternalDeviceControl. This should never be called by upper level drivers.
Change 1 of 3.

svn path=/trunk/; revision=51325

13 years ago[USBEHCI]
Johannes Anderwald [Wed, 13 Apr 2011 01:37:14 +0000 (01:37 +0000)]
[USBEHCI]
- Re-implement DMA buffer routines. It is now faster and consumes less memory overhead per allocated memory block.
- IoGetDeviceProperty needs a PDO
- Add few comments
- No need to clear buffer twice in CreateQueueHead / CreateDescriptor

svn path=/branches/cmake-bringup/; revision=51324

13 years ago[shell32]
Giannis Adamopoulos [Tue, 12 Apr 2011 20:59:50 +0000 (20:59 +0000)]
[shell32]
- Properly arrange icons in explorer shell view window. This also fixes navigating in files with keyboard arrows

svn path=/trunk/; revision=51323

13 years ago[SHELL32]
Rafal Harabien [Tue, 12 Apr 2011 18:45:06 +0000 (18:45 +0000)]
[SHELL32]
* Return 1 in WM_ERASEBKGND when desktop is painted
* Fix background for desktop icons and their labels
* Moreover fixes explorer_new background

svn path=/trunk/; revision=51322

13 years ago[COMCTL32]
Rafal Harabien [Tue, 12 Apr 2011 18:38:38 +0000 (18:38 +0000)]
[COMCTL32]
* Sync listview to Wine 1.3.17
* Set background and text color before calling DrawFocusRect. Those colors are used by monochrome brush during painting. Tested this function in Windows and our implementation is correct. Wine has DrawFocusRect not correctly implemented and that's why they don't see this bug. Should be sent to wine (tm).

svn path=/trunk/; revision=51321

13 years ago[NPFS]
Eric Kohl [Mon, 11 Apr 2011 17:52:06 +0000 (17:52 +0000)]
[NPFS]
PATCH: Arty's fixes based on CMake branch testing. Just the NPFS code.
See issue #6103 for more details.

svn path=/trunk/; revision=51320

13 years ago[RAPPS]
Aleksey Bragin [Mon, 11 Apr 2011 17:36:44 +0000 (17:36 +0000)]
[RAPPS]
- Swedish translation by Jan Blomqvist-Kinander.

svn path=/trunk/; revision=51319

13 years ago[WIN32CSR]
Aleksey Bragin [Mon, 11 Apr 2011 17:03:20 +0000 (17:03 +0000)]
[WIN32CSR]
- Swedish translation by Jan Blomqvist-Kinander.

svn path=/trunk/; revision=51318

13 years ago[SNDVOL32]
Gabriel Ilardi [Mon, 11 Apr 2011 12:26:16 +0000 (12:26 +0000)]
[SNDVOL32]
Italian and Spanish translation updates.

svn path=/trunk/; revision=51317

13 years ago[WIN32CSR]
Gabriel Ilardi [Mon, 11 Apr 2011 10:56:45 +0000 (10:56 +0000)]
[WIN32CSR]
Italian translation of command prompt's window title

svn path=/trunk/; revision=51316

13 years ago[Win32k]
James Tabor [Mon, 11 Apr 2011 03:24:14 +0000 (03:24 +0000)]
[Win32k]
- PATCH: Arty's fixes based on CMake branch testing. Just the timer code. See bug 6103.

svn path=/trunk/; revision=51315

13 years ago[ADVAPI32]
Rafal Harabien [Sun, 10 Apr 2011 21:24:49 +0000 (21:24 +0000)]
[ADVAPI32]
* Copy RegQueryValueExA from Wine. Fixes 24 winetests fails which appeared after r51222. They are caused by calling RegQueryValueExA with buffer size set to large value. Old implementation was allocating new buffer with specified size (it was failing) and using unicode function. New implementation use given buffer size only when coping data.
See issue #6105 for more details.

svn path=/trunk/; revision=51314

13 years ago[NETAPI32]
Eric Kohl [Sun, 10 Apr 2011 15:42:55 +0000 (15:42 +0000)]
[NETAPI32]
NetUserModalsGet failed if the domain SID returned by LsaQueryInformationPolicy was NULL. Handle the NULL SID case correctly.
See issue #6102 for more details.

svn path=/trunk/; revision=51313

13 years ago[user32_apitest]
Giannis Adamopoulos [Sun, 10 Apr 2011 15:14:15 +0000 (15:14 +0000)]
[user32_apitest]
- Add some more tests for SetCursorPos

svn path=/trunk/; revision=51312

13 years agoFix build. The translation patch was outdated.
Olaf Siejka [Sun, 10 Apr 2011 14:55:11 +0000 (14:55 +0000)]
Fix build. The translation patch was outdated.

svn path=/trunk/; revision=51311

13 years agoRadek Liska <radekliska AT gmail DOT com>
Matthias Kupfer [Sun, 10 Apr 2011 13:19:01 +0000 (13:19 +0000)]
Radek Liska <radekliska AT gmail DOT com>
- Czech translations for sndrec32 and sndvol32.
- See issue #6098 for details.

svn path=/trunk/; revision=51310

13 years ago[SHELL32]
Johannes Anderwald [Sun, 10 Apr 2011 10:44:05 +0000 (10:44 +0000)]
[SHELL32]
- Fix control style of property dialogs
- Patch Edijs Kolesnikovics, terminedijs@yahoo.com, irc:Edijus

svn path=/trunk/; revision=51309

13 years ago[WIN32CSR]
Olaf Siejka [Sun, 10 Apr 2011 08:49:31 +0000 (08:49 +0000)]
[WIN32CSR]
Polish translation of Command prompt window title

svn path=/trunk/; revision=51308

13 years ago[DOSKEY/SNDREC32]
Amine Khaldi [Sat, 9 Apr 2011 21:02:25 +0000 (21:02 +0000)]
[DOSKEY/SNDREC32]
- Activate polish translations. Patch by Adam Stachowicz.

svn path=/trunk/; revision=51307

13 years ago- Fix build
James Tabor [Sat, 9 Apr 2011 20:41:04 +0000 (20:41 +0000)]
- Fix build

svn path=/trunk/; revision=51306

13 years ago[Win32k]
James Tabor [Sat, 9 Apr 2011 20:32:52 +0000 (20:32 +0000)]
[Win32k]
- Revert parts of 51283, thanks to Giannis for setting me straight on SetCursorPos and without breaking setting the Track window for TrackMouseEvent. Pass the new SetCursorPos, and wine test_TrackMouseEvent and input test_mouse_ll_hook tests.

svn path=/trunk/; revision=51305

13 years agoadd some tests for GetKeyState and SetCursorPos
Giannis Adamopoulos [Sat, 9 Apr 2011 19:12:49 +0000 (19:12 +0000)]
add some tests for GetKeyState and SetCursorPos

svn path=/trunk/; revision=51304

13 years ago[CMAKE]
Amine Khaldi [Sat, 9 Apr 2011 17:20:36 +0000 (17:20 +0000)]
[CMAKE]
- Disable incremental linking and edit-and-continue.

svn path=/branches/cmake-bringup/; revision=51303

13 years ago[CMAKE]
Amine Khaldi [Sat, 9 Apr 2011 16:46:28 +0000 (16:46 +0000)]
[CMAKE]
* Fix a typo.

svn path=/branches/cmake-bringup/; revision=51302

13 years ago[CMAKE]
Amine Khaldi [Sat, 9 Apr 2011 16:37:27 +0000 (16:37 +0000)]
[CMAKE]
* msvc compatibility fixes for usbehci.

svn path=/branches/cmake-bringup/; revision=51301

13 years ago[EXPLORER_NEW]
Johannes Anderwald [Sat, 9 Apr 2011 16:34:15 +0000 (16:34 +0000)]
[EXPLORER_NEW]
- Use ReactOS registry key for ReactOS features
- Patch by Edijus KolesnikoviÄ\8ds, terminedijs@yahoo.com

svn path=/trunk/; revision=51300

13 years ago[CMAKE]
Amine Khaldi [Sat, 9 Apr 2011 16:01:04 +0000 (16:01 +0000)]
[CMAKE]
- Add USB modules to build.

svn path=/branches/cmake-bringup/; revision=51299

13 years ago[SNDVOL32]
Johannes Anderwald [Sat, 9 Apr 2011 15:28:46 +0000 (15:28 +0000)]
[SNDVOL32]
- Remove 'E'

svn path=/trunk/; revision=51298

13 years agoPartial revert, as explained on ML. Sry...
Daniel Reimer [Sat, 9 Apr 2011 15:21:22 +0000 (15:21 +0000)]
Partial revert, as explained on ML. Sry...

svn path=/trunk/; revision=51297

13 years ago- Sync all resource files with the English one.
Daniel Reimer [Sat, 9 Apr 2011 14:46:37 +0000 (14:46 +0000)]
- Sync all resource files with the English one.
- Translate the new Dialog in the German one.
- Normally we use BEGIN and END, no {}
- DIALOG -> DIALOGEX

svn path=/trunk/; revision=51296

13 years ago[win32k]
Giannis Adamopoulos [Sat, 9 Apr 2011 12:44:45 +0000 (12:44 +0000)]
[win32k]
- Rewrite GetKeyState based on wine. Now it's results are based on whether or nor the message queue has processed a keyboard message and not the actual state of the keyboard.c
- TODO: ensure it works corectly and use this implementation in most other places in win32k when we need to check the state of a key. To ensure nothing breaks, this change affects only GetKeyState

svn path=/trunk/; revision=51295

13 years agoUpdated Czech translations for ping, charmap, reactos, usetup, console, desk and...
Kamil Hornicek [Sat, 9 Apr 2011 12:18:34 +0000 (12:18 +0000)]
Updated Czech translations for ping, charmap, reactos, usetup, console, desk and shell32 by Radek Liska (radekliska at gmail dot com) with some subtle modifications by me.

See issue #6067 for more details.

svn path=/trunk/; revision=51294

13 years agoCommand Prompt with translated window title
Matthias Kupfer [Sat, 9 Apr 2011 12:01:36 +0000 (12:01 +0000)]
Command Prompt with translated window title
- German translation added
- other languages need to be translated (.rc files prepared)

svn path=/trunk/; revision=51293

13 years ago[SNDVOL32]
Johannes Anderwald [Sat, 9 Apr 2011 10:36:25 +0000 (10:36 +0000)]
[SNDVOL32]
- Fix more subtle bugs:
- Check with long line name if the current connection is activated when adding lines to dialog or when adding lines to the preferences dialog
- Use the temporary preferences context when writing the line settings
- Don't destroy the mixer when the preferences dialog is closed. the new mixer will be used for the application when the preferences are changed
- Pass the current selected line to the preferences dialog

svn path=/trunk/; revision=51292

13 years ago[Win32k]
Michael Martin [Sat, 9 Apr 2011 07:19:31 +0000 (07:19 +0000)]
[Win32k]
- Only call hooks and check if Win32Thread is in cleanup if the windows procedure is being called.
- Set DispatchingListEntry.Flink to NULL. The real fix for bug 5580. This bug may be the cause of other crashes experienced by users just before loading desktop. Found by rafalh.

svn path=/trunk/; revision=51291

13 years ago[Win32k]
James Tabor [Sat, 9 Apr 2011 07:08:17 +0000 (07:08 +0000)]
[Win32k]
- Added more missed mouse injection flag and extra data being passed in and from set cursor position. Wine mouse low level hook msg tests now see it and check the validity of the hook message.

svn path=/trunk/; revision=51290

13 years ago[SNDVOL32]
Sylvain Petreolle [Fri, 8 Apr 2011 23:18:20 +0000 (23:18 +0000)]
[SNDVOL32]
Redraw window with correct size.
Window height was growing after changing preferences.

svn path=/trunk/; revision=51289

13 years ago[SNDVOL32]
Sylvain Petreolle [Fri, 8 Apr 2011 22:40:12 +0000 (22:40 +0000)]
[SNDVOL32]
Update french translation.

svn path=/trunk/; revision=51288

13 years ago[SNDVOL32]
Johannes Anderwald [Fri, 8 Apr 2011 22:17:18 +0000 (22:17 +0000)]
[SNDVOL32]
- Fix mute switch control style

svn path=/trunk/; revision=51287

13 years ago[SNDVOL32]
Johannes Anderwald [Fri, 8 Apr 2011 22:04:41 +0000 (22:04 +0000)]
[SNDVOL32]
- Always write line states configuration values in one step
- Fixes the problem when old line state settings were not present
- Advantage is that it is faster and sndvol32 now works in ReactOS

svn path=/trunk/; revision=51286

13 years ago[DOSKEY]
Olaf Siejka [Fri, 8 Apr 2011 21:57:32 +0000 (21:57 +0000)]
[DOSKEY]
- Polish translation by Adam "Saibman" Stachowicz

[SNDREC32]
- Polish translation by Adam "Saibman" Stachowicz

[SNDVOL32]
- Polish translation update by me

[TRANSLATION]
- Polish translation fixes (spelling, typos, grammar) and updates on multiple modules by Adam "Saibman" Stachowicz, few small corrections by me.

See issue #6087 for more details.

svn path=/trunk/; revision=51285

13 years ago[SNDVOL32]
Johannes Anderwald [Fri, 8 Apr 2011 21:09:07 +0000 (21:09 +0000)]
[SNDVOL32]
- Add english resources for sndvol32
- Enjoy ;)

svn path=/trunk/; revision=51284

13 years ago[User32|Win32k]
James Tabor [Fri, 8 Apr 2011 19:29:15 +0000 (19:29 +0000)]
[User32|Win32k]
- Fix TrackMouseEvent! Keyboard and Mouse pass all the right flags. Update to accelerator code. Fixed recursion in global hooks. Hack-implement GetMouseMovePointsEx due to slack time and boredom, it passes the input tests but does nothing. Pass all the test_TrackMouseEvent!!! test_accelerators and test_menu_messages work too, so far no hangs.

svn path=/trunk/; revision=51283

13 years ago[Win32k]
James Tabor [Fri, 8 Apr 2011 18:48:28 +0000 (18:48 +0000)]
[Win32k]
- Fix crash in msg test_interthread_message test. Noticed it once and not sure how to track it.

svn path=/trunk/; revision=51282

13 years ago[NTDLL]
Aleksey Bragin [Fri, 8 Apr 2011 17:49:49 +0000 (17:49 +0000)]
[NTDLL]
- Fix incorrect prototypes and partially implement fast unsafe versions of activation context activation/deactivation, however disable them for now, until the new loader is in place.
- Fix their usage in the new loader code, which by mistake (which got copypasted into three other places) was passing a totally empty activation context to the activate function.

svn path=/trunk/; revision=51281

13 years ago[CMAKE]
Amine Khaldi [Fri, 8 Apr 2011 17:30:18 +0000 (17:30 +0000)]
[CMAKE]
- Ensure that we index the static libs in *nix environments.

svn path=/branches/cmake-bringup/; revision=51280

13 years ago[NTOSKRNL]
Timo Kreuzer [Fri, 8 Apr 2011 12:30:33 +0000 (12:30 +0000)]
[NTOSKRNL]
ExInitializePushLock takes a PEX_PUSH_LOCK as parameter, do it the same in the inline version instead of casting to PULONG_PTR everywhere

svn path=/trunk/; revision=51278

13 years ago[KERNEL32]
Aleksey Bragin [Fri, 8 Apr 2011 09:21:41 +0000 (09:21 +0000)]
[KERNEL32]
- Zero-initialize base address in BasepLoadLibraryAsDatafile. Should fix 2nd stage problems.
- Add a trace debugprint, silented by default.
See issue #6092 for more details.

svn path=/trunk/; revision=51277

13 years ago[KMTEST]
Aleksey Bragin [Fri, 8 Apr 2011 08:35:48 +0000 (08:35 +0000)]
[KMTEST]
- Thomas Faber: Reset test results before starting a new FsRtl test.
See issue #6083 for more details.

svn path=/trunk/; revision=51276

13 years ago[Win32k]
Michael Martin [Thu, 7 Apr 2011 23:57:00 +0000 (23:57 +0000)]
[Win32k]
- co_IntSendMessageWithCallBack: Insert the message into the messagequeue before attempting to wake the queue. Probably fixes bug 5580.
- Remove the use of MSQ_SENTNOWAIT that was used to determine if messagequeues needed dereferencing. Instead use the SenderQueue member of the message.
- Do not close the NewMessagesHandle member of the messagequeue in IntDereferenceMessageQueue.
The last reference on a messagequeue could be released by a thread belonging to a process other than the on that created the handle.
Also the creating process could already be long gone. Instead close this handle in MsqDestroyMessageQueue which is in the thread/process that created the handle. Problem noticed by smiley.
- Revert change done in 51254. James you are indeed correct.
Testing shows that the WM_PARENTNOTIFY message is not sent when the program is exiting.

svn path=/trunk/; revision=51275

13 years ago[SNDVOL32]
Johannes Anderwald [Thu, 7 Apr 2011 21:31:21 +0000 (21:31 +0000)]
[SNDVOL32]
- Implement retrieving current volume level and mute state and set the dialog controls on startup
- Remove last line separator from GUI
- Implement updating slider / switch control when another application modifies volume settings
- Implement writing current selected lines settings into registry when the preference dialog is closed
- Implement helper functions which receive / set volume level
- Sndvol32 is now fully functional and has been tested in Windows XP SP3
- TODO: implement support for setting volume balance (left - right slider)
- TODO: Resources have not yet been commited

svn path=/trunk/; revision=51274

13 years ago[CMAKE]
Jérôme Gardou [Thu, 7 Apr 2011 14:11:36 +0000 (14:11 +0000)]
[CMAKE]
We provide everything (headers, libraries, executables...), so tell it to cmake
[CRT]
The crt library must provide a and w version of the functions and not rely to _UNICODE being set or not

svn path=/branches/cmake-bringup/; revision=51273

13 years ago[KERNEL32]
Aleksey Bragin [Wed, 6 Apr 2011 21:49:04 +0000 (21:49 +0000)]
[KERNEL32]
- Finish the ldr.c rewrite. Properly implement LoadLibraryExW (which contained some good code pieces added by Alex). Implement BasepLoadLibraryAsDatafile, however it doesn't support redirection yet and a call to load alternate resource module is commented out (it's totally absent in the existing ntdll/ldr API now).
- Mark GetDllLoadPath as deprecated, should be removed when SearchPathW is rewritten (or at least, reviewed). The new function to use is BasepGetDllPath.

svn path=/trunk/; revision=51272

13 years ago[SNDVOL32]
Johannes Anderwald [Wed, 6 Apr 2011 21:05:05 +0000 (21:05 +0000)]
[SNDVOL32]
- Implement loading of resources and parsing the dialog template in memory
- Store the created windows in an array
- Implement destroying of controls when mixer is changed / line selection is altered
- Implement generating layout for each new line
- Implement setting line name
- Resources have not yet been commited
- Sndvol32 is not yet functional

svn path=/trunk/; revision=51271

13 years ago[KERNEL32]
Aleksey Bragin [Wed, 6 Apr 2011 19:03:20 +0000 (19:03 +0000)]
[KERNEL32]
- Rewrite most of kernel32 module loading APIs (except for LoadLibraryExW, for testing purposes it's gonna be committed in a separate commit). Rewritten parts include:
* Better definition of LOADPARMS32 structure for LoadModule, and rewritten LoadModule which is now a well structured function with proper parameters validation, proper work algorithm and setting proper last error values in failure cases. Optimization of allocating MAX_PATH buffer on stack instead of in the heap is saved from the old version of the function.
* LoadLibraryA, added a path-hack (present at least up to Windows 2003) for twain_32.dll loading (not that important, but still a compatibility issue).
* Make GetProcAddress() use BasepMapModuleHandle for mapping the passed-in handle (including properly handling NULL module handle which was incorrectly handled by the old implementation), and check for a special failure case when LdrGetProcedureAddress returns pointer to the image base address.

svn path=/trunk/; revision=51270

13 years ago[RPCRT4]
Timo Kreuzer [Wed, 6 Apr 2011 18:49:16 +0000 (18:49 +0000)]
[RPCRT4]
Fix return type of *ClientCall functions.
Merged from cmake branch

svn path=/trunk/; revision=51269

13 years ago[CMAKE]
Amine Khaldi [Wed, 6 Apr 2011 16:00:24 +0000 (16:00 +0000)]
[CMAKE]
* Sync to trunk r51266.

svn path=/branches/cmake-bringup/; revision=51268

13 years ago[CMAKE]
Jérôme Gardou [Wed, 6 Apr 2011 13:28:32 +0000 (13:28 +0000)]
[CMAKE]
  RosTests : buildno_header is no longer a valid target

svn path=/trunk/; revision=51267

13 years ago- Turn on test_capture_4.
James Tabor [Wed, 6 Apr 2011 12:56:46 +0000 (12:56 +0000)]
- Turn on test_capture_4.

svn path=/trunk/; revision=51266

13 years ago[User32|Win32k]
James Tabor [Wed, 6 Apr 2011 12:53:52 +0000 (12:53 +0000)]
[User32|Win32k]
- Pass all the wine test_capture_1/2/3/4.
- Fix the menu tracking pop up hang issue by looking for deceased windows that pass on while in the start of tracking. This could be a fix for other wine tests.
- ReactOS is not Linux and wine is not enough!

svn path=/trunk/; revision=51265

13 years ago[Win32k]
James Tabor [Wed, 6 Apr 2011 12:23:54 +0000 (12:23 +0000)]
[Win32k]
- The Reak fix to unfocused explorer minimize hang, spotted by R3dDr4g0n <vins8920@hotmail.com>.

svn path=/trunk/; revision=51264

13 years ago[Win32k]
James Tabor [Wed, 6 Apr 2011 01:31:50 +0000 (01:31 +0000)]
[Win32k]
- Fix to unfocused explorer minimize hang, spotted by R3dDr4g0n <vins8920@hotmail.com>.

svn path=/trunk/; revision=51263

13 years ago[WIDL]
Eric Kohl [Tue, 5 Apr 2011 21:37:54 +0000 (21:37 +0000)]
[WIDL]
Reapply the switchtype patch.

svn path=/trunk/; revision=51262

13 years ago[USRMGR]
Rafal Harabien [Tue, 5 Apr 2011 21:24:25 +0000 (21:24 +0000)]
[USRMGR]
Free buffer instead of freeing pointer to buffer

svn path=/trunk/; revision=51261

13 years ago[SYSTEMINFO]
Rafal Harabien [Tue, 5 Apr 2011 21:20:42 +0000 (21:20 +0000)]
[SYSTEMINFO]
Add Italian translation (patch by Vincenzo Cotugno <vins8920 at hotmail dot com>)
Decrease buffer size
Don't print NULL domain/workgroup
Add network adapters detection

svn path=/trunk/; revision=51260

13 years ago[PSDK]
Rafal Harabien [Tue, 5 Apr 2011 21:14:18 +0000 (21:14 +0000)]
[PSDK]
Add GetAdaptersAddresses declaration
Add forgotten GetComputerNameEx macro

svn path=/trunk/; revision=51259

13 years ago[NTOS/MM]
Michael Martin [Tue, 5 Apr 2011 11:42:38 +0000 (11:42 +0000)]
[NTOS/MM]
- Update PoolTag used with ExFreePooWithTag to match changes made in 46987 by richard.

svn path=/trunk/; revision=51258

13 years ago[ADVAPI32/LSASRV]
Eric Kohl [Mon, 4 Apr 2011 22:08:45 +0000 (22:08 +0000)]
[ADVAPI32/LSASRV]
- Implement LsaLookupNames2 in advapi32.dll.
- Implement LsarLookupNames3 in lsasrv.dll as a mock-up which returns a hard-coded user account (Administrator).

This fixes several wine tests.

svn path=/trunk/; revision=51257

13 years ago- Revert 51255 that was committed on accident. The patch is not ready yet.
Michael Martin [Mon, 4 Apr 2011 22:08:39 +0000 (22:08 +0000)]
- Revert 51255 that was committed on accident. The patch is not ready yet.

svn path=/trunk/; revision=51256

13 years ago[Win32k]
Michael Martin [Mon, 4 Apr 2011 21:50:24 +0000 (21:50 +0000)]
[Win32k]
- co_MsqDispatchOneSentMessage: After calling the windows procedure check if the message was a callback. If so place the message into the calling MessageQueue.  Also check if the current MessageQueue is the calling MessageQueue in which case dont call the Windows procedure but call the callback routine. SendMessageCallback is now properly implemented.
- Remove the use of MSQ_SENTNOWAIT and instead use the SenderQueue and CallBackSenderQueue members to determine if the MessageQueues need to be dereferenced.
- Modify co_MsqSendMessage to accept more parameters so that it can handle Notification, Callback and Internal messages. These changes make this function more complex but removes duplicate code in messages.c and move the handling for all queued messages in one location.
- co_IntSendMessageWithCallBack: If the callback is for the same Message Queue, call it vice queuing it.
Insert the message into the MessageQueue before waking the thread to handle the message. Should fix bug 5580.

svn path=/trunk/; revision=51255

13 years ago[Win32k]
Michael Martin [Mon, 4 Apr 2011 21:15:07 +0000 (21:15 +0000)]
[Win32k]
- Do not block calling thread when sending WM_PARENTNOTIFY messages. Fixes hang at end of user32 winetest for msg.

svn path=/trunk/; revision=51254

13 years ago[KERNEL32]
Aleksey Bragin [Mon, 4 Apr 2011 19:35:24 +0000 (19:35 +0000)]
[KERNEL32]
- Minor cleanup, better flag names (thanks to ProcessHacker team for the good names and values).
- Return error in failure path of BasepGetModuleHandleExW.
- Optimize GetModuleHandleExA so that it calls the internal routine directly, without going through GetModuleHandleExW first and thus validating parameters second time.

svn path=/trunk/; revision=51253

13 years ago[SNDVOL32]
Johannes Anderwald [Mon, 4 Apr 2011 14:27:29 +0000 (14:27 +0000)]
[SNDVOL32]
- Set Control variable to null, which prevents that mixer controls being assigned to another line when the current line does not have any controls. Bug was highlighted when opening the property window. In that case sndvol32 frees the previous setting, so all mixer lines are also getting freed including their controls, which caused a double free in the case the line did not have any controls assigned.

svn path=/trunk/; revision=51252

13 years ago- Fix build.
James Tabor [Mon, 4 Apr 2011 07:22:41 +0000 (07:22 +0000)]
- Fix build.

svn path=/trunk/; revision=51249

13 years ago[User32|Win32k]
James Tabor [Mon, 4 Apr 2011 07:18:54 +0000 (07:18 +0000)]
[User32|Win32k]
- Working on wine win test_capture_4, pass all the tests in test_capture_4_proc but still waiting forever in MenuTrackMenu:WaitMessage!

svn path=/trunk/; revision=51248

13 years ago[RBUILD]
Sylvain Petreolle [Sun, 3 Apr 2011 22:09:07 +0000 (22:09 +0000)]
[RBUILD]
Use msvcrt as default crt for DLLs/OCX modules.

svn path=/trunk/; revision=51247

13 years ago[KERNEL32]
Aleksey Bragin [Sun, 3 Apr 2011 21:46:42 +0000 (21:46 +0000)]
[KERNEL32]
- Implement BasepMapModuleHandle and use it in GetModuleFileNameW. Later, it'll be used by other module and loader related functions in kernel32.
- Wrap a call to RtlImageNtHeader into SEH, because winetest and for some reason FF installer call it with incorrect handle and expect it to not crash (Windows also has SEH, but inside RtlImageNtHeader).
- Fix null-termination problems in GetModuleFileNameA, and incorrect calculation of characters returned in GetModuleFileNameW.
- Various smaller improvements to the rewritten code (missing parenthesis, better variable names, use pretty LDR_ macros from http://msdn.microsoft.com/en-us/library/ms684179(v=vs.85).aspx ).
- Thanks for your feedback!
See issue #6079 for more details.

svn path=/trunk/; revision=51246

13 years ago[Win32k]
James Tabor [Sun, 3 Apr 2011 21:12:40 +0000 (21:12 +0000)]
[Win32k]
- Fix GetPeekMessage apitest that was broken when fixing the last two post quite message test.

svn path=/trunk/; revision=51245

13 years ago[CMAKE]
Sylvain Petreolle [Sun, 3 Apr 2011 20:36:28 +0000 (20:36 +0000)]
[CMAKE]
Merge r51243.

svn path=/branches/cmake-bringup/; revision=51244

13 years ago[CONSOLE]
Sylvain Petreolle [Sun, 3 Apr 2011 20:26:57 +0000 (20:26 +0000)]
[CONSOLE]
Fix french resource file name.
Dedicated to HeisSpiter & JanusMagnus.

svn path=/trunk/; revision=51243

13 years ago[CMAKE]
Timo Kreuzer [Sun, 3 Apr 2011 20:21:04 +0000 (20:21 +0000)]
[CMAKE]
- Add HAVE_GETPAGESIZE to host config.h. should fix linux build (fix by Sylvain)
- uncomment @echo off in configure script
- Move a DECLSPEC_NORETURN

svn path=/branches/cmake-bringup/; revision=51242

13 years ago[FULLFAT]
Ged Murphy [Sun, 3 Apr 2011 16:22:15 +0000 (16:22 +0000)]
[FULLFAT]
- Add the kernel APIs required by the library

svn path=/trunk/; revision=51241

13 years ago[LSASRV]
Eric Kohl [Sun, 3 Apr 2011 14:51:18 +0000 (14:51 +0000)]
[LSASRV]
Fix typos in lsa.idl (LsarLookupNames2, LsarLookupNames3 and LsarLookupNames4) and fix resulting errors in lsasrv.dll.

svn path=/trunk/; revision=51240

13 years ago[Win32k]
James Tabor [Sun, 3 Apr 2011 12:22:00 +0000 (12:22 +0000)]
[Win32k]
- Fix DDE test crash. it's a band-aide.
- Fix the last two post quite message test, all pass now.

svn path=/trunk/; revision=51239

13 years ago[KERNEL32]
Aleksey Bragin [Sun, 3 Apr 2011 09:42:08 +0000 (09:42 +0000)]
[KERNEL32]
- Rewrite large part of ldr.c code, including FreeLibrary, FreeLibraryAndExitThread, GetModuleFileNameA/W, GetModuleHandleA/W, ExA/W. Now they properly validate parameters, common code for getting module handles is factored into a standalone function which is reused for all 4 APIs instead of duplicating almost the same code four times. GetModuleFileNameA became a typical A->W wrapper around GetModuleFileNameW so duplication is also removed there.
- Getting module handle also became a correct implementation because now it takes process's dll path into account instead of always assuming a "default" one (which is incompatible with a new ntdll loader).
- Fixed a typo in BasepGetProcessPath which led to incorrect value being returned. Downgrade two debugprints.

svn path=/trunk/; revision=51238