Commit graph

66750 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto 9bc48b336f [SECUR32][NTOS]: Update the LSA export signatures for the functions that are implemented in the "lsalib" library.
[LSALIB]
- Add old-school annotations (as we currently do in our main .c code of our stuff).
- Mention that LsaConnectUntrusted is not an API that is exported (& implemented) by ntoskrnl.
- For LsaRegisterLogonProcess, we first wait for the LSA server to be ready (by waiting on its initialization event). This is TODO for LsaConnectUntrusted on the contrary.

[LSALIB][NTOS]
Usa the lsalib as the implementation of the LSA functions exported by ntoskrnl. But for that we need to recompile the lsalib as a library that can be used from inside ntoskrnl, because it needs some functions that are normally exported by ntos. For this purpose I add the library target "ntlsalib" (which also specify different #defines), to differentiate it from the (user-mode) "lsalib" one that is used by secur32.dll (Amine, if you have a better idea on how to do that, please let me know!).

svn path=/trunk/; revision=72751
2016-09-20 23:43:16 +00:00
Amine Khaldi 7d07b21168 [WS2_32] The current ws2_32 served us well, but it's time for ws2_32_new to shine. It took slightly more than 7 years since Ged brought-in Alex' impressive work on this module, and thanks to the great follow-up work by Peter Hater, Andreas Maier, Thomas Faber and everyone else involved in the effort, we now have a chance to retire ws2_32 in favor of ws2_32_new. The test results speak for the excellent achievements, and this serves as a platform to continue inspecting and fixing the remaining test failures. Thank you all for a job well done! Please see CORE-10440 for a summary of the changes performed in this commit.
svn path=/trunk/; revision=72750
2016-09-20 16:51:28 +00:00
Amine Khaldi 840345bf57 [MSAFD] Don't assume SOL_SOCKET is the only socket level. By Peter Hater. CORE-10440 CORE-12008
svn path=/trunk/; revision=72749
2016-09-20 16:31:53 +00:00
Amine Khaldi e4af4ccb22 [ETC/SERVICES] Update services file as expected by the tests. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72748
2016-09-20 09:45:02 +00:00
Amine Khaldi e9878b1c6a [IPHLPAPI] Don't (de)initialize ws2 on dll process (attach/detach), do it on IcmpCreateFile/IcmpCloseHandle instead, due to the circular dependency ws2_32 -> mswsock -> dnsapi(adns lib) -> iphlpapi -> ws2_32. This creates 2 references to ws2_32 and ws2_32 can't cleanup on WSACleanup. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72747
2016-09-20 09:42:51 +00:00
Amine Khaldi b257841ecd [MSAFD] Move WSAAddressToStringA/W and WSAStringToAddressA/W in msafd protocol provider from ws2_32. Other small fixes for return codes. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72746
2016-09-20 08:12:44 +00:00
James Tabor e38d2daa32 [NtUser]
- Use send message only and fix return for WM_NC/ACTIVATE. See CORE-11979 and CORE-11324.

svn path=/trunk/; revision=72745
2016-09-20 02:00:18 +00:00
Johannes Anderwald f5f288f652 [USBAUDIO]
- fix minor bugs
- start implementing filter context

svn path=/trunk/; revision=72744
2016-09-19 18:40:44 +00:00
Amine Khaldi d35ce60785 [PSDK] Apply our headers style to winwlx.h. Supersedes and fixes the "fix whitespace" part of r72741.
svn path=/trunk/; revision=72743
2016-09-19 17:04:27 +00:00
Hermès Bélusca-Maïto d4b08aa9bb Revert 2 small changes that I didn't want to do.
svn path=/trunk/; revision=72742
2016-09-19 15:51:13 +00:00
Hermès Bélusca-Maïto 9121ca5711 [PSDK]: Add annotations & fix whitespace.
svn path=/trunk/; revision=72741
2016-09-19 15:49:45 +00:00
Dmitry Chapyshev ab60ef617a [KERNEL32] Sync other functions with Wine 1.9.17
* Fixes 1 test for kernel32:locale

svn path=/trunk/; revision=72740
2016-09-19 11:28:20 +00:00
Dmitry Chapyshev b44173c769 [KERNEL32] Sync GetStringTypeW with Wine
* Fixes 255 tests for kernel32:locale

svn path=/trunk/; revision=72739
2016-09-19 10:11:19 +00:00
Thomas Faber 8970909ad9 [AFD]
- Fix MDL leak in failure case of AfdGetSockName. Patch by Volodymyr Shcherbyna. CID 1322161.
CORE-11096 #resolve

svn path=/trunk/; revision=72738
2016-09-19 08:15:24 +00:00
Hermès Bélusca-Maïto 9481be0824 [WINLOGON]
- CreateUserEnvironment: if user impersonation fails, just fail the call.
- SetDefaultLanguage: Use the *correct* HKEY_CURRENT_USER key to retrieve the lang., that is, first impersonate the user, then, call RegOpenCurrentUser. We do that because otherwise calling RegOpenKey(Ex) for HKEY_CURRENT_USER just uses the process cached value of HKEY_CURRENT_USER, which does not change *even if* one impersonates an user.

[MSGINA]
- Correctly impersonate the user when opening & initializing the shutdown dialog (in the same way as winlogon does), i.e. call ImpersonateLoggedOnUser and use RegOpenCurrentUser.
- Fill few (but not all) code holes in WlxScreenSaverNotify.

svn path=/trunk/; revision=72737
2016-09-18 23:32:02 +00:00
Hermès Bélusca-Maïto 4b29ab5690 [NTOS]: Code formatting only.
svn path=/trunk/; revision=72736
2016-09-18 23:28:32 +00:00
Amine Khaldi 0fc28afe45 [MSWSOCK] Partially implement Name Service Provider in mswsock. Brought to you by Andreas Maier aka andy-123 with small fixes by Peter Hater and formatting by me. CORE-10024 CORE-10440
svn path=/trunk/; revision=72735
2016-09-18 21:21:28 +00:00
Dmitry Chapyshev be31da9af7 [KERNEL32] - Remove unneded checks (these values can be received from table). - We have to insert UNICODE_NULL if it is the end of string or in string contains 0.
* Fixes 12 tests for kernel32:codepage

svn path=/trunk/; revision=72734
2016-09-18 21:10:07 +00:00
Dmitry Chapyshev a7c123661e [KERNEL32] Add missed type-casting
* Fixes 28 tests for kernel32:codepage

svn path=/trunk/; revision=72733
2016-09-18 20:11:05 +00:00
Hermès Bélusca-Maïto f8ff1c2126 [MSGINA]
- Do not hardcode buffer sizes in function calls, and use _countof when needed.
- Use explicit unicode functions where possible.
- No need to have 342687 versions of the shutdown dialog in msgina, only one is sufficient. The help button should be either shown or hidden, depending on whom is calling the dialog (shell or winlogon) (this is TODO!)
- Therefore, no need to have twice the (almost) same code for the shutdown dialog.
- Fix & rework said code.
- The old duplicated shutdown dialog now becomes the "template" for the "Luna-XP-style Shut Down dialog" (implementation TODO!)
- Reenable the WM_ACTIVATE code that was added in r72720 and temporarily disabled in r72721.
CORE-7559 #comment Numerous fixes committed in r72732.

svn path=/trunk/; revision=72732
2016-09-18 19:37:25 +00:00
Hermès Bélusca-Maïto c7afe8dea0 [SHELL32]: Code formatting only.
svn path=/trunk/; revision=72731
2016-09-18 19:36:05 +00:00
Dmitry Chapyshev d0228d56b4 [KERNEL32] Implement MB_ERR_INVALID_CHARS flag for DBCS codepages
* Fixes 3 tests for kernel32:codepage

svn path=/trunk/; revision=72730
2016-09-18 18:21:30 +00:00
Dmitry Chapyshev 84351186d5 [KERNEL32] Implement MB_USEGLYPHCHARS flag for MultiByteToWideChar. Add checks for "Private Use" characters. More correct checks for input parameters.
* Fixes 6 tests for kernel32:codepage

svn path=/trunk/; revision=72729
2016-09-18 17:26:59 +00:00
Amine Khaldi dc52ede2f3 [WS2_32_WINETEST] Disable test_address_list_query() as the ioctl is not supported yet by winsock helper dll (wshtcpip.dll) and the test is assuming there is info returned which is wrong and crashes. By Peter Hater. CORE-10440 CORE-12000
svn path=/trunk/; revision=72728
2016-09-18 16:20:20 +00:00
Amine Khaldi 0040a2fd32 [ADNS] Use dynamic memory for network info and set domain for searches. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72727
2016-09-18 16:07:29 +00:00
Amine Khaldi 6086defd15 [DNSAPI] Request adns to search servers and domains. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72726
2016-09-18 14:25:39 +00:00
Johannes Anderwald ad787661bb [USBAUDIO]
- start implementing init routines
- not yet added to build

svn path=/trunk/; revision=72725
2016-09-18 14:24:21 +00:00
Johannes Anderwald 956b933a71 try fix build
svn path=/trunk/; revision=72724
2016-09-18 14:11:47 +00:00
Johannes Anderwald 1b15d09a65 [PSDK]
- add missing definitions

svn path=/trunk/; revision=72723
2016-09-18 14:02:22 +00:00
Amine Khaldi 15b97111e6 [KERNEL32] Try to read 'DhcpDomain' registry value if present, otherwise return 'Domain' one, when domain part is requested from GetComputerNameEx(). By Peter Hater. CORE-10440
svn path=/trunk/; revision=72722
2016-09-18 12:55:45 +00:00
Hermès Bélusca-Maïto b33dfb3ede [MSGINA][SHELL32]: Temporarily disable the WM_ACTIVATE check because it blocks for whatever reason the dialog to properly close and return its correct return value when the user selects e.g. "Shutdown" and validate by pressing "OK" (effectively disables commit r72720).
svn path=/trunk/; revision=72721
2016-09-17 23:07:46 +00:00
Hermès Bélusca-Maïto 99dcff252e [MSGINA][SHELL32]: Now that CORE-11979 is fixed, automatically close the logoff/shutdown dialog as soon as the user deactivates the window (focus lost) by e.g. pressing Alt-Tab.
svn path=/trunk/; revision=72720
2016-09-17 22:44:50 +00:00
Hermès Bélusca-Maïto a1895a9da6 [XDK][MSGINA]: Consistency codestyle fixes.
[SHELL32]
- Use explicit unicode functions;
- Use _countof instead of sizeof(foo)/sizeof(foo[0]);
- Enable the shutdown privilege when we need it, and disable as soon as possible (code taken from taskmgr).

svn path=/trunk/; revision=72719
2016-09-17 22:39:54 +00:00
Hermès Bélusca-Maïto b5fc396ab8 [MSGINA]: Code style fixes:
- Use explicit unicode functions;
- Just use the hdc field of the PAINTSTRUCT initialized by BeginPaint instead of introducing yet another hdc variable;
- Use SetDlgItemTextW instead of GetDlgItem + SetWindowTextW;
- Don't hardcode buffer sizes in functions calls;
- Use _countof instead of sizeof(foo)/sizeof(foo[0]);
- Avoid using raw 'int' variables where possible;
- Remove trailing whitespace.
...

svn path=/trunk/; revision=72718
2016-09-17 22:04:54 +00:00
Dmitry Chapyshev 40f2bef33b [NLS] Update NLS files. Part 5/x
svn path=/trunk/; revision=72717
2016-09-17 21:45:39 +00:00
Dmitry Chapyshev 4969288a3b [NLS] Add source data for NLS-files
svn path=/trunk/; revision=72716
2016-09-17 21:18:13 +00:00
Hermès Bélusca-Maïto f76faf799a [NTVDM]: Update README.
svn path=/trunk/; revision=72715
2016-09-17 21:12:03 +00:00
Dmitry Chapyshev 20e9303118 [NLS] Update NLS files. Part 4/x
svn path=/trunk/; revision=72714
2016-09-17 21:08:09 +00:00
Dmitry Chapyshev 3855dc8d24 [NLS] Add source data for 10000, 10006, 10007, 10029, 10079, 10081 codepages
svn path=/trunk/; revision=72713
2016-09-17 20:54:14 +00:00
Hermès Bélusca-Maïto d0c02243d2 [NTVDM]: Add new icons:
- Tango-style icons by Henry Tang Ih and Jared Smudde, arranged by myself for PC-XT and AT style;
- ROS-DOS & VDM-DOS (copied from pifmgr.dll) by DSP2015
CORE-10340

svn path=/trunk/; revision=72712
2016-09-17 20:50:08 +00:00
Dmitry Chapyshev 67862907fb [NLS] Update NLS files. Part 3/x
svn path=/trunk/; revision=72711
2016-09-17 20:48:40 +00:00
Dmitry Chapyshev 4e4d86df9c [NLS] Add source data for 1006, 1026, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258 codepages
svn path=/trunk/; revision=72710
2016-09-17 20:27:00 +00:00
Dmitry Chapyshev cc3ce56acd [NLS] Update NLS file for 037, 500, 874, 875 codepages
svn path=/trunk/; revision=72709
2016-09-17 20:17:04 +00:00
Dmitry Chapyshev 40a137dfa8 [TXT2NLS] TransUniDefaultChar has to be received from WideCharTable. TransDefaultChar has to be received from MultiByteTable (or from DBCS table)
svn path=/trunk/; revision=72708
2016-09-17 20:03:13 +00:00
Dmitry Chapyshev c75bd6ee1e [NLS] Add source data for 037, 424, 500, 874, 875 codepages
svn path=/trunk/; revision=72707
2016-09-17 19:27:16 +00:00
Dmitry Chapyshev 0dff1696a2 [NLS] Update NLS files. Part 1/x
svn path=/trunk/; revision=72706
2016-09-17 19:01:54 +00:00
Mark Jansen d1a6ea86f7 [ATL] Do not corrupt the internal state of the CSimpleArray when allocation fails. Patch by Katayama Hirofumi MZ. CORE-11946 #comment Committed, thanks!
svn path=/trunk/; revision=72705
2016-09-17 17:54:16 +00:00
Dmitry Chapyshev ea13a8e917 [NLS2TXT] Add missed check for default char
[TXT2NLS] Size of glyph table in words (create_nls uses wrong size)

svn path=/trunk/; revision=72704
2016-09-17 14:04:32 +00:00
Dmitry Chapyshev fc49388a2a [NLS] Update nls files for 437 and 775 codepages
* Fixes 16 tests for ntdll:RtlGenerate8dot3Name

svn path=/trunk/; revision=72703
2016-09-17 12:41:29 +00:00
Dmitry Chapyshev 25dc758375 [NLS] Added source data for NLS files (generated by nls2txt from our files)
svn path=/trunk/; revision=72702
2016-09-17 12:29:49 +00:00