Commit graph

68239 commits

Author SHA1 Message Date
Thomas Faber 54688094ac [NTOS:PNP]
- Improve use of local variables in IopCreateDeviceInstancePath and IopActionInterrogateDeviceStack
- Improve debug prints in IopCreateDeviceInstancePath. By Vadim Galyant
- Fix formatting in IopGetParentIdPrefix

svn path=/trunk/; revision=74048
2017-03-04 13:20:25 +00:00
Pierre Schweitzer 3676af8656 [FASTFAT]
When un/locking a volume, also handle VPB state

svn path=/trunk/; revision=74047
2017-03-04 11:34:13 +00:00
Kamil Hornicek a2bf0e2023 [WIN32K]
- GreGetDIBitsInternal:
- Prevent an access violation in DIB_FreeConvertedBitmapInfo by initializing the bit count before calling DIB_ConvertBitmapInfo and setting clrUsed.
- Validate input parameters and return correct values - only return number of scan lines if bits are not null and bpp is not zero. Otherwise return 1 on success.
- We now pass more gdi32:GetDIBits and gdi32:bitmap tests.
CORE-9270

svn path=/trunk/; revision=74046
2017-03-04 10:37:00 +00:00
Hermès Bélusca-Maïto f752d4ffda [WS2_32]
- Turn the "!memcmp(ptr1, ptr2, sizeof(GUID))" into IsEqualGUID(ptr1, ptr2) macro calls (aka. make code readable);
  this also allowed me to discover a logical bug in the GUID comparison in WsNcUpdateNamespaceList.
- Fix few comments, and rename some goto labels to make their meaning clearer (they are not only taken for error code paths,
  but also on regular path, for cleanup before returning from the function).
CORE-12880

svn path=/trunk/; revision=74045
2017-03-04 01:09:28 +00:00
Hermès Bélusca-Maïto 99e8525cb3 [WS2_32]: More fixes:
- Perform success checks in WsAsyncCheckAndInitThread, in particular, check whether Context is correctly allocated,
  and check whether the WsAsyncThread was correctly started up. In case of failure, perform the necessary cleanup,
  including calling WSACleanup().
- Check also the returned error code of WSAStartup. Fixes CID 1101934.
- Fix logic mess-up in WsNqLookupServiceNext when updating NsQuery->ActiveProvider;
- Fix copy-pasta errors (using 'lpafpProtocols' instead of 'lpcsaBuffer') in CopyQuerySetIndirectA and CopyQuerySetIndirectW,
  that triggered CID 513446 + CID 513447 (CopyQuerySetIndirectA), and CID 513444 + CID 513445 (CopyQuerySetIndirectW).
- Check for 'lpdwBufferLength' pointer validity in WSALookupServiceNextW;
- Check for 'lpdwBufferLength' and 'lpqsResults' pointers validity in WSALookupServiceNextA, and dereference lpdwBufferLength only afterwards.
- Check for return value of RegCreateKeyEx in WsOpenRegistryRoot(), fixes CID 715923.

svn path=/trunk/; revision=74044
2017-03-04 00:35:02 +00:00
Hermès Bélusca-Maïto ba1cd55e86 [WS2_32]
- Check for NULL pointers after HeapAlloc calls, in the constructor functions, before initializing members of created objects;
- Add a bunch of missing HeapFree in the corresponding destructor functions.
  In particular, fix the root cause of CID 1401152 in WsTpDelete: missing HeapFree call.
CORE-12880

