Commit graph

60772 commits

Author SHA1 Message Date
Thomas Faber f142ee5329 [DDK]
- Add RtlFailFast and FAST_FAIL_* codes
CORE-8419

svn path=/trunk/; revision=66204
2015-02-08 10:57:47 +00:00
Johannes Anderwald 89896f9912 [PORTCLS]
- fix crash / assert triggered with cwawdm driver
- fix irp leak
- CORE 7822

svn path=/trunk/; revision=66203
2015-02-08 08:11:51 +00:00
Hermès Bélusca-Maïto 3d3bdc5873 [WINSRV]: Remove some deprecated code, keep other parts for reusage later on; cleanup SrvExitWindowsEx. If you enable the NotifyAndTerminateProcess call, you get a basic win32 process termination. This is now where the real work starts: do not kill CSRSS nor Winlogon, do not kill processes from other sessions, etc... Deal with console apps; display timeout dialog, and focus on the app that blocks shutdown by switching to the correct desktop. And we MUST NOT use user32 desktop APIs for switching to the different desktops, but we need to directly call win32k!! (for reasons that will appear later on; not implemented at the moment). Giannis, I will need your help for that!
Part 10/X
CORE-8322

svn path=/trunk/; revision=66202
2015-02-08 00:54:22 +00:00
Thomas Faber 683c14c278 [SPEC2DEF]
- Don't warn about symbols that should be private on MSVC builds. Link already does this.
CORE-8445

svn path=/trunk/; revision=66201
2015-02-08 00:00:30 +00:00
Thomas Faber b8808ef996 [CMAKE]
- Support NO_PRIVATE_WARNINGS parameter when invoking spec2def to suppress warnings about symbols that should be private
- Disable such warnings for msxml3, ole32 and rsaenh
CORE-8445

svn path=/trunk/; revision=66200
2015-02-07 23:54:15 +00:00
Hermès Bélusca-Maïto 41180fb6b0 [SPEC2DEF]: Display the -private exports warning *only* when making import libs.
CORE-8445 #comment -private warning only displayed for import libs.

svn path=/trunk/; revision=66199
2015-02-07 21:42:26 +00:00
Thomas Faber cfcdf14cef [SPEC2DEF]
- Remove space before colon in error messages

svn path=/trunk/; revision=66198
2015-02-07 21:20:15 +00:00
Hermès Bélusca-Maïto 38bb64ba24 [WINLOGON]
- Add DPRINTs to monitor how shutdown goes on (obviously they will go away when shutdown on ROS will be working).
- Add dumb handler for LN_LOGOFF_CANCELED message (unused for now...)

[WIN32K]: DPRINTs added for monitoring shutdown.

