Commit graph

61290 commits

Author SHA1 Message Date
Aleksandar Andrejevic f0154e5af4 [NTVDM]
Fix copypasta in the file headers.


svn path=/trunk/; revision=66667
2015-03-13 18:28:45 +00:00
Aleksandar Andrejevic 888e1c450b [NTVDM][FAST486]
- Implement VDDInstallMemoryHook and VDDDeInstallMemoryHook using page guards.
- Implement another API for memory hooks that should be faster than page guards
(for NTVDM only).
- Adjust the VGA and EMS memory handlers to use this method.
- In Fast486, implement a method that will allow us to "rewind" the current instruction,
in case it was interrupted by a memory hook page fault.
- Use a memory hook to protect the BIOS ROM from being written to.


svn path=/trunk/; revision=66666
2015-03-13 17:57:51 +00:00
Timo Kreuzer 027720cd57 [INCLUDE/WINE]
Delete mmreg.h from wine folder, we have an almost identical and more complete version in psdk

svn path=/trunk/; revision=66665
2015-03-11 18:02:11 +00:00
Thomas Faber 07aa0d698c [DDK][NDK][XDK]
- Update some definitions to match WDK8.1. Fixes a few compatibility issues between NDK and WDK.
CORE-9356 #resolve

svn path=/trunk/; revision=66663
2015-03-11 09:21:10 +00:00
Hermès Bélusca-Maïto 444d33d50b [WIN32K]
- Implement NtUserResolveDesktop, which opens a desktop and a window station based on a desktop path string (format: "WinSta\Desktop").
- Move NtUserConsoleControl to a more suitable file, and implement the control code that allows CSRSS to assign console input threads to given desktops.
- Simplify a bit the code in NtUserSetInformationThread.

[CONSRV]
Turn the console input thread to a real one. There should be one such thread per desktop. When a console process is started, we open the desktop on which the process is going to start, we create a new input thread (attach it to the desktop) if needed, or reuse the existing one, and then we open the terminal on the correct desktop.

CORE-9346 #resolve #comment Fixed in revision 66662.

svn path=/trunk/; revision=66662
2015-03-11 01:21:29 +00:00
Timo Kreuzer 3ea483bc85 [WIN32K]
Don't set Message->DispatchingListEntry.Flink to NULL / compare against NULL, but use InitializeListHead and IsListEmpty. Make sure the list entry is properly initialize, when the item is removed Fixes list corruption.

