Commit graph

61064 commits

Author SHA1 Message Date
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
Timo Kreuzer
ebd0c06809 [WIN32K]
- Pass size in bytes to UnsafeSetBitmapBits from NtGdiCreateBitmap
- In NtGdiSetBitmapBits check for stock bitmap and non-API bitmap.

svn path=/trunk/; revision=66616
2015-03-08 23:36:36 +00:00
Timo Kreuzer
d52f661e5f [WIN32K]
- Remove wrong flags when initializing a DC
- Set DC::prgnattr before potentially passing it to the cleanup function after failure to create a handle. Add a comment that this is not actually enough. Will be fixed, once we use C++
- Increase GDI object stack levels to 20

svn path=/trunk/; revision=66615
2015-03-08 23:36:25 +00:00
Timo Kreuzer
6dcd051d62 [WIN32K]
Make sure a region is reasonably initialized, before potentially passing it to the cleanup function, when failing to create a handle.

svn path=/trunk/; revision=66614
2015-03-08 23:36:14 +00:00
Timo Kreuzer
d09753a207 [WIN32K]
Fix a typo

svn path=/trunk/; revision=66613
2015-03-08 23:36:04 +00:00
Timo Kreuzer
cdc2efb241 [WIN32K]
NtGdiSetDIBitsToDeviceInternal: Check for ScanLines == 0 and clean up exit pathes. Fixes assertion failure in gdi32_winetest:bitmap

svn path=/trunk/; revision=66612
2015-03-08 22:44:36 +00:00
Timo Kreuzer
ff14566384 [WIN32K]
- Pass bitmap buffer size to SURFACE_AllocSurface and validate it
- Fix arithmetic overflow checks by using RtlULongMult
- GreExtTextOutW: do not allocate / blit zero sized bitmaps
- NtGdiStretchDIBitsInternal: do not pass negative y size to GreCreateBitmapEx
- DIB_CreateDIBSection: use calculated bitmap size, instead of biSizeImage when calculating the section view size and as size parameter to GreCreateBitmapEx
CORE-9245 #resolve

svn path=/trunk/; revision=66611
2015-03-08 17:25:44 +00:00
Hermès Bélusca-Maïto
15f19bca32 [CONSRV]: Hackfix the icons retrieval in the same way as what was done in r65683, because we have a bug in PrivateExtractIconExW.
svn path=/trunk/; revision=66610
2015-03-08 14:28:19 +00:00
Hermès Bélusca-Maïto
c8eb15561c [CONSRV]: Fix the console TUI frontend compilation.
svn path=/trunk/; revision=66609
2015-03-08 13:52:06 +00:00
Timo Kreuzer
e7aacb5163 [WIN32K]
- revert an "improvement" in NtUserFindExistingCursorIcon
- Remove boken asserts
- Implement GreSetBitmapOwner and use it to set bitmap owner in IntSetCursorData
- Fix cleanup after failure in setting bitmap owner
- Fix string cleanup (don't free INTRESOURCE)
- Validate frame indices to be within range
- Make sure frame indices and JIR reates are copied
- A few other fixes/improvements

svn path=/trunk/; revision=66608
2015-03-08 13:44:24 +00:00
Amine Khaldi
e53889cf98 [NOTEPAD] Prevent some NULL pointer dereferences. CID 502217. By Ricardo Hanke. CORE-9337
svn path=/trunk/; revision=66607
2015-03-08 13:16:46 +00:00
Johannes Anderwald
63439e78ff [MMSYS]
- fix build

svn path=/trunk/; revision=66606
2015-03-08 09:37:06 +00:00
Johannes Anderwald
d2e31d5fde [MMSYS]
- install software bus pnp enumerator only once

svn path=/trunk/; revision=66605
2015-03-08 08:28:12 +00:00
Hermès Bélusca-Maïto
97bb83fcd9 [USETUP]: Fix some problems with extra-backslashes in paths, and fix the support for the setup directory "\" which means "the install directory" (i.e. C:\ReactOS usually).
[BOOTDATA/VGAFONTS]: Install the vga fonts needed for the Blue driver. Better fix for r57755 and r59547.

svn path=/trunk/; revision=66604
2015-03-08 04:09:23 +00:00
David Quintana
9c9b3171f8 [NTOBJSHEX]
* Make the shell view default to details mode.
* Some cleanups.

svn path=/trunk/; revision=66603
2015-03-08 02:05:24 +00:00
Aleksandar Andrejevic
b0c6956a17 [NTVDM]
Implement EMS function AH = 57h.


svn path=/trunk/; revision=66602
2015-03-08 00:36:46 +00:00
Timo Kreuzer
e0a175fa25 [INTRIN]
Fix x64 build.

svn path=/trunk/; revision=66601
2015-03-07 22:35:52 +00:00
Johannes Anderwald
20b24dadb9 [KS]
- fix multiple bugs in software bus pnp enumerator 
[INF]
- add wdmaud.sys as a client of the software bus pnp enumerator

svn path=/trunk/; revision=66600
2015-03-07 18:01:03 +00:00
Johannes Anderwald
4f6af40fc9 [MMSYS]
- install software bus pnp enumerator when an audio device is installed

svn path=/trunk/; revision=66599
2015-03-07 17:33:13 +00:00
Timo Kreuzer
3eba2a1fe4 [INTRIN]
Add some missing intrinsics for GCC (_InterlockedExchangeAdd8, __incgsqword, _BitScanForward64, _BitScanReverse64, _bittest64, _bittestandset64, _bittestandreset64, _bittestandcomplement64, _rotr64, _lrotl, _lrotr, __lzcnt, __lzcnt16, __popcnt, __popcnt16, __lzcnt64, __popcnt64, __cpuidex, __ud2, __writecr8/__readcr8 (x86))
Remove useless top level const modifiers from parameters (they do only tell the compiler that the variable cannot be modified, they do not tell the compiler whether the parameter is a compiler constant!)

svn path=/trunk/; revision=66598
2015-03-07 13:22:42 +00:00
Hermès Bélusca-Maïto
6fa9017029 [NTVDM]: Add configuration files (will be needed in the future). By Lee Schroeder.
CORE-7736 CORE-7832

svn path=/trunk/; revision=66597
2015-03-07 01:42:16 +00:00