Commit graph

2779 commits

Author SHA1 Message Date
Colin Finck
12e208e27a Fix GCC build, part 4/X (losing my optimism)
svn path=/trunk/; revision=74328
2017-04-16 15:51:44 +00:00
Colin Finck
cb609f0b17 [LOCALSPL]
- Refactor LocalEnumPrinters to make it ready for supporting additional levels.
- Correctly handle all passed flags for Level 1 queries to the Local Print Provider.
- Introduce strsafe functions to LocalEnumPrinters in a way that actually makes the code smaller. To be done in other parts too.
- Use PackStrings in LocalEnumPrinters to simplify the code.
- Return the correct 3 strings in the Description field of Level 1 queries. That also introduces the "Location" field.
- Remove debug spam in _OpenEnvironment.

[SPOOLSV]
- Make use of the newly implemented AlignRpcPtr/UndoAlignRpcPtr. Fixes a test.

[WINSPOOL]
- Dismiss invalid levels already in EnumPrintersW and zero the input buffer here (but not in localspl). Verified by a test.

EnumPrintersW for Level 1 should be fully supported now.

svn path=/trunk/; revision=74324
2017-04-16 14:12:01 +00:00
Colin Finck
c860e2b80d [SPOOLSS]
Add ASSERTs, improve documentation and the variety of tests for AlignRpcPtr/UndoAlignRpcPtr.
Based on comments by Serge Gautherie.

svn path=/trunk/; revision=74323
2017-04-16 10:36:16 +00:00
Mark Jansen
246f24bd7f [WIN32SS] Cleanup fonts at process destruction + implement font memory reference counting.
Thanks to everyone involved in reviewing this code! (See CR-112)
CORE-13056

svn path=/trunk/; revision=74309
2017-04-14 18:22:57 +00:00
Colin Finck
a737c007e8 [SPOOLSS]
Implement the undocumented AlignRpcPtr and UndoAlignRpcPtr functions used by many Rpc* functions in spoolsv according to traced callchains.
I could reverse engineer them entirely using rohitab.com's API Monitor and black-box testing.
I also add documented tests covering all cases I found out. We now pass 17/17 tests on Windows Server 2003 and ReactOS.

Also const-ify a parameter in PackStrings.