[WINSRV]: Start to plugin the whole thing (using pieces of Alex' shutdown patch):
- We need to use a "shutdown" loop (for UserThreadInitiateShutdown win32k call) for being able to cancel shuts down (not implemented yet).
- Add the "magic" call to CsrShutdownProcesses that calls the Shutdown callback of each CSR server for each Win32 process (these are those callbacks that do the real job of terminating the apps, displaying the "Kill the app" dialog, etc...). In few words, the old (disabled) code of InternalExitReactos need to go into those shutdown callbacks (but this is for other commits!).

Part 9/X

CORE-8322 #comment Continue plugging in the shutdown code (from Alex' patch) in WINSRV with adaptations into WINLOGON (+ adding DPRINTs for controlling the whole thing).

svn path=/trunk/; revision=66197
2015-02-07 20:46:27 +00:00
Amine Khaldi aeaff2bf59 [WIN32K:INCLUDES] Some formatting fixes. NFC.
svn path=/trunk/; revision=66196
2015-02-07 19:14:42 +00:00
Timo Kreuzer 981aafb792 [WIN32K]
Fix the ROP code passed to IntEngStretchBlt from NtGdiStretchDIBitsInternal. Fixes crash of Nimbus Notes installer.
CORE-9048 #resolve

svn path=/trunk/; revision=66195
2015-02-07 17:51:20 +00:00
Hermès Bélusca-Maïto 159c00fe95 [WIN32k:includes] Whitespace fixes.
svn path=/trunk/; revision=66194
2015-02-07 16:19:57 +00:00
Timo Kreuzer 880a4bf3de [FREELDR]
- #ifdef DBG -> #if DBG
- #if 0 DbgDumpMemoryMap()

svn path=/trunk/; revision=66193
2015-02-07 15:52:18 +00:00
Hermès Bélusca-Maïto b8d8fbdc9d [WINLOGON][WIN32K]
Move the shutdown privilege check from winlogon to win32k (function "UserInitiateShutdown") as it should be done.

[WIN32K]
- Introduce the pair of UserInitiateShutdown/UserEndShutdown calls that should be called when WINSRV starts a shutdown (and when it finishes it). In particular it is in UserInitiateShutdown that we need to check whether the caller has the rights to perform a shutdown (it should also have a valid window station).
- Remove the ROS-specific TWOPARAM_ROUTINE_EXITREACTOS call that is traded for Win2k3-compatible call to UserInitiateShutdown.

[WINSRV]
Hackfix our current ExitWindowsEx functionality (based on a patch by Alex made against r46050 for win32csr) to make it "compatible" with the improvements in win32k: impersonate the caller and call the UserInitiateShutdown win32k system call (instead of the TWOPARAM_ROUTINE_EXITREACTOS). More will come later on.

[USER32]
Win32k can require performing shutdown in an asynchronous way (needed also on WINSRV side) so we need to put all the code in a worker thread.

Part 8/X (part 6 was r65693 and part 7 was r66186).

CORE-8322 #comment Start to add Alex' win32csr shutdown patch in WINSRV; fixes for winlogon and additions to win32k.

svn path=/trunk/; revision=66192
2015-02-07 15:26:42 +00:00
Timo Kreuzer 8e988cc2f3 [MKHIVE]
Add back CmpAllocate prototype. Fixes MSVC warnings.

svn path=/trunk/; revision=66191
2015-02-07 15:05:04 +00:00
Giannis Adamopoulos 42554e6098 [SHELL32]
- Get rid of IDD_FILE_COPY dialog. It was never used, never completed and windows don't really have such a dialog.
- Remove SHShowFileOperationDialog which was never completed. This will be replaced shortly with a working solution by Huw Davies 

svn path=/trunk/; revision=66190
2015-02-07 14:42:39 +00:00
Thomas Faber f3b718e042 [RTL]
- Implement RtlIpv4StringToAddressW. Dedicated to Jérôme. Thanks to the countless reviewers.
CORE-6490

svn path=/trunk/; revision=66189
2015-02-07 13:24:29 +00:00
Thomas Faber 008adec92d [WIN32K]
- Do not use an uninitialized variable in UserSetProcessWindowStation. Feel free to fix this properly

svn path=/trunk/; revision=66188
2015-02-07 11:11:37 +00:00
Thomas Faber 16c8f0601d [RTL]
- Implement RtlIpv4StringToAddressA and RtlIpv4StringToAddressExA using their -W counterparts
CORE-6490

svn path=/trunk/; revision=66187
2015-02-07 10:07:24 +00:00
Hermès Bélusca-Maïto 3e714d22fb [WINLOGON][WIN32K]: Tend towards Win2k3-compatible winlogon logoff/shutdown messaging. Something that needs to be fixed is that it is not winlogon that checks whether the app requesting the shutdown has the correct rights, but it is win32k. I temporarily disable this check in winlogon (it's not as if we introduced a security breach in ReactOS ^^)
svn path=/trunk/; revision=66186
2015-02-07 01:18:40 +00:00
Hermès Bélusca-Maïto 94c27d3aeb [WINSRV]: Remove a long standing hack (added 4 years ago) that is now useless.
CORE-5138 #comment Hack from r51460 finally removed.

svn path=/trunk/; revision=66185
2015-02-06 23:29:09 +00:00
James Tabor cc48a3494b [User32]
- Patch by Huw Davies : Merge the blitting of the centered and non-centered cases.

svn path=/trunk/; revision=66184
2015-02-06 21:17:10 +00:00
James Tabor e0152471f9 [WineTests|User32]
- Sync Combo to wine head. Patch by Huw Davies : Make the combo's listbox a topmost window. See CORE-5186 for prior report.

svn path=/trunk/; revision=66183
2015-02-06 21:07:59 +00:00
James Tabor 4cb4ee6326 [User32]
- Patch by Piotr Caban : Only store dialog focus when window is hidden or inactive. Only use DIALOGINFO-> hwndFocus to store last focus of inactive windows.

svn path=/trunk/; revision=66182
2015-02-06 20:57:45 +00:00
James Tabor d783274010 [WineTests|User32]
- Sync Dialog to wine head.

svn path=/trunk/; revision=66181
2015-02-06 20:56:57 +00:00
Jérôme Gardou fcddf62f18 [KMTEST/TCPIP]
- Add tests checking for TDI_CONNECT behaviour.

svn path=/trunk/; revision=66180
2015-02-06 10:49:04 +00:00
Hermès Bélusca-Maïto 51d68a3329 [FREELDR]
- For now, only activate custom ReactOS boot on non-x86 builds.
- Fix INI section item list initialization before using it! Fixes custom ReactOS boots (ie. remove an invalid heap free). Now custom ReactOS boots work!

svn path=/trunk/; revision=66179
2015-02-06 01:21:45 +00:00
Hermès Bélusca-Maïto 149e5e961a [SHELL32]
- Fix registry value retrieval with RegGetValue (RRF_RT_REG_EXPAND_SZ has a non-obvious functioning: it should be used with NO_EXPAND flag. Otherwise use RRF_RT_REG_SZ to retrieve REG_SZ values, or REG_EXPAND_SZ values with automatic expansion as expected). CORE-9001 #resolve #comment Fixed, thanks for reporting!
- Fix whitespace.

svn path=/trunk/; revision=66178
2015-02-06 00:07:23 +00:00
James Tabor b07541cc5d [Win32ss]
- Validate the parent window before locking it. Attempt to fix CORE-9117.

svn path=/trunk/; revision=66177
2015-02-05 23:46:57 +00:00
Amine Khaldi bff824b2ca [DLLs] Revert r66167 (Privatize the exports that should be so). Fixes MSVC build. Of course the glorious GCC toolchain is oblivious to this.
svn path=/trunk/; revision=66176
2015-02-05 22:12:55 +00:00
James Tabor 4f897d6aa9 [User32]
- Return timeout if the count and wait time is zero. This is a wine hack and fixes two related mgs:test_MsgWait* tests. Attempt to fix CORE-9117. Not sure if MsgWaitForMultipleObjects is the problem.

svn path=/trunk/; revision=66175
2015-02-05 21:31:05 +00:00
Hermès Bélusca-Maïto d511783a3c [FREELDR]: Remove some extra newlines at the end of error messages that are displayed via message boxes, and also for few of them, use the fact that our message boxes implement printf-like features.
svn path=/trunk/; revision=66174
2015-02-05 21:24:26 +00:00
Hermès Bélusca-Maïto 927ab9996d [FREELDR]: Fix initialization of BootPath variable, and add some explanation comment as requested long time ago by Pierre.
svn path=/trunk/; revision=66173
2015-02-05 21:17:35 +00:00
Timo Kreuzer 23a57a334f [W32KNAPI]
Load NtGdiFlushUserBatch dynamically to allow loading on Win 2003, where the function does not exist.
ROSTESTS-131 #resolve

svn path=/trunk/; revision=66172
2015-02-05 10:10:33 +00:00
Timo Kreuzer 2efb302756 [GDI32]
CORE-8350 #comment Fix return value on error in RealizePalette. #resolve

svn path=/trunk/; revision=66171
2015-02-05 09:35:54 +00:00
Aleksandar Andrejevic af6093b4a5 [FAST486]
Implement FRNDINT.


svn path=/trunk/; revision=66170
2015-02-05 01:03:09 +00:00
Hermès Bélusca-Maïto 63773511d0 [FREELDR]: Add some debug information when searching for PCI routing tables.
svn path=/trunk/; revision=66169
2015-02-05 00:43:39 +00:00
James Tabor 3c936843c2 - Missed this one.
svn path=/trunk/; revision=66168
2015-02-05 00:13:51 +00:00
Hermès Bélusca-Maïto 6ee06a3b26 [DLLs]: Privatize the exports that should be so.
svn path=/trunk/; revision=66167
2015-02-05 00:12:12 +00:00
James Tabor fe753e82c7 [Win32ss]
- Setup system cursors and icons. Could help with Themes.
- Set default cursor to the message queue structure.
- Fix wine cursor icon tests. Fix ATI cursor passing issue.
- Fix that sticky mouse cursor while the screen saver is on.
- Move cursor code from User32 and shake that pop up window too.
- Setup for window station security checking.
- Dedicated to the great work by Jérôme Gardou. Doing ones best to preserve his original code!

svn path=/trunk/; revision=66166
2015-02-05 00:11:35 +00:00
Hermès Bélusca-Maïto aa19105965 [SPEC2DEF]
- Warn about symbols that should be private. Patch by Thomas Faber. CORE-8445 #resolve #comment Committed in revision 66165. It's also nice/useful to get the warnings even if we are not generating an import lib (example when building rsaenh): MSVC warns also in this case.
- Improve error messages.
- some_ptr = 0; ---> use NULL instead.
- remove useless extra parentheses.

svn path=/trunk/; revision=66165
2015-02-04 23:56:23 +00:00
James Tabor 9491749bfd [NtUser]
- Add object handle information and set station user support.

svn path=/trunk/; revision=66164
2015-02-04 21:59:15 +00:00
Hermès Bélusca-Maïto 2ff70a1a12 [MSPAINT]: Improve help menu name in some languages.
Patch by Jared.
CORE-9087 #resolve #comment Fixed, thanks!

svn path=/trunk/; revision=66163
2015-02-04 21:34:22 +00:00
Daniel Reimer 5c1c0cf9fc [RAPPS]
Fix broken link to Total Commander
CORE-9123 #resolve #comment Please retry. Thx for help.

svn path=/trunk/; revision=66162
2015-02-04 21:27:20 +00:00
Jérôme Gardou f8de863698 [NTDLL]
- use the edx register to store the function pointer to the syscall trampoline.
This is how google Chrome checks if an exported function is a system call or not.
See https://chromium.googlesource.com/chromium/src.git/+/master/sandbox/win/src/service_resolver_32.cc and https://bugs.winehq.org/show_bug.cgi?id=21232 for details

svn path=/trunk/; revision=66161
2015-02-04 16:58:41 +00:00
Amine Khaldi 667174effd [TRANSLATIONS] Turkish translation update by Erdem Ersoy. CORE-7861
svn path=/trunk/; revision=66160
2015-02-04 14:58:20 +00:00
Amine Khaldi d952727844 [SHELL32] Move some *RecycleBin*() functions to a more appropriate source file. Improve header inclusions.
svn path=/trunk/; revision=66159
2015-02-04 09:13:43 +00:00
Timo Kreuzer 949aef7e6c [GDI32_APITEST]
Add simple tests for RealizePalette.
CORE-8350 #comment Tests show that the patch is not correct.

svn path=/trunk/; revision=66158
2015-02-04 09:02:25 +00:00
Timo Kreuzer 910b673508 [WIN32K]
Always update surface flags in EngModifySurface

svn path=/trunk/; revision=66157
2015-02-04 08:21:54 +00:00
Aleksandar Andrejevic ec76f48f58 [FAST486]
Implement FDECSTP, FINCSTP and FXTRACT.


svn path=/trunk/; revision=66156
2015-02-04 03:22:48 +00:00
Hermès Bélusca-Maïto 6af8dff1f8 [FAST486]: Use a more "regular" syntax (i.e. understandable by other compilers than GCC).
svn path=/trunk/; revision=66155
2015-02-04 03:12:03 +00:00