Eric Kohl
04683639f0
[SERVICES] RChangeServiceConfigW / RCreateServiceW: Use SecureZeroMemory to wipe clear-text passwords after use.
2018-09-28 17:51:12 +02:00
Eric Kohl
b9aeb5bfbd
[SERVICES] Fixed a missing comma
2018-09-28 17:29:31 +02:00
Eric Kohl
ea6dac3438
[SERVICES] Create a new control set on a non-setup boot.
2018-09-28 16:24:07 +02:00
Hermès Bélusca-Maïto
c446ce0d62
[ADVAPI32] Improve a bit CreateProcessAsUser().
...
- Check whether the user-provided token is a primary token.
- Do not fail when the RtlAdjustPrivilege() call fails (see the code
comment for an explanation). TL;DR is: that call may indeed fail but
the privilege may also not be necessary because the user-provided
token is a restricted version of the caller's primary token.
And this is situation is perfectly fine.
This fixes Java 7 installation, CORE-14874.
2018-09-28 00:45:04 +02:00
Hermès Bélusca-Maïto
89c5191d3f
[NTOS:PS] In PspSetPrimaryToken(), check also for sibling token to determine whether it is required to have the SeAssignPrimaryTokenPrivilege.
...
In addition, it is the presence or absence of the 'Token' pointer that indicates whether or not we should use instead the provided token handle.
2018-09-28 00:45:03 +02:00
Hermès Bélusca-Maïto
7f9282927b
[NTOS:SE] Fixes for NT tokens.
...
- SeIsTokenChild(): Correctly check whether a caller-provided token
is a child from the current process' primary token by looking at
its ParentTokenId member.
- Add a SeIsTokenSibling() helper to determine whether a caller-provided
token and the current process' primary token are siblings, by comparing
their ParentTokenId's and AuthenticationId's.
NOTE: Children tokens are created through CreateRestrictedToken();
sibling tokens are created through DuplicateToken() (amongst others).
See slide 49 of https://www.slideshare.net/Shakacon/social-engineering-the-windows-kernel-by-james-forshaw
or https://googleprojectzero.blogspot.com/2016/01/raising-dead.html
for some details.
2018-09-28 00:45:01 +02:00
Bișoc George
3caab66e22
[DWNL] Add translations (for Romanian & Italian)
...
And include them as well.
2018-09-28 00:23:48 +02:00
Stanislav Motylkov
0fa744241f
[DEVCPUX] Add russian translation
...
Also make MHz string translatable. Addendum to 793e2a3
.
2018-09-27 12:10:06 +02:00
Eric Kohl
3c1e5f7cb9
[NETCFGX] Add the most simple property sheet provider for network adapters
...
- Switch to WINE debug code.
- Build the UNICODE version of the DLL by default.
- Add the most simple property sheet provider.
2018-09-26 23:49:02 +02:00
Eric Kohl
986ce63c4c
[SETUPAPI] SetupDiGetClassDevPropertySheetsW: Support class property sheet providers.
2018-09-26 23:49:01 +02:00
Stanislav Motylkov
68c6641781
[MSPORTS] Add russian translation
...
Addendum to 69e834f
.
2018-09-25 22:50:02 +02:00
Eric Kohl
793e2a38b4
[DEVCPUX] Make the CPU property sheet page a little nicer and make it translatable
2018-09-25 21:51:19 +02:00
Eric Kohl
af37e0e565
[MSPORTS] Hackfix the code to determine the serial and parallel port numbers.
...
Now that SetupDiCreateDevRegKeyW is working as expected, we can no
longer (ab)use it to retrieve a ports resources. Use SetupDiGetDeviceInstanceIdW instead and open the registry keys manually.
2018-09-25 17:48:27 +02:00
Eric Kohl
69e834fa54
[MSPORTS] Implement serial port settings
...
- Fix the control styles and grouping in the dialogs.
- Implement reading, modifying and writing of the serial port settings.
2018-09-25 14:28:29 +02:00
Stanislav Motylkov
f1c2ec0de6
[INF] Add russian translation to machine.inf
...
Addendum to 68eb0fd
.
2018-09-25 11:20:25 +02:00
Eric Kohl
68eb0fd202
[INF] machine.inf: Add settings for PCI RAM controllers
2018-09-24 16:15:46 +02:00
Eric Kohl
185a8fd835
[NETSHELL] Read, write and display the 'Notify me when this connection...' option for network connections.
2018-09-23 23:31:00 +02:00
Eric Kohl
df36ee9fe2
[SETUPAPI] Replace the remaining internal calls to SetupDiOpenDevRegKey and SetupDiCreateDevRegKeyW by calls to SETUPDI_OpenDrvKey, SETUPDI_CreateDevKey or SETUPDI_CreateDrvKey.
2018-09-23 20:19:26 +02:00
Mark Jansen
3d3bd4e77e
[WIN32K] Work around GCC builds inventing dead keys.
...
CORE-14948
2018-09-23 20:03:14 +02:00
Mark Jansen
7882b6cfe3
[SHELL32_APITEST] Speed up the CUserNotification test in the failure case.
2018-09-23 20:03:08 +02:00
Hermès Bélusca-Maïto
bf164caae8
[SERVICES] Simplify the implementation of RGetServiceDisplayNameA/W() and RGetServiceKeyNameA/W().
...
Also comment about the observed behaviour of the returned number of "characters"
returned by the ANSI versions of these APIs (which is tested by advapi32_winetest:service).
[ADVAPI32:SCM] Add a comment concerning wide characters vs. bytes mismatch.
2018-09-23 18:09:10 +02:00
Eric Kohl
60e166535a
[SETUPAPI] Do not use SetupDiOpenDevRegKey in other SetupDi functions. Use SETUPDI_OpenDevKey or SETUPDI_OpenDrvKey instead.
...
Note: The remaining calls to SetupDiOpenDevRegKey and SetupDiCreateDevRegKey will be fixed in another patch.
Fixes CORE-15091
2018-09-23 16:16:12 +02:00
Pierre Schweitzer
2a80ae2bb6
[NTOSKRNL] Properly align VACB writes
...
Also simplify VACB reads alignment code.
Also add some sanity ASSERTs.
2018-09-23 10:32:14 +02:00
Hermès Bélusca-Maïto
f7b9db0f66
[BOOTDATA] Factorize the creation of user profile directories inside a helper function that can be called with different parameters.
2018-09-23 00:38:12 +02:00
Hermès Bélusca-Maïto
7ee298bbfc
[SHELL32] In _SHExpandEnvironmentStrings(), fall back to SHExpandEnvironmentStringsForUserW() if the simplified code paths failed.
...
This allows the code to give a last chance for expanding the string.
And if it still fails, we bail out as expected and the caller will
take appropriate actions.
As a by-product, this commit (together with the previous one e2960914
)
fixes the regression CORE-14981 (Quick-Launch bar couldn't be opened
in LiveCD).
2018-09-23 00:18:57 +02:00
Hermès Bélusca-Maïto
e29609147b
[SHELL32] In _SHGetUserShellFolderPath(), check the return value of _SHExpandEnvironmentStrings()
...
and bail out if it failed. That way we won't use and cache in the registry an invalid-expanded string.
CORE-14981
2018-09-23 00:16:06 +02:00
Hermès Bélusca-Maïto
41a5b11fcd
[SHELL32] Partially synchronize wine/shellpath.c with Wine.
...
- Adjust the code with respect to:
"shell32: Re-add support for expanding ALLUSERSPROFILE for backward compatibility."
4a6855a575c02aa1569aab8b2e96720fc02f3f26 (Alexandre Julliard)
- "shell32: Avoid infinite loop in _SHExpandEnvironmentStrings."
ceea5bda14ecf4c8ce262fc7ab88df49e500bc38 (Alexandre Julliard)
- "shell32: Assume that system directory always contains a drive letter."
54530bc4933ae1014c3697c95e22b8ca5a275bc4 (Alexandre Julliard)
- "shell32: Use ARRAY_SIZE macro."
612a1941331485725952d34f3dcd5866fc318dc2 (Nikolay Sivov)
- "shell32: Fix a trace message."
bb09bb5750d617047aa23635731519a2f9486159 (Nikolay Sivov)
- "shell32: Fix SHGetFolderPathAndSubDir() trace message."
f75d5625966933562b974540a3f29dfcd720ad50 (Nikolay Sivov)
- "shell32: Pass correct buffer length to RegQueryValueExW()."
0bfb97dcba29552b51d8609fcc6e7bbc04bb8320 (Nikolay Sivov)
- "shell32: Remove unused string (Clang)."
8d50a8a246960749afba21eac117b4fcbbf2c79d (André Hentschel)
- "shell32: Use E_NOT_SUFFICIENT_BUFFER definition."
730e744e3bd6b706612fe0f90a7efb2e600f114f (Nikolay Sivov)
2018-09-23 00:16:02 +02:00
Bișoc George
983b4c9f94
[MSCONFIG_NEW] Do not assign an access key to a letter with diacritic
2018-09-22 21:51:14 +02:00
Paweł Cholewa
13045d50ed
[DWNL] Add Polish translation
2018-09-22 14:53:13 +02:00
Eric Kohl
de08785ade
[SETUPAPI] SetupDiCreateDevRegKeyW / SetupDiOpenDevRegKey: Create or open the 'Device Parameters' subkey of the given devices enum key when we try to access its hardware key.
...
This creates the PortName value in the proper location for serial ports.
2018-09-22 14:43:43 +02:00
Eric Kohl
e32a2cc026
[NTOSKRNL] IoGetDeviceProperty: Add support for the DevicePropertyRemovalPolicy property.
...
This could probably fix CORE-15068.
2018-09-22 11:22:22 +02:00
Abdulganiev Rafael
2a6aa7770e
[BTHCI] Add a bluetooth icon ( #871 )
...
[BTHCI] Add a bluetooth icon
2018-09-21 23:42:27 +02:00
Pierre Schweitzer
82a7f08363
[DWNL] Add French translation
2018-09-21 22:36:10 +02:00
Eric Kohl
e1b82b5b91
[NTOSKRNL] Create the 'Device Parameters' subkey and add the 'FirmwareIdentified' value for all ACPI-enumerated devices.
2018-09-21 15:37:34 +02:00
Eric Kohl
2550325577
[NTOSKRNL] Fix the indentation of some pnp manager functions.
2018-09-21 15:08:43 +02:00
Pierre Schweitzer
351ae6b2b4
[KMTESTS:CC] Add tests for CcCopyRead that reproduce CORE-15067
...
CORE-15067
2018-09-21 08:37:20 +02:00
Pierre Schweitzer
15a3ca08b0
[NTOSKRNL] Avoid integer overflow when computing VACB read/write size
...
This could be triggered when attempting to read/write to really big
files. It was causing an attempt to read 0 bytes in Cc, leading to
asserts failure in the kernel (and corrupted file).
CORE-15067
2018-09-21 08:37:20 +02:00
Joachim Henze
ef016bfe0a
[WIN32K:NTUSER] Fix WIN32K BSOD mentioned in CORE-15027
...
Fixes accessing nullptr / invalid handle in Window->SystemMenu
I could trigger this occasionally when moving Opera 12.18 window
in front of Spotify 1.0.29.92 window.
Fix was:
authored by Thomas Faber (Thank you!)
tested by me
reviewed by James Tabor
2018-09-21 03:04:31 +02:00
Eric Kohl
f8f83d4d4d
[BTHCI] Add a bluetooth class installer stub.
...
Now we really need a tango-compatible bluetooth icon!
2018-09-20 17:53:08 +02:00
Eric Kohl
1ac5f1ab89
[INF] Add german translation to the bluetooth class inf file.
2018-09-20 13:52:03 +02:00
Robert Naumann
3aeae65e08
[DWNL] forgot this file
2018-09-20 09:20:14 +02:00
Robert Naumann
abdd8bf2df
[DWNL] German translation
2018-09-20 09:16:22 +02:00
Joachim Henze
2114a2fb5f
[SCHEDSVC] Fix a typo in debug print that was introduced in 0.4.10-dev-544-g
...
0d13bb1015
2018-09-19 22:52:48 +02:00
Eric Kohl
5e2fe08918
[WLNOTIFY] Disable the Logoff-Handler routine for the scheduler service.
...
The Logoff-Handler might try to notify the scheduler service which might already have been shut down. We need to fix the shutdown sequence, so that the service manager stops all running services.
Might fix CORE-14521.
2018-09-19 16:35:12 +02:00
Eric Kohl
76588be0d1
[ADVAPI32][SERVICES] Use the session key provided by SystemFunction028 to encrypt and decrypt the service passwords.
2018-09-19 12:30:33 +02:00
Stanislav Motylkov
9f87785e96
[DWNL] Improve print date
2018-09-19 12:16:23 +02:00
Stanislav Motylkov
e283f4f72b
[DWNL] Add russian translation
2018-09-19 12:16:23 +02:00
Eric Kohl
4114dcad46
[ADVAPI32] Implement SystemFunction028 to always return the default session key.
2018-09-19 00:20:11 +02:00
Lee Schroeder
08be1648f9
[DWNL] Localize the File Download utility ( #853 )
...
Also, changed header string to include a start time stamp similar to the one in wget.
CORE-14498
2018-09-18 23:55:44 +02:00
Pierre Schweitzer
108991a6fb
[NTOSKRNL] Stub IoInitializeCrashDump()
...
Also call it from NtCreatePagingFile() when we have successfully created
a paging file on the system boot partition.
2018-09-18 21:59:59 +02:00