svn path=/trunk/; revision=74043
2017-03-03 23:47:26 +00:00
Hermès Bélusca-Maïto 0386475fc9 [WS2_32]: Addendum to r74041: Forgot these changes too. CORE-12880
svn path=/trunk/; revision=74042
2017-03-03 23:34:47 +00:00
Hermès Bélusca-Maïto 019a8d2be6 [WS2_32]: Cosmetic changes first, before real fixes - CORE-12880 :
- Use IsListEmpty where needed;
- Initialize NextEntry using Catalog->ProtocolList after the lock on the catalog has been acquired;
- Rearrange WsNqLookupServiceNext to reduce the code indent level; also, convert the construct "if (var) { do { ... } while (var); }" into a mere "while (var) { ... }";
- WsNqPreviousProvider: the "next" provider is the previous one...;
- WsNqAddProvider: Use a more standard name for the boolean return value;
- Fix the annotation of MapUnicodeQuerySetToAnsi;
- Factor out setting the SetLastError WSALookupServiceBeginA.

svn path=/trunk/; revision=74041
2017-03-03 23:31:32 +00:00
Robert Naumann 800e1d3803 [FONTS] Add Libre Franklin Font v4.0.15
[USETUP] Add Font Substitutions for Franklin Gothic and MS Trebuchet CORE-12878 CORE-12877

Now Luna uses better fonts but the font styles are still not used.

svn path=/trunk/; revision=74040
2017-03-03 22:07:00 +00:00
Kamil Hornicek ee917ebd77 [SHELL32]
- Always set the default value in SetDefaultHandler, otherwise it's impossible to create a default association if the key for some reason already exists. This is consistent with what Windows does.

svn path=/trunk/; revision=74039
2017-03-03 16:20:03 +00:00
Giannis Adamopoulos c1bfc56213 [UXTHEME]: Use SendMessage to notify windows that the theme has changed. This needs a proper test. Makes it possible for SetWindowTheme with empty parameters to have effect immediately in the same way the tests for BCM_GETIDEALSIZE use it. Fixes the BCM_GETIDEALSIZE tests when run with an active theme.
svn path=/trunk/; revision=74038
2017-03-03 14:35:19 +00:00
Giannis Adamopoulos bf0e8e0bcb [COMCTL32]: Fix all tests for BCM_GETIDEALSIZE that we have so far. (It still returns a wrong result for the start button with lautus).
svn path=/trunk/; revision=74037
2017-03-03 13:56:49 +00:00
Giannis Adamopoulos b3ba96d405 [COMCTL32_APITEST]: Simplify tests to not depend on internals of CreateWindow (creating buttons as top level windows and testing their sizes complicates stuff without reason).
svn path=/trunk/; revision=74036
2017-03-03 13:54:56 +00:00
Giannis Adamopoulos ae5c6647eb [COMCTL32_APITEST]: Add a few more tests.
svn path=/trunk/; revision=74035
2017-03-03 11:30:06 +00:00
Giannis Adamopoulos 23cfe6bc43 [COMCTL32_APITEST]: Make some tests more strict and add tests for all button types.
svn path=/trunk/; revision=74034
2017-03-03 11:22:20 +00:00
Hermès Bélusca-Maïto 948cba0848 [WS2_32]: Remove trailing whitespace.
svn path=/trunk/; revision=74033
2017-03-03 00:13:40 +00:00
Mark Jansen ad0bb95ddd [NTDLL] Some style changes for RtlNtPathNameToDosPathName as suggested by Thomas and Hermes. CORE-12847
svn path=/trunk/; revision=74032
2017-03-02 21:51:22 +00:00
Mark Jansen 5a98df6476 [NTDLL] Add implementation for RtlNtPathNameToDosPathName. CORE-12847 #resolve
svn path=/trunk/; revision=74031
2017-03-02 21:29:38 +00:00
Mark Jansen fc32eb9533 [NTDLL_APITEST] Add tests for RtlNtPathNameToDosPathName. CORE-12847
svn path=/trunk/; revision=74030
2017-03-02 20:43:09 +00:00
Mark Jansen 2cb19e0bc8 [NTDLL] Implement RtlpEnsureBufferSize. Patch by Hermes Belusca-Maito. CORE-11990
Some small changes by me.

