Commit graph

67475 commits

Author SHA1 Message Date
Mark Jansen f0d4850705 [APPSHIM_APITEST] Add tests for the DisableThemes shim. CORE-11927
svn path=/trunk/; revision=73422
2016-12-04 15:33:28 +00:00
Mark Jansen d39ff22033 [APPSHIM_APITEST] Add tests for display mode shims. CORE-11927
svn path=/trunk/; revision=73421
2016-12-03 21:24:47 +00:00
Eric Kohl 16093a084c [SERVICES]
- Code cleanup.
- ScmCreateOrReferenceServiceImage() and ScmDereferenceServiceImage(): Close the logon token and service process handles properly.
- ScmStartUserModeService(): Store the service process handle in the SERVICE_IMAGE struct.
Patch by Hermès BÉLUSCA - MAÏTO.

svn path=/trunk/; revision=73420
2016-12-03 14:33:07 +00:00
Eric Kohl 3e44ec76e4 [SERVICES]
Tiny fixes.
One fix found by Serge Gautherie.

svn path=/trunk/; revision=73419
2016-12-03 13:54:11 +00:00
Eric Kohl 3ee27dbe81 [SERVICES]
Add more parameter checks to RChangeServiceConfigW().

svn path=/trunk/; revision=73418
2016-12-03 12:55:29 +00:00
Eric Kohl ae1c49c382 [SERVICES]
Implement large parts of RI_ScGetCurrentGroupStateW.

svn path=/trunk/; revision=73417
2016-12-03 12:48:44 +00:00
Eric Kohl 974f97cce5 [SERVICES]
- Get rid of the obsolete USE_SERVICE_START_PENDING option.
- Services do not accept any command when they are in SERVICE_START_PENDING state.
Patch by Hermès BÉLUSCA - MAÏTO.

svn path=/trunk/; revision=73416
2016-12-03 09:33:03 +00:00
Robert Naumann 3d7ae255a1 [TIMEDATE] Update/Fix German and French resource files. Patch by Joachim Henze and Kyle Katarn. CORE-12369
svn path=/trunk/; revision=73415
2016-12-02 22:36:21 +00:00
Robert Naumann 327d464e0c [RAPPS][USERINIT][HIVECLS] Add/Update Italian translation. Patches by Carlo Bramini. Thanks. CORE-9725 #comment rapps_new and usrmgr were not appliable, please check your patches. The others were committed in r73414
svn path=/trunk/; revision=73414
2016-12-02 22:22:28 +00:00
Hermès Bélusca-Maïto 0d21c76ef1 [ROSTESTS]: advapi32_apitest: Add a test to extensively test services command-line arguments. By Thomas Faber.
[ADVAPI32]: Correctly set up both the ANSI and UNICODE service command-line arguments. Adapted from a patch by Thomas Faber. Thanks!

[SERVICES]
- Correctly pack the service command-line arguments in the control packet structure. In particular, the offsets stored in the vector are relative to the beginning of the vector (and not relative to the previous offset ^^). Improve comments...
- Fix the definition of the SCM_CONTROL_PACKET control packet structure to make it Win2k3-compatible, so that we can use Win2k3' advapi32.dll or services.exe on ReactOS and vice-versa.

CORE-9235 CORE-9838

