reactos.git
6 years ago[NTOS]: Addendum to r75142: Use strsafe printf functions (suggested by Thomas).
Hermès Bélusca-Maïto [Mon, 19 Jun 2017 20:37:36 +0000 (20:37 +0000)]
[NTOS]: Addendum to r75142: Use strsafe printf functions (suggested by Thomas).

svn path=/trunk/; revision=75144

6 years ago[CMLIB][NTOS]: Use correct parameter type for the 4th parameter of CmpGetValueData().
Hermès Bélusca-Maïto [Mon, 19 Jun 2017 20:14:09 +0000 (20:14 +0000)]
[CMLIB][NTOS]: Use correct parameter type for the 4th parameter of CmpGetValueData().
[CMLIB]: Fix debug.h inclusion.
[NTOS]: Use RtlCopyUnicodeString() to initialize the contents of FullName.

svn path=/trunk/; revision=75143

6 years ago[NTOS]: Fixes & improvements:
Hermès Bélusca-Maïto [Mon, 19 Jun 2017 20:07:15 +0000 (20:07 +0000)]
[NTOS]: Fixes & improvements:
- Fix a bug in CmpInitHiveFromFile(): correctly set the MaximumLength value of NewHive->FileFullPath;
- Code simplification: no need to use temporary ANSI string operations followed by UNICODE conversion, when one can do the same thing directly in UNICODE.
- Use NULL for NULL handles.

svn path=/trunk/; revision=75142

6 years ago[NTOS]: Improve parameter namings in CmpLinkKeyToHive() and some of its DPRINTs;...
Hermès Bélusca-Maïto [Mon, 19 Jun 2017 20:04:25 +0000 (20:04 +0000)]
[NTOS]: Improve parameter namings in CmpLinkKeyToHive() and some of its DPRINTs; use UNICODE_NULL where needed.

svn path=/trunk/; revision=75141

6 years ago[WIN32SS] Rewrite GetFontFamilyInfoForSubstitutes to use the subsitute list loaded...
Mark Jansen [Mon, 19 Jun 2017 20:00:36 +0000 (20:00 +0000)]
[WIN32SS] Rewrite GetFontFamilyInfoForSubstitutes to use the subsitute list loaded at boot. Patch by Katayama Hirofumi MZ. CORE-13064

svn path=/trunk/; revision=75140

6 years ago[NTOS]: Improve some DPRINTs, and variables naming + buffer data type in CmpAddToHive...
Hermès Bélusca-Maïto [Mon, 19 Jun 2017 19:55:14 +0000 (19:55 +0000)]
[NTOS]: Improve some DPRINTs, and variables naming + buffer data type in CmpAddToHiveFileList().

svn path=/trunk/; revision=75139