svn path=/trunk/; revision=74029
2017-03-02 20:40:21 +00:00
Mark Jansen 4617ea0c82 [NTDLL_APITEST] Add tests for RtlpEnsureBufferSize. CORE-11990
svn path=/trunk/; revision=74028
2017-03-02 20:38:58 +00:00
Pierre Schweitzer 021ab6e000 [DISK]
Fix size checking for IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, and only copy what's possible to fit in the buffer.
Also, make the code a bit more readable.

CORE-12858

svn path=/trunk/; revision=74027
2017-03-02 20:03:55 +00:00
Pierre Schweitzer 2eb3e5db44 [DISK]
Fix return code when buffer is too small, as exposed in r74025.

CORE-12858

svn path=/trunk/; revision=74026
2017-03-02 19:39:07 +00:00
Pierre Schweitzer 04d0e17fdf [KERNEL32_APITEST]
Add tests for DeviceIoControl. These are mainly used to test our storage stack

CORE-12858

svn path=/trunk/; revision=74025
2017-03-02 19:33:25 +00:00
Thomas Faber 240072132d [NTOS:PNP]
- Move generation of the device instance path into its own function

svn path=/trunk/; revision=74024
2017-03-02 13:42:04 +00:00
Thomas Faber ebc3d8bfbc [NTOS:PNP]
- Avoid memory leaks in IopActionInterrogateDeviceStack. Noticed by Vadim Galyant.
CORE-12732

svn path=/trunk/; revision=74023
2017-03-02 09:39:40 +00:00
Giannis Adamopoulos b5fd932bef [UXTHEME] -Fix parsing negative integers. Improves the situation of the start button with Lautus.
svn path=/trunk/; revision=74022
2017-03-02 08:24:20 +00:00
Eric Kohl 0448b0da4e [UMPNPMGR]
Fix a property id for a call to NtPlugPlayControl().

svn path=/trunk/; revision=74021
2017-03-01 21:52:20 +00:00
Eric Kohl fcd6f24ca0 [SCHEDSVC]
Set service status to SERVICE_STOP_PENDING before setting it to SERVICE_STOPPED.

svn path=/trunk/; revision=74020
2017-03-01 21:48:15 +00:00
Eric Kohl 91d6a8f428 [USETUP]
Fix unbootable system after recreating the boot partition
Patch by Wim Hueskens.
CORE-11232 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=74019
2017-03-01 20:46:24 +00:00
Hermès Bélusca-Maïto 41733bc328 [USER32]: Now for the real fix: Initialize lpLibFileName and pCtx in User32CreateWindowEx prior to calling ClassNameToVersion.
This avoid passing invalid parameters to VersionRegisterClass (and subsequent functions) afterwards.
Fix suggested by Mark Jansen, thanks!
CORE-12855

svn path=/trunk/; revision=74018
2017-03-01 19:36:51 +00:00
Hermès Bélusca-Maïto 0366c75f60 [USER32]: Fix formatting in User32CreateWindowEx, no code changes.
svn path=/trunk/; revision=74017
2017-03-01 19:23:27 +00:00
Thomas Faber b6a16efc88 [NTOS:FORMATTING]
- Fix spacing in IopActionInterrogateDeviceStack. No code changes.

svn path=/trunk/; revision=74016
2017-03-01 19:07:13 +00:00
James Tabor 3238412b08 [NtUser]
- Move functions around.

svn path=/trunk/; revision=74015
2017-03-01 16:51:13 +00:00
Thomas Faber d25e21c753 [USBSTOR]
- Fix error check in USBSTOR_SelectConfigurationAndInterface. CID 515249

svn path=/trunk/; revision=74014
2017-03-01 13:51:18 +00:00
Thomas Faber 156cf60be5 [NTOS:IO]
- Avoid event leak in NtQueryInformationFile. CID 716584