svn path=/trunk/; revision=73413
2016-12-02 20:01:29 +00:00
Robert Naumann b687b6775f [NETSHELL]Add Japanese translation. Patch by Katayama Hirofumi MZ. Thanks. CORE-12514
svn path=/trunk/; revision=73412
2016-12-01 21:09:47 +00:00
Robert Naumann e5d67ba90e [RUNONCE] Add Italian translation. Patch by Carlo Bramini. Thanks. CORE-12488
svn path=/trunk/; revision=73411
2016-12-01 21:06:38 +00:00
Mark Jansen 7b0c55ea0c This does not belong here.
svn path=/trunk/; revision=73410
2016-11-30 20:39:06 +00:00
Mark Jansen 0744770ebe [NETSHELL] Implement NcIsValidConnectionName + tests. Patch by Jared Smudde, modified by me. CORE-11320 #resolve
svn path=/trunk/; revision=73409
2016-11-30 20:31:50 +00:00
Giannis Adamopoulos f9e5da10de Fix build.
svn path=/trunk/; revision=73408
2016-11-29 18:01:35 +00:00
Giannis Adamopoulos 4c9e684463 [SHELL32] - CDefViewBckgrndMenu: Shell_MergeMenus doesn't handle items added by shell extensions correctly so let the folder IContextMenu add its items directly in the menu. CORE-12508
svn path=/trunk/; revision=73407
2016-11-29 17:56:04 +00:00
Giannis Adamopoulos 29310d6f92 [SHELL32] - CDefaultContextMenu::QueryContextMenu : Implement CMF_VERBSONLY flag (needs tests). CORE-11488 (and all its duplicates)
svn path=/trunk/; revision=73406
2016-11-29 15:44:19 +00:00
Giannis Adamopoulos 99548a5a34 [SHELL32]
- CDefViewBckgrndMenu : Add class to handle the background menu of the CDefView and handle stuff that previously were handled by CDefaultContextMenu. Let the shell folders fill their own part of the background context menu.
- CDefView: Create a CDefViewBckgrndMenu instead of a CDefaultContextMenu which was completely wrong.
- CDesktopFolder, CFSFolder: Implement returning the background context menu in CreateViewObject. Note that I am not completely sure that the callback should be adding the Properties item.
- CDefaultContextMenu: Remove code that was moved to CDefViewBckgrndMenu and try to improve the overzealous debug prints regarding the shell extensions.
CORE-12410, CORE-12472

svn path=/trunk/; revision=73405
2016-11-29 15:38:55 +00:00
Giannis Adamopoulos aab0fd5e9d [SHELL32_APITEST] -Test if CFSFolder::GetUIObjectOf can return an IDataObject for 0 cidl.
svn path=/trunk/; revision=73404
2016-11-29 13:27:21 +00:00
James Tabor 8fc6f71e55 [Win32SS]
- Revert HAX : Fix validating region with null. See CORE-12169 and related issues.

svn path=/trunk/; revision=73403
2016-11-28 16:48:39 +00:00
Hermès Bélusca-Maïto d73bbf218c [SERVICES]:
- Fix build.
- Remove now deprecated code (since we use RPC for service commands since revision r13xxx).

svn path=/trunk/; revision=73402
2016-11-27 20:44:09 +00:00
Hermès Bélusca-Maïto 49284f4696 [SERVICES]
- The new ScmDeleteServiceKey (r73400) and the already existing ScmDeleteRegKey are the same functions: remove the old ScmDeleteRegKey and use ScmDeleteServiceKey instead AND rename ScmDeleteServiceKey to ScmDeleteRegKey (as it can be used generically within services.exe).
- Call RegDeleteKeyW for the subkey after we have closed its opened handle.

svn path=/trunk/; revision=73401
2016-11-27 20:39:10 +00:00
Eric Kohl a96ca3a4c1 [SERVICES]
Delete service registry keys recursively.

svn path=/trunk/; revision=73400
2016-11-27 20:12:39 +00:00
Pierre Schweitzer bb759c3378 [NTOSKRNL]
Don't leak FO reference on failure.
Fixes kmtest:NtCreateSection unloading.
Dedicated to Thomas.

CORE-11819
CORE-12475

svn path=/trunk/; revision=73399
2016-11-27 20:11:30 +00:00
Mark Jansen 26627a49b0 [APPHELP][APPHELP_APITEST] Stub ApphelpCheckShellObject + add tests, based on the work of Mislav Blažević. CORE-12476
svn path=/trunk/; revision=73398
2016-11-27 18:33:21 +00:00
Eric Kohl 7fe41a4b39 [SERVICES]
RQueryServiceStatusEx and REnumServicesStatusExW: This way it make a lot more sense!