6 years ago[NTDLL_APITEST]: Temporarily disable part of the NtLoad/UnloadKey test (related to...
Hermès Bélusca-Maïto [Mon, 19 Jun 2017 19:50:49 +0000 (19:50 +0000)]
[NTDLL_APITEST]: Temporarily disable part of the NtLoad/UnloadKey test (related to force-unload a hive while some handles to subkeys are still opened), because this creates memory corruptions, due to the fact we currently don't perform force-unloads correctly.
CORE-13448

svn path=/trunk/; revision=75138

6 years ago[NTOS]: Fix the ObpLookupObjectName() prototype in regard to r75133.
Hermès Bélusca-Maïto [Mon, 19 Jun 2017 16:47:45 +0000 (16:47 +0000)]
[NTOS]: Fix the ObpLookupObjectName() prototype in regard to r75133.

svn path=/trunk/; revision=75136

6 years ago[APPHELP] Implement Sdb[Un]packAppCompatData and SdbGetAppCompatDataSize. CORE-13284
Mark Jansen [Mon, 19 Jun 2017 16:37:47 +0000 (16:37 +0000)]
[APPHELP] Implement Sdb[Un]packAppCompatData and SdbGetAppCompatDataSize. CORE-13284

svn path=/trunk/; revision=75135

6 years ago[NTOS]: Avoid initializing variables within if-conditions.
Hermès Bélusca-Maïto [Mon, 19 Jun 2017 16:30:17 +0000 (16:30 +0000)]
[NTOS]: Avoid initializing variables within if-conditions.

svn path=/trunk/; revision=75134

6 years ago[NTOS]: Revert the pool tag change from r75128, and explain in comment why we cannot...
Hermès Bélusca-Maïto [Mon, 19 Jun 2017 16:29:44 +0000 (16:29 +0000)]
[NTOS]: Revert the pool tag change from r75128, and explain in comment why we cannot actually use it.

svn path=/trunk/; revision=75133

6 years ago[NTOS]: Fix typos.
Hermès Bélusca-Maïto [Mon, 19 Jun 2017 15:26:08 +0000 (15:26 +0000)]
[NTOS]: Fix typos.

svn path=/trunk/; revision=75132

6 years ago[APPSHIM_APITEST] Addendum to r75041, add a missed line.
Mark Jansen [Mon, 19 Jun 2017 15:24:05 +0000 (15:24 +0000)]
[APPSHIM_APITEST] Addendum to r75041, add a missed line.

svn path=/trunk/; revision=75131

6 years ago[SHELL32] Partially sync shlexec with wine staging 2.9 CORE-13362 CORE-13407
Mark Jansen [Mon, 19 Jun 2017 15:04:20 +0000 (15:04 +0000)]
[SHELL32] Partially sync shlexec with wine staging 2.9 CORE-13362 CORE-13407

svn path=/trunk/; revision=75130

6 years ago[ATL]
Giannis Adamopoulos [Mon, 19 Jun 2017 14:52:51 +0000 (14:52 +0000)]
[ATL]
-Add a new template called CComQIIDPtr and its partner I_ID macro. Its purpose is to be a gcc compatible version of CComQIPtr.
-CComQIIDPtr<I_ID(Itype)> is the gcc compatible version of CComQIPtr<Itype>
- WARNING: this is not tested yet.

svn path=/trunk/; revision=75129

6 years ago[NTOS]: Minor fixes:
Hermès Bélusca-Maïto [Mon, 19 Jun 2017 14:48:59 +0000 (14:48 +0000)]
[NTOS]: Minor fixes:
- Use NULL instead of 'zero' for setting a handle / pointer to NULL;
- Don't hardcode an array size; fix a comment;
- Use ExFreePoolWithTag();
- Whitespace fix.

svn path=/trunk/; revision=75128

6 years ago[SHELL32]
Giannis Adamopoulos [Mon, 19 Jun 2017 14:27:51 +0000 (14:27 +0000)]
[SHELL32]
-Rename constructors from Class_Creator to Class_CreateInstance. Prepend the ones that are exported from rshell with RSHELL_. The reasoning is that rshell will always use our code but whether or not internal classes will be used in shellmenu lib will be controlled by preprocessor definitions in shellmenu.h

[BROWSEUI]
-Rename more constructors to use the _CreateInstance suffix.

[RSHELL]
- The functions that let rshell export some objects have the RSHELL_ postfix but they are not exported as such.

[EXPLORER]
- Rename _CStartMenu_Constructor to _CStartMenu_CreateInstance.

svn path=/trunk/; revision=75127

6 years ago[USER.EXE]: Add a *stub* user.exe to make the DirectX 9.0 installer happy (it searche...
Hermès Bélusca-Maïto [Mon, 19 Jun 2017 14:24:48 +0000 (14:24 +0000)]
[USER.EXE]: Add a *stub* user.exe to make the DirectX 9.0 installer happy (it searches user.exe for existence for no reason, and if it cannot find it, the installer bails out). (WARNING: This is in NO WAY our implementation of WoW16!!)
Reported on https://www.reactos.org/forum/viewtopic.php?f=4&t=15576 , http://reactos.org/forum/viewtopic.php?f=4&t=16498 .
This is not a ReactOS problem per se, because it also happens on Windows, as reported here:
https://xpetips.wordpress.com/2009/09/18/installing-directx-9-0c-on-xpe/ and http://www.xpembedded.info/DirectX_v9_0c_and_finding_missing_components_.html .

svn path=/trunk/; revision=75126

6 years ago[PRINTING]
Colin Finck [Mon, 19 Jun 2017 14:18:19 +0000 (14:18 +0000)]
[PRINTING]
- Implement GetPrinterDataA, GetPrinterDataExA, GetPrinterDataExW, GetPrinterDataW, SetPrinterDataA, SetPrinterDataExA, SetPrinterDataExW, SetPrinterDataW.
  They support all features for Print Server and Printer Handles (minus security checks!)
  I've also added tests for them.
- Store Printer data in SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers instead of SYSTEM\CurrentControlSet\Control\Print\Printers and create a registry symlink from the former path to the new one just like Windows does.
  According to https://social.technet.microsoft.com/Forums/windowsserver/en-US/a683ab54-c43c-4ebe-af8f-1f7a65af2a51, this is needed when having >900 printers to work around a size limit of the SYSTEM registry hive. And if Windows has both locations, we need both for compatibility anyway.
- Add several settings which are queried by the new Printer Data APIs when working with Print Server Handles.
- Store the job directory in the Windows-compatible "DefaultSpoolDirectory" setting and make use of it.
- Revert the ASSERTs in LocalEnumPrinters again to let us verify the NULL pointer exceptions in localspl_apitest (thanks Serge! CORE-13433)
- Translate ERROR_INVALID_NAME to ERROR_INVALID_PRINTER_NAME in all cases in OpenPrinterW (thanks Victor! CORE-13412)
- Make EnumMonitorsW and EnumPortsW in spoolss more robust against failing Print Monitors.
- Remove the wrong !phPrinter check in OpenPrinterW to make Print Server Handles work for real.
- Fix error handling when memory allocation fails: HeapAlloc doesn't set last error, so it's just wrong to query or return it.

One more item done from https://reactos.org/wiki/Printing !
This is all still a big Work-in-Progress, with many subtle bugs deep down in ReactOS, for which I need to open additional tickets. But I didn't want to make this commit even bigger..

svn path=/trunk/; revision=75125

6 years ago[NETAPI32]
Eric Kohl [Mon, 19 Jun 2017 14:06:04 +0000 (14:06 +0000)]
[NETAPI32]
Implement I_BrowserQueryEmulatedDomains, I_BrowserResetStatistics and I_BrowserSetNetlogonState. This functions calls their counterpart in the computer browser service.

svn path=/trunk/; revision=75124

6 years ago[INCLUDE]
Eric Kohl [Mon, 19 Jun 2017 13:48:40 +0000 (13:48 +0000)]
[INCLUDE]
Replace the lmbrowsr.h form wine by a more complete psdk version.
Lmbrowsr.h was a part of Visual Studio 6 but Microsoft removed it from the PSDK later.

svn path=/trunk/; revision=75123

6 years ago[MSPAINT]
Benedikt Freisen [Mon, 19 Jun 2017 13:02:09 +0000 (13:02 +0000)]
[MSPAINT]
- clicking the blank dark gray area will now reset the selection -- patch by Katayama Hirofumi MZ

CORE-13452 #resolve

svn path=/trunk/; revision=75122

6 years ago[NFSD]
Pierre Schweitzer [Mon, 19 Jun 2017 11:51:48 +0000 (11:51 +0000)]
[NFSD]
Misc. fixes by Thomas

svn path=/trunk/; revision=75121

6 years ago[NFS]
Pierre Schweitzer [Mon, 19 Jun 2017 11:36:17 +0000 (11:36 +0000)]
[NFS]
Add the missing pieces for the NFS filesystem: registry information.
Register the pnfs service (nfsd) as manual, so that it only gets started when user wants/needs it.
Same goes to the nfs41_driver service (driver). nfsd as a code modification specific to ReactOS so that it loads the driver
as soon as it gets started.

That means, in order to use NFS in ReactOS, you need to start the nfsd service: net start nfsd
Then, you can mount your remote share: net use * \\IP\path (you can replace * by a letter, e.g. z:)
There's no GUI stuff implemented yet for this in MPR.

If you want to access the share without mounting it in ReactOS (like, in Explorer), you've to be aware of a small detail:
after you start pnfs service, in explorer bar, type \\IP\nfs4\path. This is required so that NFS driver can claim the path
without troubles.

Something else you've to know: so far, tests where conducted with a remote share being 777, read-only and anonymously mounted.
Other scenarii are likely to fail (auth, rw, server?!, etc.).

Also note that if you attempt to mount a share on which you don't have traverse right, mounting will succeed but any later
operation will fail, refused by the remote NFS server. This is a bit different than the behavior on Linux where mount is denied
if traverse is not granted.

Final thing: this is highly experimental and not fully implemented yet: expect not working stuff, broken asserts, deadlocks, etc.

CORE-8204

svn path=/trunk/; revision=75120

6 years ago[NFSD]
Pierre Schweitzer [Mon, 19 Jun 2017 09:40:12 +0000 (09:40 +0000)]
[NFSD]
Fix build?

svn path=/trunk/; revision=75119

6 years ago[LIBTIRPC]
Pierre Schweitzer [Mon, 19 Jun 2017 09:09:22 +0000 (09:09 +0000)]
[LIBTIRPC]
Add a spec file

svn path=/trunk/; revision=75118

6 years ago[NFS]
Pierre Schweitzer [Mon, 19 Jun 2017 08:20:13 +0000 (08:20 +0000)]
[NFS]
More properly fix build for GCC/MSVC. By Thomas.

svn path=/trunk/; revision=75117

6 years ago[NFSD]
Pierre Schweitzer [Mon, 19 Jun 2017 08:17:45 +0000 (08:17 +0000)]
[NFSD]
Fix MSVC build by Thomas.

svn path=/trunk/; revision=75116

6 years ago[PDSK]
Pierre Schweitzer [Mon, 19 Jun 2017 08:02:19 +0000 (08:02 +0000)]
[PDSK]
Complete iptypes.h

svn path=/trunk/; revision=75115

6 years ago[NFSD]
Pierre Schweitzer [Mon, 19 Jun 2017 07:57:04 +0000 (07:57 +0000)]
[NFSD]
Import the nfsd deamon from the nfs41 project.

CORE-8204

svn path=/trunk/; revision=75114

6 years ago[LIBTIRPC]
Pierre Schweitzer [Mon, 19 Jun 2017 07:45:14 +0000 (07:45 +0000)]
[LIBTIRPC]
As suggested, move to 3rdparty

svn path=/trunk/; revision=75113

6 years ago[NETAPI32]
Eric Kohl [Sun, 18 Jun 2017 22:52:05 +0000 (22:52 +0000)]
[NETAPI32]
NetEnumerateComputerNames: Convert the returned array of strings.

svn path=/trunk/; revision=75112

6 years ago[NETAPI32]
Eric Kohl [Sun, 18 Jun 2017 22:43:24 +0000 (22:43 +0000)]
[NETAPI32]
Implement NetConnectionEnum(). This function calls its counterpart in the server service.

svn path=/trunk/; revision=75111

6 years ago[RXCE]
Pierre Schweitzer [Sun, 18 Jun 2017 22:15:34 +0000 (22:15 +0000)]
[RXCE]
lolfix build

svn path=/trunk/; revision=75110

6 years ago[NFS][RXCE]: Fix MSVC build (definitively?)
Hermès Bélusca-Maïto [Sun, 18 Jun 2017 21:47:52 +0000 (21:47 +0000)]
[NFS][RXCE]: Fix MSVC build (definitively?)

svn path=/trunk/; revision=75109

6 years ago[NTOS:SE]
Eric Kohl [Sun, 18 Jun 2017 21:43:09 +0000 (21:43 +0000)]
[NTOS:SE]
Add the CmpAssignSecurityDescriptor() stub and improve some comments.

svn path=/trunk/; revision=75108

6 years ago[NFS]
Pierre Schweitzer [Sun, 18 Jun 2017 21:40:52 +0000 (21:40 +0000)]
[NFS]
Remove dependency already brought in by rxce

svn path=/trunk/; revision=75107

6 years ago[RDBSS]
Pierre Schweitzer [Sun, 18 Jun 2017 21:27:56 +0000 (21:27 +0000)]
[RDBSS]
Clean up CMake files, based on suggestions by Hermès.
Might fix MSVC build.

svn path=/trunk/; revision=75106

6 years ago[NFS]
Pierre Schweitzer [Sun, 18 Jun 2017 20:49:46 +0000 (20:49 +0000)]
[NFS]
Import the NFS file system mini-redirector and the associated network provider.
Not all the pieces are in place to make it working.

CORE-8204

svn path=/trunk/; revision=75105

6 years ago[NTOS:MM]
Thomas Faber [Sun, 18 Jun 2017 20:10:44 +0000 (20:10 +0000)]
[NTOS:MM]
- Directly pass the file object to MmCreateDataFileSection

svn path=/trunk/; revision=75104

6 years ago[NTOS:PNP]
Thomas Faber [Sun, 18 Jun 2017 19:48:45 +0000 (19:48 +0000)]
[NTOS:PNP]
- If PFN tracing is enabled, create a device object that allows the user to trigger a PFN dump (e.g. via "type \\.\Global\GLOBALROOT\Device\PfnDump")

svn path=/trunk/; revision=75103

6 years ago[NPFS]
Thomas Faber [Sun, 18 Jun 2017 18:08:52 +0000 (18:08 +0000)]
[NPFS]
- Misc changes to improve code clarity

svn path=/trunk/; revision=75102

6 years ago[LIBTIFF]
Thomas Faber [Sun, 18 Jun 2017 17:50:12 +0000 (17:50 +0000)]
[LIBTIFF]
- Update to version 4.0.8
CORE-13451

svn path=/trunk/; revision=75101

6 years ago[MBEDTLS]
Thomas Faber [Sun, 18 Jun 2017 17:25:30 +0000 (17:25 +0000)]
[MBEDTLS]
- Update to version 2.4.2
CORE-13451

svn path=/trunk/; revision=75100

6 years ago[LIBTIRPC]
Thomas Faber [Sun, 18 Jun 2017 17:01:14 +0000 (17:01 +0000)]
[LIBTIRPC]
- Try to fix VC2010 build as well
CORE-8204

svn path=/trunk/; revision=75099

6 years ago[LIBTIRPC]
Thomas Faber [Sun, 18 Jun 2017 16:41:23 +0000 (16:41 +0000)]
[LIBTIRPC]
- Fix MSVC build
CORE-8204

svn path=/trunk/; revision=75098

6 years ago[LIBTIRPC]
Pierre Schweitzer [Sun, 18 Jun 2017 15:41:54 +0000 (15:41 +0000)]
[LIBTIRPC]
Fix MSVC build?

svn path=/trunk/; revision=75097

6 years ago[LIBTIRPC]
Pierre Schweitzer [Sun, 18 Jun 2017 15:31:06 +0000 (15:31 +0000)]
[LIBTIRPC]
Import the libtirpc from the nfs41 project.

CORE-8204

svn path=/trunk/; revision=75096

6 years ago[LIBMPG123]
Thomas Faber [Sun, 18 Jun 2017 14:08:53 +0000 (14:08 +0000)]
[LIBMPG123]
- Add missing files
CORE-13451

svn path=/trunk/; revision=75094

6 years ago[LIBMPG123]
Thomas Faber [Sun, 18 Jun 2017 14:03:50 +0000 (14:03 +0000)]
[LIBMPG123]
- Update to version 1.25.0
CORE-13451

svn path=/trunk/; revision=75093

6 years ago[LIBMPG123]
Thomas Faber [Sun, 18 Jun 2017 13:35:40 +0000 (13:35 +0000)]
[LIBMPG123]
- Fix ssize_t
CORE-13451

svn path=/trunk/; revision=75092

6 years ago[LIBMPG123]
Thomas Faber [Sun, 18 Jun 2017 13:21:16 +0000 (13:21 +0000)]
[LIBMPG123]
- Update to version 1.23.0
CORE-13451

svn path=/trunk/; revision=75091

6 years ago[SHELL32] -CMenuBand::SetSite: Don't fail if the site doesn't support the SID_STopLev...
Giannis Adamopoulos [Sun, 18 Jun 2017 12:34:30 +0000 (12:34 +0000)]
[SHELL32] -CMenuBand::SetSite: Don't fail if the site doesn't support the SID_STopLevelBrowser service.

svn path=/trunk/; revision=75090

6 years ago[LIBPNG]
Thomas Faber [Sun, 18 Jun 2017 12:19:52 +0000 (12:19 +0000)]
[LIBPNG]
- Update to version 1.6.29
CORE-13451

svn path=/trunk/; revision=75089

6 years ago[LIBSAMPLERATE]
Thomas Faber [Sun, 18 Jun 2017 11:41:14 +0000 (11:41 +0000)]
[LIBSAMPLERATE]
- Update to version 1.0.9
CORE-13451

svn path=/trunk/; revision=75088

6 years ago[NTOS:MM]
Thomas Faber [Sun, 18 Jun 2017 11:18:41 +0000 (11:18 +0000)]
[NTOS:MM]
- Implement MiMapLockedPagesInUserSpace and MiUnmapLockedPagesInUserSpace.
CORE-13444 #resolve

svn path=/trunk/; revision=75087

6 years ago[DESK]
Pierre Schweitzer [Sun, 18 Jun 2017 08:48:12 +0000 (08:48 +0000)]
[DESK]
French translation for Eric's work on r75085.

CORE-8352

svn path=/trunk/; revision=75086

6 years ago[DESK]
Eric Kohl [Sun, 18 Jun 2017 08:31:20 +0000 (08:31 +0000)]
[DESK]
Replace the screen resolution change confirmation message box by a proper dialog box with timeout.
CORE-8352

svn path=/trunk/; revision=75085

6 years ago[KMTESTS:MM]
Thomas Faber [Sun, 18 Jun 2017 08:00:29 +0000 (08:00 +0000)]
[KMTESTS:MM]
- Test unaligned address and addresses close to MmHighestUserAddress in MmMapLockedPagesSpecifyCache test
CORE-13444

svn path=/trunk/; revision=75084

6 years ago[NTOS]: Use SEH inside CmQueryKey(), as it can be called with user-mode parameter...
Hermès Bélusca-Maïto [Sat, 17 Jun 2017 23:34:32 +0000 (23:34 +0000)]
[NTOS]: Use SEH inside CmQueryKey(), as it can be called with user-mode parameter KeyInformation. Remove unused code in CmLoadKey().
I've noticed that in cmapi.c / ntapi.c we do not correctly check the validity of some OBJECT_ATTRIBUTES variables and user-mode vs. kernel-mode registry handles.

svn path=/trunk/; revision=75083

6 years ago[DESK]
Eric Kohl [Sat, 17 Jun 2017 23:21:16 +0000 (23:21 +0000)]
[DESK]
- Add a message box to ask the user to confirm the screen resolution change.
- The resolution change will be reverted if the user clicks 'No'.
A separate dialog box with a timer will be added next.

svn path=/trunk/; revision=75082

6 years ago[PSDK]
Thomas Faber [Sat, 17 Jun 2017 20:26:53 +0000 (20:26 +0000)]
[PSDK]
- Properly add NTSTATUS code

svn path=/trunk/; revision=75081

6 years ago[NTOS]: Improve a DPRINT.
Hermès Bélusca-Maïto [Sat, 17 Jun 2017 20:16:40 +0000 (20:16 +0000)]
[NTOS]: Improve a DPRINT.

svn path=/trunk/; revision=75080

6 years agoJust use REG_FORCE_UNLOAD since we're at it.
Hermès Bélusca-Maïto [Sat, 17 Jun 2017 20:13:17 +0000 (20:13 +0000)]
Just use REG_FORCE_UNLOAD since we're at it.

svn path=/trunk/; revision=75079

6 years ago[NTDLL_APITEST]: Add tests for NtLoadKey and NtUnloadKey.
Hermès Bélusca-Maïto [Sat, 17 Jun 2017 20:08:48 +0000 (20:08 +0000)]
[NTDLL_APITEST]: Add tests for NtLoadKey and NtUnloadKey.
CORE-13448

svn path=/trunk/; revision=75078

6 years ago[GFLAGS]
Pierre Schweitzer [Sat, 17 Jun 2017 20:02:51 +0000 (20:02 +0000)]
[GFLAGS]
Add some usage

svn path=/trunk/; revision=75077

6 years ago[FREETYPE] Update to v2.8. By Katayama Hirofumi MZ, confirmed by me. CORE-13295
Amine Khaldi [Sat, 17 Jun 2017 19:04:57 +0000 (19:04 +0000)]
[FREETYPE] Update to v2.8. By Katayama Hirofumi MZ, confirmed by me. CORE-13295

svn path=/trunk/; revision=75076

6 years ago[BOOTDATA]
Pierre Schweitzer [Sat, 17 Jun 2017 18:00:18 +0000 (18:00 +0000)]
[BOOTDATA]
Use a gflag compatible way to enable Page Heap

svn path=/trunk/; revision=75075

6 years ago[GFLAGS]
Pierre Schweitzer [Sat, 17 Jun 2017 12:34:08 +0000 (12:34 +0000)]
[GFLAGS]
Add a quick'n'dirty implementation of gflags utility.
It only covers some page heap usage (enough to enable/disable DPH :-)).
It's syntax compatible with MS one, and with what's written down in ROS wiki.

See: https://www.reactos.org/wiki/Debugging#Debug_Page_Heap_.28DPH.29

svn path=/trunk/; revision=75073

6 years ago[SHELL32] -CMenuBand: forward WM_WININICHANGE to CMenuToolbarBase so that when themes...
Giannis Adamopoulos [Sat, 17 Jun 2017 07:43:52 +0000 (07:43 +0000)]
[SHELL32] -CMenuBand: forward WM_WININICHANGE to CMenuToolbarBase so that when themes get enabled, the menu bar in explorer becomes flat immediately.

svn path=/trunk/; revision=75072

6 years ago[BROWSEUI]
Giannis Adamopoulos [Sat, 17 Jun 2017 07:28:35 +0000 (07:28 +0000)]
[BROWSEUI]
- CShellBrowser: Propagate WM_WININICHANGE to all immediate children.
- CInternetToolbar: Forward WM_WININICHANGE to the menu band to make aware that the flat menus option changed.

svn path=/trunk/; revision=75071

6 years ago[NTOS]: Employ the simple CMP_ASSERT_KCB_LOCK() macro to perform these asserts.
Hermès Bélusca-Maïto [Sat, 17 Jun 2017 01:22:17 +0000 (01:22 +0000)]
[NTOS]: Employ the simple CMP_ASSERT_KCB_LOCK() macro to perform these asserts.

svn path=/trunk/; revision=75070

6 years ago[NTOS]: Whitespace fixes only.
Hermès Bélusca-Maïto [Sat, 17 Jun 2017 01:21:21 +0000 (01:21 +0000)]
[NTOS]: Whitespace fixes only.

svn path=/trunk/; revision=75069

6 years ago[User32]
James Tabor [Fri, 16 Jun 2017 22:49:36 +0000 (22:49 +0000)]
[User32]
- Based on patch by Nikolay Sivov : Fix static control id. Fixes dialog tests, see CORE-13362.

svn path=/trunk/; revision=75068

6 years ago[User32]
James Tabor [Fri, 16 Jun 2017 22:44:21 +0000 (22:44 +0000)]
[User32]
- Skip desktop for positive index. See CORE-13362.

svn path=/trunk/; revision=75067

6 years ago[NTOS]: Fix a bit the CmUnloadKey() function:
Hermès Bélusca-Maïto [Fri, 16 Jun 2017 21:06:04 +0000 (21:06 +0000)]
[NTOS]: Fix a bit the CmUnloadKey() function:
- When a hive is unloaded, we *must* set the HIVE_IS_UNLOADING flag before doing anything else (as other code in Cm depends on this);
- If we don't force a hive unload, we *must* check whether there are other opened handles to keys inside this hive, and if so, we must fail.
  If this is a force-unload however, we *must* invalidate/close all the opened handles to keys inside this hive, BUT this is left UNIMPLEMENTED at the moment (and therefore expect the already existing problems linked to this to still happen).
- Move the HvFree(Hive); call at the very end, just before deleting the Cm hive, and as is done in CmpDestroyHive().

svn path=/trunk/; revision=75066

6 years ago[NTOS]: Reorder the destruction code in CmpDestroyHive() to make it similar to the...
Hermès Bélusca-Maïto [Fri, 16 Jun 2017 21:02:27 +0000 (21:02 +0000)]
[NTOS]: Reorder the destruction code in CmpDestroyHive() to make it similar to the one in CmUnloadKey(). Same remark for a comment in NtUnloadKey2() too.

svn path=/trunk/; revision=75065

6 years ago[NTOS]: Few improvements:
Hermès Bélusca-Maïto [Fri, 16 Jun 2017 20:59:15 +0000 (20:59 +0000)]
[NTOS]: Few improvements:
- Remove few unneeded PCMHIVE "backwards"-casts, and in particular the 1st parameter of CmpUnlinkHiveFromMaster().
- Improve the dprints in CmCountOpenSubKeys().

svn path=/trunk/; revision=75064

6 years ago[NTOS]: Remove trailing whitespace ; Use a correct pool tag in the CmpFree() call...
Hermès Bélusca-Maïto [Fri, 16 Jun 2017 20:44:51 +0000 (20:44 +0000)]
[NTOS]: Remove trailing whitespace ; Use a correct pool tag in the CmpFree() call in CmpFreeDelayItem().

svn path=/trunk/; revision=75063

6 years ago[USBPORT] Bring-in the usbport driver created by Vadim Galyant. CR-111 GitHub PR...
Amine Khaldi [Fri, 16 Jun 2017 19:20:03 +0000 (19:20 +0000)]
[USBPORT] Bring-in the usbport driver created by Vadim Galyant. CR-111 GitHub PR #27. This is the first module out of many to come, so stay tuned! Many thanks to everyone involved in the code review. Very special thanks for Thomas as his help, insight and reviews helped tremendously.

svn path=/trunk/; revision=75062

6 years ago[D3D8][D3D9][DDRAW][WINED3D] Sync with Wine Staging 2.9. This work couldn't have...
Amine Khaldi [Fri, 16 Jun 2017 18:50:42 +0000 (18:50 +0000)]
[D3D8][D3D9][DDRAW][WINED3D] Sync with Wine Staging 2.9. This work couldn't have been committed without Sebastian Gasiorek's work on CORE-11331 so thanks again! Dedicated to Daniel. CORE-13362

svn path=/trunk/; revision=75061

6 years ago[PSDK] Update D3DCOLOR_ARGB and D3DQUERYTYPE. [DXSDK] Add missing D3DDEVICEDESC1...
Amine Khaldi [Fri, 16 Jun 2017 18:40:31 +0000 (18:40 +0000)]
[PSDK] Update D3DCOLOR_ARGB and D3DQUERYTYPE. [DXSDK] Add missing D3DDEVICEDESC1, D3DDEVICEDESC2, D3DFINDDEVICERESULT1 and D3DFINDDEVICERESULT2.

svn path=/trunk/; revision=75060

6 years ago[WIN32SS] Implement D3DKMT{Create,Destroy}DCFromMemory. Brought to you by Sebastian...
Amine Khaldi [Fri, 16 Jun 2017 18:38:08 +0000 (18:38 +0000)]
[WIN32SS] Implement D3DKMT{Create,Destroy}DCFromMemory. Brought to you by Sebastian Gasiorek. CORE-11331 CORE-13362

svn path=/trunk/; revision=75059

6 years ago[SHELL32] -CMenuBand: When the flat menus style is enabled, shell menu bars should...
Giannis Adamopoulos [Fri, 16 Jun 2017 17:53:50 +0000 (17:53 +0000)]
[SHELL32] -CMenuBand: When the flat menus style is enabled, shell menu bars should not look like toolbars.

svn path=/trunk/; revision=75058

6 years ago[KMTESTS:MM]
Thomas Faber [Fri, 16 Jun 2017 11:06:33 +0000 (11:06 +0000)]
[KMTESTS:MM]
- In the MmMapLockedPagesSpecifyCache test, try to allocate & free memory or unmap a section view in the mapped buffer space
CORE-13444

svn path=/trunk/; revision=75057

6 years ago[ADVAPI32]
Eric Kohl [Thu, 15 Jun 2017 23:19:34 +0000 (23:19 +0000)]
[ADVAPI32]
ScmRpcStatusToWinError: Convert STATUS_ACCESS_VIOLATION to ERROR_INVALID_HANDLE.
UnlockServiceDatabase returns ERROR_INVALID_SERVICE_LOCK instead of ERROR_INVALID_HANDLE.

svn path=/trunk/; revision=75053

6 years ago[ADVAPI32]
Eric Kohl [Thu, 15 Jun 2017 21:40:12 +0000 (21:40 +0000)]
[ADVAPI32]
CreateServiceA/W: Call SetLastError() in case of success too.

svn path=/trunk/; revision=75052

6 years ago[NTOS:IO]
Thomas Faber [Thu, 15 Jun 2017 18:32:14 +0000 (18:32 +0000)]
[NTOS:IO]
- Pass the class key handle as a parameter to IopAttachFilterDrivers, since we already opened it in PipCallDriverAddDevice.
CORE-13336 #resolve

svn path=/trunk/; revision=75051

6 years ago[NTOS:IO]
Thomas Faber [Thu, 15 Jun 2017 16:14:01 +0000 (16:14 +0000)]
[NTOS:IO]
- Consistently treat class filters as optional in IopAttachFilterDrivers
CORE-13336

svn path=/trunk/; revision=75049

6 years ago[NTOS:IO]
Thomas Faber [Thu, 15 Jun 2017 13:51:09 +0000 (13:51 +0000)]
[NTOS:IO]
- Simplify logic in PipCallDriverAddDevice.
CORE-13336

svn path=/trunk/; revision=75048

6 years ago[NTOS:IO]
Thomas Faber [Thu, 15 Jun 2017 13:33:55 +0000 (13:33 +0000)]
[NTOS:IO]
- Addendum to r75046: add missing header change.
CORE-13336

svn path=/trunk/; revision=75047

6 years ago[NTOS:IO]
Thomas Faber [Thu, 15 Jun 2017 13:25:26 +0000 (13:25 +0000)]
[NTOS:IO]
- Pass Enum subkey handle to IopAttachFilterDrivers, since we've already opened it in PipCallDriverAddDevice.
CORE-13336

svn path=/trunk/; revision=75046

6 years ago[WIN32K:NTUSER]
Thomas Faber [Thu, 15 Jun 2017 12:16:09 +0000 (12:16 +0000)]
[WIN32K:NTUSER]
- Fix clipboard lock check in UserSetClipboardData. Fixes 24 user32:clipboard tests.
CORE-13414 #resolve

svn path=/trunk/; revision=75045

6 years ago[ADVAPI32]
Eric Kohl [Thu, 15 Jun 2017 09:29:22 +0000 (09:29 +0000)]
[ADVAPI32]
OpenServiceA/W: Call SetLastError() in case of success too.

svn path=/trunk/; revision=75044

6 years ago[RTL]
Thomas Faber [Thu, 15 Jun 2017 06:47:42 +0000 (06:47 +0000)]
[RTL]
- Implement RtlIsCriticalSectionLocked and RtlIsCriticalSectionLockedByThread
CORE-13436 #resolve

svn path=/trunk/; revision=75043

6 years ago[NETAPI32]
Eric Kohl [Thu, 15 Jun 2017 00:21:07 +0000 (00:21 +0000)]
[NETAPI32]
Add obsolete NetRepl functions.

svn path=/trunk/; revision=75042

6 years ago[APITEST] Move RedirectIat into it's own header so that it can be used from multiple...
Mark Jansen [Wed, 14 Jun 2017 15:25:04 +0000 (15:25 +0000)]
[APITEST] Move RedirectIat into it's own header so that it can be used from multiple tests.

svn path=/trunk/; revision=75041

6 years ago[NOTEPAD] Fix default font settings. Patch by Katayama Hirofumi MZ. CORE-13037
Mark Jansen [Wed, 14 Jun 2017 14:22:32 +0000 (14:22 +0000)]
[NOTEPAD] Fix default font settings. Patch by Katayama Hirofumi MZ. CORE-13037

svn path=/trunk/; revision=75040

6 years ago[NETAPI32]
Eric Kohl [Wed, 14 Jun 2017 13:44:11 +0000 (13:44 +0000)]
[NETAPI32]
- Add I_BrowserQueryEmulatedDomains and I_BrowserSetNetlogonState to the new computer browser inferface file.
- Get rid of the now obsolete browsr.c file.

svn path=/trunk/; revision=75039

6 years ago[NETAPI32]
Eric Kohl [Wed, 14 Jun 2017 13:10:36 +0000 (13:10 +0000)]
[NETAPI32]
- Add the computer browser service client interface.
- Add binding code for the computer browser service client interface.

svn path=/trunk/; revision=75038