Commit graph

66174 commits

Author SHA1 Message Date
Mark Jansen 3fe36f5bb9 [APPHELP] Dereference after null check (default_dir). CID 1363509
svn path=/trunk/; revision=71931
2016-07-13 18:02:16 +00:00
Thomas Faber 02da519230 [NTOSKRNL_VISTA]
- Avoid ugly hacks
CORE-11596 #resolve

svn path=/trunk/; revision=71930
2016-07-13 17:48:21 +00:00
Hermès Bélusca-Maïto 8889af9d21 [NET]
No need to check for whether 'pBuffer' is NULL to call NetApiBufferFree, because:
- 'pBuffer' was used above this call without any particular checks;
- 'pBuffer' can be only null when NetUserEnum fails with an error different from NERR_Success or ERROR_MORE_DATA. But this case was actually checked for before using 'pBuffer'.
By Victor Martinez aka. Mr.Coverity ^^ :)
CID 1363629
CORE-11598 #resolve

svn path=/trunk/; revision=71929
2016-07-13 17:35:16 +00:00
Hermès Bélusca-Maïto 341b360aa5 [NTOSKRNL_VISTA lib]
Initialize utf8_ch_len to zero before using it (at each turn of the for-loop). As I couldn't find this code in Wine, I couldn't see whether they already fixed it or not. Caught by Victor.
CORE-11596

svn path=/trunk/; revision=71928
2016-07-13 16:43:16 +00:00
Hermès Bélusca-Maïto d512139905 [SETUP]
- Fix leaking 'pSetupData' in case of failure. CID 1363604
- Since we know that in the remaining of the code, 'pSetupData' is a valid pointer, we can free it at the very end without rechecking whether it was NULL or not.
CORE-11591 #resolve

svn path=/trunk/; revision=71927
2016-07-13 16:33:37 +00:00
Hermès Bélusca-Maïto 368ccec209 [MAGNIFY]
Missing break. CID 1363532
CORE-11593 #resolve

svn path=/trunk/; revision=71926
2016-07-13 16:27:39 +00:00
Hermès Bélusca-Maïto 054f3b25f7 [MKHIVE]
- Fix usage of the 'Status' variable. CID 1363689
- Fix some DPRINTs.
CORE-11595 #resolve

svn path=/trunk/; revision=71925
2016-07-13 16:23:12 +00:00
Hermès Bélusca-Maïto 3aa8e4c2ac [CHARMAP]
Don't overrun FillGrid() when accessing the last elements. Rewrite the code using 'for' loops, in the same style as what is done elsewhere in the code. CID 1363552
CORE-11597 #resolve

svn path=/trunk/; revision=71924
2016-07-13 15:50:44 +00:00
Hermès Bélusca-Maïto 380484c985 [BOOTLIB]
- BiOpenKey is being feed with the wrong ElementHandle, it should be feed with ElementsHandle one. CID 1363670 . By Victor Martinez Calvo. CORE-11600 #resolve
[BOOTMGR]
- Fix an Assign vs Compare issue. CID 1363558 .  By Victor Martinez Calvo. CORE-11592 #resolve

svn path=/trunk/; revision=71923
2016-07-13 15:43:08 +00:00
Amine Khaldi d90292f386 [BOOTLIB] Remove stray semicolon from a condition in ConsoleCreateLocalInputConsole(). Patch by Victor for CID 1363701. CORE-11588
svn path=/trunk/; revision=71919
2016-07-13 09:08:34 +00:00
James Tabor fa03a0ab6b [USER32_WINETEST] Sync with Wine Staging 1.9.11 Part 4. CORE-11368
svn path=/trunk/; revision=71918
2016-07-13 03:16:00 +00:00
James Tabor e5dd5ba644 [User32]
- Sync/port up to Wine Staging 1.9.11 or current. See CORE-11368.

svn path=/trunk/; revision=71917
2016-07-13 03:09:01 +00:00
James Tabor dc9ad2ee45 [NtUser]
- Fix crash in User32:win:test_winproc_handles. See CORE-11368.

svn path=/trunk/; revision=71916
2016-07-13 03:04:20 +00:00
James Tabor edd88125ab [User32]
- Fix regression in API:RealGetWindowClass test due to wine sync/port.
- ReactOS use of DIALOG_get_info is an enhanced fork of the same wine function.

svn path=/trunk/; revision=71915
2016-07-13 00:40:07 +00:00
Hermès Bélusca-Maïto 5c7bfe2f11 [CONCFG]: Add needed inclusion for StrSafe functions.
svn path=/trunk/; revision=71914
2016-07-13 00:09:36 +00:00
Hermès Bélusca-Maïto 47d9985bb4 [CONSRV]
- Fix potential Out-of-bounds access during string copy/concatenation. CID 1322098.
- Fix check for NULL after potential dereference. CID 1322175.