svn path=/trunk/; revision=74013
2017-03-01 13:10:52 +00:00
Giannis Adamopoulos 29446ab9a9 [COMCTL32] -Add initial implementation for BCM_GETIDEALSIZE and support to draw buttons with image lists. This is still WIP and needs tons of new tests. Crappy themes will be displayed like crap for now.
svn path=/trunk/; revision=74012
2017-03-01 11:49:59 +00:00
Thomas Faber 4e159110ff [ACPICA]
- Update to version 20170119, since the February version needs more work.
CORE-12833 #resolve

svn path=/trunk/; revision=74011
2017-03-01 11:36:19 +00:00
Thomas Faber 0fa558e2b5 [MSACM32]
- Free session driver instance using the correct heap. Fixes crash in msacm32_winetest.
- Remove obsolete diff file

svn path=/trunk/; revision=74010
2017-03-01 10:54:59 +00:00
Thomas Faber 9955015ce3 [MBEDTLS]
- Avoid building unneeded source files
- Style fixes in the CMake file
CORE-12834

svn path=/trunk/; revision=74009
2017-03-01 10:01:14 +00:00
Giannis Adamopoulos c3fed1277e [COMCTL32_APITEST} -Add some more tests and fix build.
svn path=/trunk/; revision=74008
2017-03-01 09:35:44 +00:00
Giannis Adamopoulos 9aa31f7cb4 [COMCTL32] -These "border sizes" are as good as hardcoded.
svn path=/trunk/; revision=74007
2017-03-01 08:57:25 +00:00
Eric Kohl f671800441 [FONTVIEW]
Implementation of the install button.
Patch by Baruch Rutman.
Fixes by Eric Kohl.
CORE-7355 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=74006
2017-02-28 23:00:19 +00:00
Hermès Bélusca-Maïto d2f5096281 [NTUSER]: NtUserGetObjectInformation, nIndex == UOI_FLAGS case:
- Capture the ObjectFlags to be set in a local variable,
- Then copy its contents in the mem area pointed by pvInformation *under the SEH block*! This allows:
  * protection if pvInformation is an invalid pointer;
  * avoid to run the "RtlCopyMemory(pvInformation, pvData, nDataSize);" afterwards with pvData == NULL.

svn path=/trunk/; revision=74005
2017-02-28 20:49:37 +00:00
Eric Kohl eeb2923366 [Fontview]
Unicodify it.
CORE-7355

svn path=/trunk/; revision=74004
2017-02-28 19:33:28 +00:00
James Tabor 69dba98f6b [NtUser]
- Patch to level up scroll bar code, based on mudhead patch. See CORE-12827.

svn path=/trunk/; revision=74003
2017-02-28 17:11:08 +00:00
Amine Khaldi ca2eacaa6a [WININET_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74001
2017-02-28 15:52:04 +00:00
Amine Khaldi a44126539b [WININET] Sync with Wine Staging 2.2. CORE-12823
07e3181 wininet: Fix some spec file entries.
725b55d wininet: Get rid of no longer needed INTERNET_INVALID_PORT_NUMBER in get_server.
0d22e43 wininet: Handle INTERNET_INVALID_PORT_NUMBER in HttpOpenRequest.
8c39694 wininet: Changed usage of UrlEscapeW to fit winapi behavior.
b3d12a1 wininet: Canonicalize URL in HttpOpenRequest.
47ff954 wininet: Use return value of sprintf() instead of calling strlen() and simplify code.

svn path=/trunk/; revision=74000
2017-02-28 15:51:01 +00:00
Mark Jansen 6a3bffaeba [APPCOMPAT] Fix a memory leak in a failure case (CID 1401161), a 0-length memset that is detected 3 times (CID 1401069, 1401064, 1401062)
svn path=/trunk/; revision=73999
2017-02-27 18:54:57 +00:00
Eric Kohl c7991b4c1d [REACTOS]
Fix LoadSetupData() failure paths (properly).
CORE-11691 #resolve

svn path=/trunk/; revision=73998
2017-02-27 15:55:21 +00:00