svn path=/trunk/; revision=66661
2015-03-10 10:27:00 +00:00
Amine Khaldi e5c8124164 [ADVAPI32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66660
2015-03-10 10:10:54 +00:00
Amine Khaldi 8d12ad730d [MSVCRT_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66659
2015-03-10 10:10:35 +00:00
Amine Khaldi 26326ca7d5 [NTDLL_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66658
2015-03-10 10:10:04 +00:00
Amine Khaldi 6bd29991d4 [PSDK] Add missing KEY_NAME_INFORMATION structure. CORE-9246
svn path=/trunk/; revision=66657
2015-03-10 10:09:14 +00:00
Timo Kreuzer 5f980c38ce [WIN32K]
Fix a typo introduced in r66644. Fixes icon corruption / testbot regression.
CORE-9351 #resolve

svn path=/trunk/; revision=66656
2015-03-10 10:01:44 +00:00
Timo Kreuzer 649462e5ff [NDK]
Update no_sal2.h

svn path=/trunk/; revision=66655
2015-03-10 09:10:14 +00:00
Timo Kreuzer bb60692b92 [SAL]
- kernelspecs.h: Add IRQL level defines, remove a duplicate annotation and make some definitions more consistent
- concurrencysal.h: Add missing annotations (only dummies so far)
- driverspecs.h: Add some missing annotations
- sal_old.h: remove __inner_callback, which is in sal.h

svn path=/trunk/; revision=66654
2015-03-10 09:10:00 +00:00
Timo Kreuzer ba96aa436b [INCLUDE/CRT]
Fix annotations for _dupenv_s and _wdupenv_s (They are broken in MS headers, looks like nobody uses attributes for SAL...)

svn path=/trunk/; revision=66653
2015-03-10 09:09:48 +00:00
Timo Kreuzer 54b2c750ce [SAL]
Implement _Deref_post_bytecount_, _Outptr_result_maybenull_z_, _Pre_unknown_ and _Maybe_raises_SEH_exception_ annotations

svn path=/trunk/; revision=66652
2015-03-10 09:09:31 +00:00
Timo Kreuzer 05322e37a2 [XDK]
Fix typos, spotted by Thomas.

svn path=/trunk/; revision=66651
2015-03-10 09:05:08 +00:00
Timo Kreuzer 475a0d5255 [WIN32K]
Annotate eng/mapping.c

svn path=/trunk/; revision=66650
2015-03-10 00:13:43 +00:00
Timo Kreuzer eebc6ac87d [WIN32K]
Annotate mouse.c, move some prototypes to the proper location.
Fix bugs in EngSetPointerShape and IntEngSetPointerShape, where the passed in XLATEOBJ could be NULL. Found by MSVC static analyzer.

svn path=/trunk/; revision=66649
2015-03-10 00:13:29 +00:00
Timo Kreuzer af94181e04 [WIN32K]
Annotate rect.c

svn path=/trunk/; revision=66648
2015-03-10 00:13:17 +00:00
Timo Kreuzer b673073aa1 [WIN32K]
- Annotate eng/device.c and semaphor.c.
- Get rid of IntGdiAcquire/ReleaseSemaphore
- Move some prototypes where they belong

svn path=/trunk/; revision=66647
2015-03-10 00:13:04 +00:00
Timo Kreuzer d33bc192ba [WIN32K]
Fix all MSVC static analyzer warnings. (a few are suppressed after checking that it's ok)
Fixes a number of missing or wrong function return checks, wrong printf format specifiers and a few other things,

svn path=/trunk/; revision=66646
2015-03-10 00:12:41 +00:00
Timo Kreuzer 42587dd1d3 [WIN32K]
Apply proper formatting to polyfill.c

svn path=/trunk/; revision=66645
2015-03-10 00:11:43 +00:00
Timo Kreuzer fe4dc5d9d5 [WIN32K]
Annotate a number of GDI functions to match public header declarations.

svn path=/trunk/; revision=66644
2015-03-10 00:11:29 +00:00
Timo Kreuzer 6a2c72929e [PSDK]
Move __analysis_assume to sal.h (like in newer Windows SDKs) and define it (together with _Analysis_assume_) to "((void)0)" instead of to nothing, to allow it to be used with a comma.

svn path=/trunk/; revision=66643
2015-03-10 00:10:57 +00:00
Timo Kreuzer 83779b37e6 [PSDK/DDK/XDK]
- Make NT_ASSERT() give the MSVC static analyzer a hint that the condition can now be excpected to be true. This adds __analysis_unreachable(), which uses __assume(0) on _PREFAST_ builds. This is neccessary, since it seems impossible to make MSVC respect __analysis_noreturn / __declspec(noreturn) on an intrinsic prototype like __int2c().

svn path=/trunk/; revision=66642
2015-03-10 00:10:46 +00:00
Timo Kreuzer a3df492617 [PSDK]
Update ntgdi.h:
- Change some return types from VOID to NTSTATUS. This was done recently on Windows, but there shouldn't be a compatibility issue with returning an NTSTATUS value instead of the random contents of the eax register.
- Change 2 parameters from VOID* to DRIVER_INFO_2W* and 2 parameters from VOID* to POINTL*
- Add annotations

svn path=/trunk/; revision=66641
2015-03-10 00:10:33 +00:00
Timo Kreuzer 6ff50b28b0 [PSDK]
struct _DRVENABLEDATA -> struct tagDRVENABLEDATA

svn path=/trunk/; revision=66640
2015-03-10 00:10:09 +00:00
Timo Kreuzer 4aa79e133e [CMAKE]
Make warning C4716 (function must return a value) an error on MSVC

svn path=/trunk/; revision=66639
2015-03-10 00:09:58 +00:00
Timo Kreuzer e04361b3a8 [WIN32K]
Fix bug in EngMapEvent

svn path=/trunk/; revision=66638
2015-03-10 00:09:41 +00:00
Timo Kreuzer 1e9299af24 [PSDK]
Fix NULL-termination bugs in ntstrunsafe.h

svn path=/trunk/; revision=66637
2015-03-10 00:09:30 +00:00
Timo Kreuzer 4beaf120e7 [DDK/XDK]
- Fix some prototypes in wdm.h (PMDLX -> PMDL)
- Fix annotations for ExFreePool(WithTag)

svn path=/trunk/; revision=66636
2015-03-10 00:09:20 +00:00
Timo Kreuzer 7aa570c1fd [WIN32K]
Fix some annotations

svn path=/trunk/; revision=66635
2015-03-10 00:08:54 +00:00
Amine Khaldi 6e781e624c [VMWINST] Use StringCb{Copy,Cat} instead of wcs{cpy,cat} to ensure that no buffer overflows occur. CID 514272s and 515210. By Ricardo Hanke. CORE-9347
svn path=/trunk/; revision=66634
2015-03-09 20:50:42 +00:00
Amine Khaldi 8ffd0f2576 [MSI_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66633
2015-03-09 20:28:54 +00:00
Amine Khaldi 102b741c7e [MSI] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66632
2015-03-09 20:28:19 +00:00
Amine Khaldi 3bce081d61 [PSDK] Add missing MsiProvidedComponent{A,W} declarations. CORE-9246
svn path=/trunk/; revision=66631
2015-03-09 20:26:03 +00:00
Amine Khaldi c6589cc426 [MSIEXEC] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66630
2015-03-09 20:02:20 +00:00
Amine Khaldi ca2dfb03a3 [OLE32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66629
2015-03-09 19:58:31 +00:00
Amine Khaldi ec27d5b880 [OLE32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66628
2015-03-09 19:57:38 +00:00
Amine Khaldi a5ef97a5f5 [ADVPACK_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66627
2015-03-09 19:20:13 +00:00
Amine Khaldi c46d40ad2f [ADVPACK] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66626
2015-03-09 19:19:38 +00:00
Amine Khaldi e0770c3e3a * Silence a debug print. Spotted by Aleksey.
svn path=/trunk/; revision=66625
2015-03-09 19:08:16 +00:00
Christoph von Wittich 9ee7073a81 [GDI32]
fix gdi32 clipping winetest

svn path=/trunk/; revision=66624
2015-03-09 19:05:58 +00:00
Amine Khaldi 9a8d806a2e [RTL] Partly sync actctx.c with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66623
2015-03-09 18:08:15 +00:00
Amine Khaldi 66123cf941 [KERNEL32] Sync GetStringTypeW() with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66622
2015-03-09 17:53:20 +00:00
Amine Khaldi 220e1cfae1 [TASKMGR] Do not show negative CPU usage. By Peter Hater. CORE-9050
svn path=/trunk/; revision=66621
2015-03-09 17:38:31 +00:00
Amine Khaldi 780865a796 [KERNEL32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66620
2015-03-09 17:15:16 +00:00
Timo Kreuzer 4e51a10654 [WIN32K]
Fix another typo in the same line... Spotted by Jerome.

svn path=/trunk/; revision=66619
2015-03-09 01:11:06 +00:00
Timo Kreuzer ada7f6e85d [WIN32K]
Replace ROUND_UP with ALIGN_UP_BY

svn path=/trunk/; revision=66618
2015-03-08 23:37:06 +00:00
Timo Kreuzer 16c191f8a8 [WIN32K]
Improve the situation with ROP handling, trying to make things clearer.

svn path=/trunk/; revision=66617
2015-03-08 23:36:49 +00:00