svn path=/trunk/; revision=71913
2016-07-13 00:06:09 +00:00
Hermès Bélusca-Maïto a5b76eb779 [SHELL32]
- Use StringCbCopyW

[PROGMAN]
- Use StringCbCopyW: CID #1363712.
- Don't read registry values in a registry key if we failed to open it. CID #514350.

svn path=/trunk/; revision=71912
2016-07-12 23:00:50 +00:00
Hermès Bélusca-Maïto 4ef92827aa [USETUP]
- Don't hardcode buffer string size in GetPartTypeStringFromPartitionType calls.
- Possibly check whether the first character of the PartTypeString string is NULL before printing a generic partition information in case the partition type is unknown. We might check instead for the STRING_FORMATUNKNOWN string...
- Don't check for PartTypeString being NULL since it's not a pointer. CID #1363481 and CID #1363494.

svn path=/trunk/; revision=71911
2016-07-12 22:30:55 +00:00
Amine Khaldi 5ec6f3d9fc [KERNEL32_WINETEST] Sync with Wine Staging 1.9.14 except thread tests. CORE-11511
svn path=/trunk/; revision=71910
2016-07-12 21:10:24 +00:00
Amine Khaldi 54f3884769 [NTDLL_WINETEST] Partial sync with Wine Staging 1.9.14. CORE-11368 holds some remaining tests.
svn path=/trunk/; revision=71909
2016-07-12 20:40:20 +00:00
James Tabor 69fd33d2a0 [USER32_WINETEST] Sync with Wine Staging 1.9.11 Part 3. CORE-11368
svn path=/trunk/; revision=71907
2016-07-12 20:08:44 +00:00
James Tabor 45799931c9 [Win32SS]
- Update (Sync/Port) User32:Text to Wine Staging 1.9.11, see CORE-11368.

svn path=/trunk/; revision=71906
2016-07-12 20:06:30 +00:00
James Tabor d9af32368a [Win32SS]
- Cleanup error codes for Classes and Menus.
- Update (Sync/Port) User32:Dialog to Wine Staging 1.9.11, see CORE-11368.
- Now pass exactly the same tests as windows, except for the two ToDos lines 1596 & 1617. The other test failures are on wine for not being compatible!

svn path=/trunk/; revision=71904
2016-07-12 18:23:04 +00:00
Amine Khaldi 1c7b4d4699 [SCHTASKS] Import from Wine Staging 1.9.14. CORE-11576
svn path=/trunk/; revision=71903
2016-07-12 15:35:42 +00:00
Amine Khaldi a9be1b1122 [UXTHEME_WINETEST] Sync with Wine Staging 1.9.14.
svn path=/trunk/; revision=71902
2016-07-12 11:13:34 +00:00
Amine Khaldi 2a753b8ad3 [UXTHEME] Apply Wine commit 997e204 by Louis Lenders: Fix CloseThemeData with invalid handle value. CORE-11368
svn path=/trunk/; revision=71901
2016-07-12 11:12:58 +00:00
Amine Khaldi 94cda5e077 [SHELL32_WINETEST] Sync with Wine Staging 1.9.14.
svn path=/trunk/; revision=71900
2016-07-12 10:49:51 +00:00
Amine Khaldi d86051a8c3 [PSDK] Add some missing ASSOCF_* enum elements.
svn path=/trunk/; revision=71899
2016-07-12 10:46:22 +00:00
Amine Khaldi c59d46ec65 [ADVAPI32_WINETEST] Sync with Wine Staging 1.9.14.
svn path=/trunk/; revision=71898
2016-07-12 10:38:36 +00:00
Mark Jansen 78df1a00d6 [TRANSLATION] Russian translations by Nikolay Burshtyn (amber). CORE-11567 #resolve #comment Thanks!
svn path=/trunk/; revision=71896
2016-07-11 19:02:48 +00:00
Amine Khaldi a4db20e9a9 [INCLUDES/WINE] Update test.h.
svn path=/trunk/; revision=71895
2016-07-11 10:47:42 +00:00
Amine Khaldi dc0f375a2d [GDI32_WINETEST] Sync with Wine Staging 1.9.14.
svn path=/trunk/; revision=71894
2016-07-11 10:46:47 +00:00
Hermès Bélusca-Maïto b9a5fd8135 Fix usage of the first parameter for TranslateAccelerator: this should be the handle of the window that will receive the accelerator commands (not the window from which the message originates).
svn path=/trunk/; revision=71893
2016-07-11 01:57:47 +00:00
Eric Kohl 3d32d3faaf [SERVMGR]
Service recovery page:
- Dissect the 'run process' command line and display it.
- Implement the 'Browse' button.