svn path=/trunk/; revision=74297
2017-04-13 16:48:40 +00:00
Mark Jansen
4e56b66072 [GDI32_APITEST] Add test for AddFontMemResourceEx. Uses PanosePitchTest.ttf from Katayama Hirofumi MZ. CORE-13046 CORE-13038 CORE-13053
svn path=/trunk/; revision=74287
2017-04-08 22:25:54 +00:00
Amine Khaldi
f7de731248 [VERSION_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74205
2017-03-19 17:23:26 +00:00
Amine Khaldi
5dc0efe009 [WINTRUST_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74201
2017-03-19 17:12:49 +00:00
Amine Khaldi
9883b9f952 [WINHTTP_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74198
2017-03-19 17:05:35 +00:00
Amine Khaldi
557197382e [URLMON_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74196
2017-03-19 16:58:47 +00:00
Amine Khaldi
4fba105205 [USP10_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74194
2017-03-19 16:54:04 +00:00
Mark Jansen
447c0daf7d [ATL][ATL_APITEST] Allow CString to be initialized with a resource ID + add tests for this. Patch by Katayama Hirofumi MZ. CORE-12917 #resolve #comment Thanks!
svn path=/trunk/; revision=74177
2017-03-15 19:17:44 +00:00
Hermès Bélusca-Maïto
5c9adf775d [NDK]: No, the NDK applications do not have to use UNICODE.
Indeed the RTL/NDK/whatever always explicitely uses ANSI and/or UNICODE string types where needed (and do not depend on tchar.h stuff).
It is up to the given application to explicitely specify (in its CMakeLists.txt or elsewhere) whether it wants to define UNICODE or not.
--> Fix the problem of having the UNICODE define magically being defined after including some NDK header.

[DNSAPI][USER32_APITEST]: Explicitely use UNICODE functions where needed (and as was already done in other parts of the code).

svn path=/trunk/; revision=74172
2017-03-15 00:06:42 +00:00
Giannis Adamopoulos
395c541573 [COMCTL32_APITEST] -Add one more test.
svn path=/trunk/; revision=74148
2017-03-11 13:41:03 +00:00
Giannis Adamopoulos
971c0bc040 [COMCTL32_APITEST] -Add a couple more tests.
svn path=/trunk/; revision=74147
2017-03-11 13:23:49 +00:00
Giannis Adamopoulos
ec2450447a [COMCTL32_APITEST] -Add tests for the BST_HOT state.
svn path=/trunk/; revision=74146
2017-03-10 22:46:35 +00:00
Giannis Adamopoulos
7e6dc5a06d [COMCTL32_APITEST] -Get rid of some hardcoded values.
svn path=/trunk/; revision=74145
2017-03-10 22:17:26 +00:00
Giannis Adamopoulos
0feb059c77 [UXTHEME] -Add tests for SetWindowTheme to test the behavior that was changed in r74038.
svn path=/trunk/; revision=74144
2017-03-10 17:56:18 +00:00
Giannis Adamopoulos
29bf877001 [COMCTL32] -Add lots of tests for the messages that are sent when the button is painted due to the mouse entering and leaving the button.
svn path=/trunk/; revision=74141
2017-03-10 15:32:32 +00:00
Giannis Adamopoulos
48c9363c36 [UXTHEME_APITEST] -Add a test to show that CloseThemeData doesn't use exception handling.
svn path=/trunk/; revision=74128
2017-03-08 15:15:19 +00:00
Giannis Adamopoulos
761c932726 [UXTHEME_APITEST] -Add one more test for DrawThemeParentBackground.
svn path=/trunk/; revision=74126
2017-03-08 14:54:02 +00:00
Giannis Adamopoulos
eb86e8afd5 [UXTHEME_APITEST] -Add more tests for DrawThemeParentBackground.
svn path=/trunk/; revision=74125
2017-03-08 14:46:36 +00:00
Giannis Adamopoulos
93bbc9d548 [USER32_APITEST] -Move the helper functions in the common include directory
[UXTHEME_APITEST] -Use the helper functions to test the messages sent by DrawThemeParentBackground

svn path=/trunk/; revision=74123
2017-03-07 22:29:48 +00:00
Hermès Bélusca-Maïto
c5dde308bf [KERNEL32_APITEST]: Add basic tests for lstrlenA/W, focusing on its special handling of the NULL pointer.
We detect that the NULL pointer is handled separately because no exception is generated, contrary to when the function is called with truly invalid pointers.
I thank Mark for having mentioned the vectored exception handling to me, needed to catch first-chance exceptions.

svn path=/trunk/; revision=74118
2017-03-06 19:14:27 +00:00
Amine Khaldi
bb24e3a5e4 [OLEAUT32_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74111
2017-03-05 21:51:44 +00:00
Amine Khaldi
b400ac7ae6 [RICHED20_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74109
2017-03-05 21:44:19 +00:00
Amine Khaldi
e007edf028 [INETCOMM_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74107
2017-03-05 21:37:58 +00:00
Amine Khaldi
a1488a0f38 [CRYPT32_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74102
2017-03-05 21:22:31 +00:00
Amine Khaldi
3606086387 [GDIPLUS_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74099
2017-03-05 21:16:17 +00:00
Amine Khaldi
85353f2fba [OLE32_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74095
2017-03-05 21:03:59 +00:00
Amine Khaldi
74568a6e4d [COMDLG32_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74093
2017-03-05 20:57:57 +00:00
Amine Khaldi
12b5c1dd77 [COMCTL32_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74091
2017-03-05 20:53:49 +00:00
Amine Khaldi
2d709a011a [MSI_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74088
2017-03-05 20:45:43 +00:00
Amine Khaldi
00d5ff1307 [RPCRT4_WINETEST] Sync with Wine Staging 2.2. CORE-12823
svn path=/trunk/; revision=74086
2017-03-05 20:43:17 +00:00
Thomas Faber
a8d5478895 [NTOS:LPC]
- Implement the early exit case (e.g. on connection refused) in NtAcceptConnectPort
CORE-12145

svn path=/trunk/; revision=74069
2017-03-05 00:55:50 +00:00
Mark Jansen
985555c58f [APPHELP_APITEST] Check which parts of apphelp accept NT paths
svn path=/trunk/; revision=74061
2017-03-04 20:27:39 +00:00
Thomas Faber
3df8b3ccc8 [USER32_APITEST]
- Add a test for SetScrollRange
CORE-12763

svn path=/trunk/; revision=74058
2017-03-04 18:34:35 +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
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
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
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
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
Giannis Adamopoulos
d054fcda2b [COMCTL32_APITEST]: Add one more test for BCM_GETIDEALSIZE, it is as if it completely ignores BS_BITMAP.
svn path=/trunk/; revision=73995
2017-02-27 11:06:45 +00:00