svn path=/trunk/; revision=73397
2016-11-27 15:49:05 +00:00
Eric Kohl 183b495907 [SERVICES]
REnumServicesStatusExW/W and RQueryServiceStatusEx should not return a non-zero process ID for a stopped service.

svn path=/trunk/; revision=73396
2016-11-27 15:24:49 +00:00
Pierre Schweitzer 444775e662 [KMTESTS:MM]
Test FCB header fields: FileSize, ValidDataLength

CORE-11819
CORE-12475

svn path=/trunk/; revision=73395
2016-11-27 13:39:01 +00:00
Eric Kohl a6eabc0043 [SETUPAPI]
Partial implementation of CMP_RegisterNotification and CMP_UnregisterNotification.

[UMPNPMGR]
Partial implementation of PNP_RegisterNotification and PNP_UnregisterNotification.

CORE-12217 #comment This should fix one of the issues.

svn path=/trunk/; revision=73394
2016-11-27 11:14:25 +00:00
Pierre Schweitzer a3dbf1b448 [KMTESTS:MM]
Playing with EOF shouldn't make you forget EOL!
Addendum to r73392

svn path=/trunk/; revision=73393
2016-11-27 10:56:40 +00:00
Pierre Schweitzer 695beeee78 [KMTESTS:MM]
Check the first byte is really null, in spite of the hack writing.

CORE-11819
CORE-12475

svn path=/trunk/; revision=73392
2016-11-27 10:49:33 +00:00
Pierre Schweitzer 22f4acf925 [NTOSKRNL]
Don't write random byte. Force a value so that it can be easily recognized.

CORE-11819
CORE-12475

svn path=/trunk/; revision=73391
2016-11-27 10:27:43 +00:00
Robert Naumann 3bbcc2cbbe [TRANSLATION] Massive resource maintenance update. 2 oatches by Ștefan Fulea. Thank you! CORE-12326
svn path=/trunk/; revision=73390
2016-11-27 00:15:02 +00:00
Robert Naumann 01d077b3e0 [MODE] Add Russiam Translation. Based on a patch by Nikolay Burshtyn. Thank you. CORE-12202
svn path=/trunk/; revision=73389
2016-11-26 23:58:07 +00:00
Robert Naumann 0cc4d22bd3 [USETUP] Update Russian translation. Patch by Nikolay Burshtyn. Thank you! CORE-12154
svn path=/trunk/; revision=73388
2016-11-26 23:47:36 +00:00
Robert Naumann ef4075bbc4 [GETUNAME] Update Definitions for GetUName to Unicode 8.0. Patch by Baruch Rutman. Thanks a lot! CORE-10722
svn path=/trunk/; revision=73387
2016-11-26 23:25:14 +00:00
Robert Naumann e993655cf8 [SHELL32] Update Japanese translation. Patch by Katayama Hirofumi MZ. Thank you!
svn path=/trunk/; revision=73386
2016-11-26 23:10:22 +00:00
Robert Naumann 9b73cb030e [SETUP/REACTOS] Add Japanese translation. Patch by Katayama Hirofumi MZ. Thank you. CORE-12459
svn path=/trunk/; revision=73385
2016-11-26 23:05:54 +00:00
Pierre Schweitzer 3ff70dc5d5 [NTOSKRNL]
A hack has gained enough XP and levels up! Congratulations to the MmCreateSection() in charge of forcing file cache initialization.
As show by kmtest:NtCreateSection tests and real world FSD (starting with MS FastFAT and Ext2Fsd), caching of a file can be initialized rather late (ie, on first effective read/write).
That means that our current hack is totally opless on newly created files with 0-size where the IRP_MJ_READ is most of the time opless too.
The hack, thanks to its level up, can now force a write (1-byte) in case read was unsuccessful and end of file.
In other words, this is the hack of a hack (and a hack v2).
It fixes a few failing kmtests.
Thomas, Peter, please retry the FSDs on which you are currently working on and report. Thanks :-)