svn path=/trunk/; revision=71892
2016-07-10 21:54:17 +00:00
Eric Kohl a9f075392d [NEWDEV]
Fix words in newdev. (Italian translation)
Patch by decodp.
CORE-11437 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71891
2016-07-10 20:26:05 +00:00
Pierre Schweitzer 79bcce0cbe [FASTFAT]
CcMapData 4th arg isn't a boolean but a flag. Fix it accordingly
CcPinRead 4th arg isn't a boolean but a flag. Fix it accordingly

svn path=/trunk/; revision=71890
2016-07-10 18:16:03 +00:00
Pierre Schweitzer bc25d25107 [CDFS]
CcMapData 4th arg isn't a boolean but a flag. Fix it accordingly

svn path=/trunk/; revision=71889
2016-07-10 18:06:47 +00:00
Pierre Schweitzer e8028606cf [FASTFAT][CDFS]
Call CcMapData(), CcPinRead() inside a SEH block
This allows returning more significant error codes on failure

[NTOSKRNL]
Enable Thomas code for raising exceptions

CORE-9848

svn path=/trunk/; revision=71888
2016-07-10 17:14:33 +00:00
Mark Jansen 7320b9bca3 [SDK] Add the first appcompat database, containing references to version lie shims. CORE-11302 #resolve
svn path=/trunk/; revision=71887
2016-07-10 16:21:53 +00:00
Mark Jansen e3639a814e [SDK][XML2SDB] Introducing the xml2sdb host tool, used to convert xml files to appcompat Sdb files. CORE-11302
Uses tinyxml2 to parse the xml.
Thanks to Thomas for reviewing / suggesting fixes!

svn path=/trunk/; revision=71886
2016-07-10 16:14:39 +00:00
Mark Jansen 704241af92 [APPHELP] Prepare sdbwrite related api for a new hosttool. CORE-11302
- Adding an extra argument to SdbReAlloc
- Do not rely on platform wcs* functions.

svn path=/trunk/; revision=71885
2016-07-10 16:06:39 +00:00
Eric Kohl 35e5c8b39f [USETUP]
Add CAPS-LOCK support to the keyboard layout.
Patch by Carlo Bramini.
CORE-3368 #comment Thanks a lot!

svn path=/trunk/; revision=71884
2016-07-10 15:51:45 +00:00
Thomas Faber 20b9815882 [NTOS:CC]
- Raise exceptions on failure in CcMapData if RAISE_FROM_CC_MAP_DATA is defined. This is how the function should behave, and should be enabled once all our file system drivers correctly handle this.
CORE-9848

svn path=/trunk/; revision=71883
2016-07-10 14:46:37 +00:00
Mark Jansen 954b67bd37 [WIN32SS] Do not try to call DevModes when it is NULL (mirror drivers). Patch by Victor Matovykh. CORE-11441 #resolve #comment Thanks!
svn path=/trunk/; revision=71882
2016-07-10 14:23:58 +00:00
Mark Jansen 0ecb33fb4b [RAPPS] Fix some translated / misspelled tags.
svn path=/trunk/; revision=71881
2016-07-10 00:18:20 +00:00
Hermès Bélusca-Maïto 7e912fee22 [SHELL32]
- Fix the last parameter of a StringCchCopyEx call; fix a misspelling.
- Do not exclusively use GetFileAttributesEx to retrieve file attributes (for the file properties dialog). Indeed, it happens that this API (as well as GetFileAttributes), and equivalently, NtQueryFullAttributesFile (as well as NtQueryAttributesFile), can fail on *locked system* files (on Win2k/Win2k3/Win7, and on ROS), such as C:\pagefile.sys . See for example http://stackoverflow.com/questions/16772931/getfileattributes-on-locked-system-file and my comment in CORE-10757 . Therefore to retrieve file attributes also for these files we do a trick: we call FindFirstFile on the full path to said file. It happens that FindFirstFile can work on locked system files, and thus we are able to retrieve their attributes (+ size and file dates) as well!
See the code for more details.
CORE-10757 #resolve

svn path=/trunk/; revision=71880
2016-07-09 23:18:39 +00:00
Hermès Bélusca-Maïto 7795699eaa [KERNEL32]
- Do not use a "magic number" for the return value 0xFFFFFFFF from GetFileAttributes.
- Use a meaningful variable name for retrieving the result of GetFileAttributes.

svn path=/trunk/; revision=71879
2016-07-09 22:23:23 +00:00
Thomas Faber 121e0791d7 [SERVMAN]
- Fix MSVC build

svn path=/trunk/; revision=71878
2016-07-09 21:05:00 +00:00
Thomas Faber ea98e8a8fd [LIBXML2]
- Fix MSVC build (already fixed upstream)

svn path=/trunk/; revision=71877
2016-07-09 21:01:11 +00:00
Amine Khaldi b938f584f2 [LIBXSLT] Update to v1.1.29. CORE-11557
svn path=/trunk/; revision=71876
2016-07-09 18:30:47 +00:00