CORE-11819
CORE-12475

svn path=/trunk/; revision=73384
2016-11-26 22:39:08 +00:00
Thomas Faber 89c3520c86 [PSDK][XDK]
- Automatically define __ROS_LONG64__ on LP64 systems. This makes no difference for ROS but makes things easier for downstream users of our headers.
 Patch by Cat Zimmermann.

svn path=/trunk/; revision=73383
2016-11-26 18:33:08 +00:00
Amine Khaldi fb4c861add [WINMM] Properly stub some gfx* functions for Windows mmsys. Addendum to r73381. CORE-12466
svn path=/trunk/; revision=73382
2016-11-26 18:20:25 +00:00
Mark Jansen 0c81653dc2 [WINMM] Stub some gfx* functions for Windows mmsys. Patch by Jared Smudde. CORE-12466 #resolve #comment Thanks!
svn path=/trunk/; revision=73381
2016-11-26 18:12:08 +00:00
Thomas Faber 7e8e4427bf [SHDOCVW]
- Improve stub for _GetStdLocation. Patch by Jared Smudde.
CORE-12467 #resolve

svn path=/trunk/; revision=73380
2016-11-26 17:55:23 +00:00
Pierre Schweitzer 6ca897b261 [SHELL32]
Don't truncate text in French translation.
Patch by Joachim Henze (reactosfanboy)

CORE-12308

svn path=/trunk/; revision=73379
2016-11-26 10:07:57 +00:00
Pierre Schweitzer 7837d0dd2b [NTOSKRNL]
Revert r73376.

CORE-12238

svn path=/trunk/; revision=73378
2016-11-25 22:39:49 +00:00
Mark Jansen 3008f14a0d [REGEDIT] Do not try to dereference a pointer when it is NULL. CORE-11915
svn path=/trunk/; revision=73377
2016-11-25 22:16:39 +00:00
Pierre Schweitzer b671384719 [NTOSKRNL]
Remove old hacks which seem no longer required

svn path=/trunk/; revision=73376
2016-11-25 21:47:34 +00:00
Christoph von Wittich 4cc7823baf [WINSTA] fix declaration of WinStationQueryInformationA
svn path=/trunk/; revision=73375
2016-11-25 12:48:55 +00:00
Colin Finck c4a61ec7f2 Fix GCC build
svn path=/trunk/; revision=73374
2016-11-24 19:35:08 +00:00
Colin Finck 65212f3682 [LOCALSPL]
Tests show that the Print Provider functions are less forgiving and expect winspool.drv and spoolss.dll to perform the necessary sanity checks.
Also they don't default to the current environment if none was supplied as pEnvironment. Change our functions accordingly to pass the tests.

[LOCALSPL_APITEST]
Add a test to prove that spoolss.dll isn't just a forwarder, but also performs some sanity checks even though winspool.drv and localspl.dll also do.
This rather belongs to spoolss_apitest. But it needs to be tested inside the Spooler Server Process and it's not worth it to copy all the DLL injection code to spoolss_apitest just for a single test.

[SPOOLSS]
Check for an invalid buffer in GetPrintProcessorDirectoryW.

[WINSPOOL]
* Check the level before the RPC call in GetPrintProcessorDirectoryW.
* Supply our current environment if the caller didn't give any in EnumPrintProcessorsW and GetPrintProcessorDirectoryW.
* Implement GetPrintProcessorDirectoryA.

[WINSPOOL_APITEST]
Prove that pcbNeeded isn't touched when calling GetPrintProcessorDirectoryW with an invalid level.


ReactOS now passes all API tests for GetPrintProcessorDirectoryA and GetPrintProcessorDirectoryW. These tests also cover all known behaviors of both functions.
CORE-12399

svn path=/trunk/; revision=73373
2016-11-24 19:24:27 +00:00