Commit graph

67186 commits

Author SHA1 Message Date
Giannis Adamopoulos 86fb59915f [BROWSEUI]
- CShellBrowser: Add some checks for failures that we re missing.
- CAddressEditBox: Add some checks for failures that we re missing.
- SHCreateFromDesktop: Actually create the proxy desktop window when needed and keep its handle and prefer it when we try to find the proxy desktop window.
- Wake the message queue of the proxy desktop after a browser thread exits so the proxy desktop can exit when the last browser thread exits.
- Add a hack to prefer to show my documents if we ended up trying to open a browser window with a NULL pidl. This is a hack that is needed because SHExplorerParseCmdLine is broken.
- Finally this fixes using "explorer /separate" and also fixes the separate process to exit when the last browser gets closed (this fix also applies to filebrowser.exe which no longer lives forever).
CORE-12168

svn path=/trunk/; revision=73132
2016-11-05 14:40:55 +00:00
Giannis Adamopoulos 7731fea285 [BROWSEUI]
- CAddressEditBox: Implement handling relative paths in the addressbar of explore in addition to absolute paths.

svn path=/trunk/; revision=73130
2016-11-05 00:09:51 +00:00
Giannis Adamopoulos 6cd367f86e [BROWSEUI]
- CShellBrowser: Add a standard ShellObjectCreatorInit constructor and make its initializer take a pidl and flags.
- Move BrowserThreadProc to desktopipc.cpp where the lifetime of the browser thread will be managed.

svn path=/trunk/; revision=73129
2016-11-04 23:56:02 +00:00
Giannis Adamopoulos 24fcf531e7 [SHELL32]
- Implement comparing child items in CompareIDs method of our IShellFolder immplementation in shell32 as this is the expected behaviour according to tests and documentation.
- This was removed after each folder got its own implementation (we used a single one from wine that did handle it).
May fix CORE-12106.

svn path=/trunk/; revision=73128
2016-11-04 23:11:29 +00:00
Johannes Anderwald c86e482415 [SDK]
- fix build
- thanks learn_more

svn path=/trunk/; revision=73127
2016-11-04 18:38:07 +00:00
Johannes Anderwald ad98e4a993 [SDK]
- add newline

svn path=/trunk/; revision=73126
2016-11-04 18:14:40 +00:00
Johannes Anderwald d84d3c799f [SDK]
- add prototypes

svn path=/trunk/; revision=73125
2016-11-04 18:12:00 +00:00
Johannes Anderwald 20ff103b96 [USBAUDIO]
- fix buffer calculation for usb headsets
- usb headsets now partially work with usbaudio in win2k3

svn path=/trunk/; revision=73124
2016-11-04 18:07:44 +00:00
Peter Hater f3d71d8a6b [MSAFD] Check params on WSAAceept. CORE-12104
svn path=/trunk/; revision=73123
2016-11-04 18:03:15 +00:00
Hermès Bélusca-Maïto 15d77be6fd [NTOS]
- accesschk.c: Remove redundant SepAccessCheck/SepAccessCheckEx pair of private functions; instead just rename SepAccessCheckEx into SepAccessCheck and use it directly in the code. NOTE: SepAccessCheck is *incomplete* (in particular it doesn't retrieve the information needed to initialize the 'Privileges' parameter).
- sid.c: Comments formatting fix.
- token.c:
  * Finish to implement SeQueryInformationToken . This function is really the same as NtQueryInformationToken but without all the stuff needed for user-mode buffer access protection.
  * Some code simplifications in NtQueryInformationToken.
  I need this to fix a "FIXME: Use SeQueryInformationToken" in some code I'm also fixing (& commit later).

[NDK]: Fix parameter types and add annotations to RtlCopySidAndAttributesArray.

[KMTESTS:NTOS_SE]
- Reenable the 'SeQueryInfoToken' test.
- Show that SeQueryInformationToken doesn't support 4 token information classes, which are supported only by NtQueryInformationToken.
- Fix calling of SeAccessCheck. In particular the 'Privileges' parameter is not allocated by the caller, but instead is allocated by SeAccessCheck *and* returned to the caller (who then must free the buffer using SeFreePrivileges). This fixes the encountered BSODs that leaded to disabling preventively the test in r59178.
- Minor code cleaning.

svn path=/trunk/; revision=73122
2016-11-04 17:52:32 +00:00
Giannis Adamopoulos 3430268b90 [SHELL32_APITEST]
- Add extensive tests for SHParseDisplayName. I tried to add as many as possible  but this list of tests is still incomplete. In the meantime I discovered interesting stuff like the "shell:system" path which if you enter in the run dialog will open the system32 folder. I tried to test parsing protocols like ftp paths but couldn't find wht it should look like yet. Afaik all protocol except for the shell protocol like the one mentioned before should be parsed by CInternet class as noted in the appropriate comment in the tests.

svn path=/trunk/; revision=73121
2016-11-04 17:31:53 +00:00
Peter Hater 7f3c674aee [MSAFD] Disable setting blocking mode if there are WSPAsyncSelect or WSPEventSelect pending calls. CORE-12104
svn path=/trunk/; revision=73120
2016-11-04 09:38:21 +00:00
Amine Khaldi 509c345083 [NETCFGX] Compensate for the proper widths until we have sane font support. Suggestion by Jim, patch by Doug Lyons. CORE-12094
svn path=/trunk/; revision=73117
2016-11-04 09:28:44 +00:00
Pierre Schweitzer a343648323 [NTOSKRNL]
In IoWritePartitionTableEx(), don't return STATUS_SUCCESS when we cannot write GPT to higher partitions count than space available; return STATUS_INVALID_PARAMETER.

svn path=/trunk/; revision=73114
2016-11-03 21:49:55 +00:00
Pierre Schweitzer 82425d713b [DISK]
Don't overflow when computing disk size.
Patch by Vort.

CORE-12261

svn path=/trunk/; revision=73113
2016-11-03 21:38:56 +00:00
Pierre Schweitzer ec670d6c25 [NTOSKRNL]
For now, disable broken code in FstubReadPartitionTableEFI(). In its current state, it wrongly assumes backup GPT is broken and thus attempts to fix main GPT (?!).
Furthermore, it appears Windows 2K3 doesn't perform such checks, nor such GPT rewritings in FstubReadPartitionTableEFI().

CORE-12261

svn path=/trunk/; revision=73112
2016-11-03 21:13:30 +00:00
Hermès Bélusca-Maïto cfbf8660bc [WHOAMI]: Use the conutils (stream) library for console output (see also r65894).
CORE-8965 CORE-10504

svn path=/trunk/; revision=73111
2016-11-03 16:30:48 +00:00
Hermès Bélusca-Maïto 79c7b07668 [CONUTILS]: Remove that overengineered splitted library stuff, and just rely on the splitting of the source code files instead. This is simpler and does the same job as I wanted to do initially (thanks Amine and Thomas for the feedback).
CORE-10504 #resolve
[APPS]: Use again just the conutils library.
The effect of these two modifications above is to partly revert r73024 (the code splitting remains on the contrary).
[CMAKE]: Remove the "evil workaround" (revert r73027). See CORE-12206 for more details.

svn path=/trunk/; revision=73110
2016-11-03 15:47:45 +00:00
Peter Hater ee601ad450 [TCPIP] Always copy back bind IP in connection. Spotted by Thomas. Thanks
CORE-12152

svn path=/trunk/; revision=73109
2016-11-03 14:53:00 +00:00
Thomas Faber bdcecff0be [USETUP]
- A fatal error when creating the install directory is worth a DPRINT1
CORE-11819

svn path=/trunk/; revision=73108
2016-11-03 14:14:19 +00:00
Johannes Anderwald 92338e37d3 [USBAUDIO]
- frequencies may appear unsorted, handle that

svn path=/trunk/; revision=73107
2016-11-03 13:44:01 +00:00
Johannes Anderwald e8322d1fb7 [USBAUDIO]
- include controls from logical channels
- process selector unit descriptors
- automatic gain is KSNODETYPE_AGC

svn path=/trunk/; revision=73106
2016-11-03 13:26:45 +00:00
Hermès Bélusca-Maïto 698798ac5c [BOOTDATA]: Fix the indentation of the file(..) commands, noted by Thomas.
svn path=/trunk/; revision=73105
2016-11-02 21:49:50 +00:00
Hermès Bélusca-Maïto 1562869a7a [BOOTDATA]: Diverse improvements for mkisofs support and ISO image configuration:
- Make our build system create the required empty directory for mkisofs, instead. (It's not the purpose of the SVN to hold special files/directories just to make host tools happy; instead it's the job of the buld system to create them.)
- Place the boot files (catalog & co.) preferably at the beginning of the ISO image (it makes ISO image analysis easier, and is back-compatible with cdmake & oscdimg & windows ISOs): use the build system to generate the mkisofs sorting file. See the CMakeLists.txt for more details.
- Set in one place the ISO manufacturer & volume name strings so that it makes easier to bulk-change them (and makes features like CORE-12233 a bit easier to maintain).
- The EFI image must be set up with no emulation mode! (See section "12.3.2.1 ISO-9660 and El Torito" of the UEFI spec v2.4 errata B, for example).

[MKISOFS]: Add some useful offline documentation.

CORE-11988

svn path=/trunk/; revision=73104
2016-11-02 21:43:46 +00:00
Pierre Schweitzer 5bcce07fd7 [NDK]
Properly export functions for C++ code

svn path=/trunk/; revision=73103
2016-11-02 19:46:46 +00:00
Pierre Schweitzer 1e3e451c22 [BTRFS]
Enable the BTRFS shell registration

svn path=/trunk/; revision=73102
2016-11-02 19:40:50 +00:00
Pierre Schweitzer f7dfa0ee35 [DOC]
Update sync status reading BTRFS

svn path=/trunk/; revision=73101
2016-11-02 19:38:39 +00:00
Pierre Schweitzer 7f4d8362bf [BTRFS]
Import the BTRFS driver shell extension. It allows having a finer control on btrfs volumes.
Note that not everything works in ReactOS and its usage may lead to bugchecks...

CORE-10892

svn path=/trunk/; revision=73100
2016-11-02 19:36:59 +00:00
Amine Khaldi e9a079b458 [CHARMAP_NEW] Fix a copy pasta.
svn path=/trunk/; revision=73099
2016-11-02 19:19:17 +00:00
Amine Khaldi 968516f86d [SERVMAN] Sort out header inclusions.
svn path=/trunk/; revision=73098
2016-11-02 18:55:51 +00:00
Mark Jansen b42f4fa34d [SETUPAPI] Forward pSetup[Malloc|Realloc|Free] to My[Malloc|Realloc|Free] as wine does. Spotted by Jared Smudde. CORE-12262
svn path=/trunk/; revision=73097
2016-11-02 18:31:46 +00:00
Peter Hater 0c396fc83e [MSAFD] Add more checks for lpErrno. Rearrange start of some functions to avoid creation and disposal of event of socket handle or parameter(s) is wrong. Other small changes
CORE-12104

svn path=/trunk/; revision=73096
2016-11-02 15:36:26 +00:00
Peter Hater 494db7a55d [TCPIP] Copy back unicast IP if broadcast is specified for listen.
CORE-12152

svn path=/trunk/; revision=73095
2016-11-02 11:24:08 +00:00
Johannes Anderwald 2a33de20a4 [USBAUDIO]
- remove setting InstancesNecessary as it causes problems with KsStudio
- start implementing support for usb headsets
- use endpoint address in UsbAudioSetFormat
- rewrite USBAudioSelectAudioStreamingInterface to select the interface based on the format index chosen

svn path=/trunk/; revision=73094
2016-11-02 09:55:18 +00:00
Pierre Schweitzer 79e0de2faf [MPR]
Implement saved connections restoration.
This is a bit hackish for now: it should only be attempted once, when the DLL is loaded on session login. Right now, it's attempt each time the DLL is loaded (ie, even when a program linking to it is started). This is to be fixed later on. So far, it brings the intended feature.

Now, you can create a connection with net use, save it, and reboot: it will be restored on the session opening.

CORE-11757

svn path=/trunk/; revision=73093
2016-10-31 21:27:02 +00:00
Pierre Schweitzer fdc18e536d [MPR]
Delete saved connection on disconnection if asked (even though the resource wasn't connected).
This allows net use to properly remove connections it may have created.

CORE-11757

svn path=/trunk/; revision=73092
2016-10-31 21:20:32 +00:00
Pierre Schweitzer c397981db2 [MPR]
Allow saving connections when using WNetUseConnection(), WNetAddConnection2().
It makes the "net use /persistent" switch working (ie, saving connection - not restoring connections).

CORE-11757

svn path=/trunk/; revision=73091
2016-10-31 21:17:46 +00:00
Johannes Anderwald 9b3c3d78a1 [USBAUDIO]
- initialize pin with correct flags
- enumerate all dataranges for an input / output terminal

svn path=/trunk/; revision=73090
2016-10-31 20:45:23 +00:00
Jérôme Gardou eb0d4a0a16 [KERNEL32_WINETEST]
- Guard page and ATL thunks tests work fine. Enable them.
ROSTESTS-155 #resolve

svn path=/trunk/; revision=73089
2016-10-31 11:51:50 +00:00
James Tabor 07bc9a400d [User32]
- Leave Dialog Procedure calls protected with SEH, the same as windows.
- See CORE-12182, CORE-12111 and related issues.

svn path=/trunk/; revision=73088
2016-10-31 01:18:43 +00:00
Hermès Bélusca-Maïto 8793f1b4c6 [NTVDM]: Properly fixes build. Addendum to r73082, supersedes r73084.
CORE-10340

svn path=/trunk/; revision=73085
2016-10-30 20:27:05 +00:00
Mark Jansen 8657be9fb4 Addendum to r73082
svn path=/trunk/; revision=73084
2016-10-30 19:52:53 +00:00
Mark Jansen 22ba0b5aa5 [APPHELP][APPHELP_APITEST] Update db apitests to succeed from 2k3 to 10, paving the way for the next set of tests.
- Support 2k3 and Vista+ versions of the SDBQUERYRESULT structure.
- Add tests for SdbFindFirstNamedTag, SdbTagIDToTagRef, SdbGetLayerTagRef
- Implement SdbFindFirstNamedTag, SdbTagIDToTagRef, SdbGetLayerTagRef
- Add a version resource to apphelp, so that we can use it to identify which tests to use.

svn path=/trunk/; revision=73083
2016-10-30 19:39:43 +00:00
Hermès Bélusca-Maïto 705f7ce49e Art work commit:
[PIFMGR]: Update the 16-colour version of the computer icon.
[NTVDM]: Add the tangoified versions of the NTVDM computer icon by Ismael Ferreras Morezuelas. Also update the Tango PC-AT and XT icons.
CORE-10340 #resolve #comment Committed in r73082, thanks to you all!

svn path=/trunk/; revision=73082
2016-10-30 19:02:15 +00:00
Hermès Bélusca-Maïto ecddd01a74 [BTRFS]: Fix compilation with MSVC too, as we don't have the 'FileFsSectorSizeInformation' FS information class in our headers (this is some Win8+ stuff).
CORE-12223 #comment MSVC compilation fixed in r73078 ('FileFsSectorSizeInformation' absent in our headers).

svn path=/trunk/; revision=73078
2016-10-30 14:14:27 +00:00
Mark Jansen 082463978d [REGSVR32] Disable error message boxes while loading a dll. CORE-12209
svn path=/trunk/; revision=73077
2016-10-30 11:50:10 +00:00
Thomas Faber 6acbbeddf8 [MKISOFS]
- Fix Win64 build -- the define is _WIN32, not WIN32.
CORE-11988

svn path=/trunk/; revision=73076
2016-10-30 09:44:29 +00:00
Pierre Schweitzer 97d164005c [RPCRT4]
Import Wine commit (by Alexandre Julliard):
- 7b0c2cdbcd64cffa2f5c5a37f55799b114132b59, Remove noisy fixme.

svn path=/trunk/; revision=73075
2016-10-30 09:17:42 +00:00
Peter Hater 55d4688b34 Revert r73068 and r73070
Current tests are obviously not enough to declare them OK.
I'll add more tests first

svn path=/trunk/; revision=73074
2016-10-30 05:58:02 +00:00
Thomas Faber 78ad433718 [FASTFAT]
- Only lock down the user buffer in the non-cached read/write case. CcCopyRead/CcCopyWrite takes care of this in the cached case, and does not impose a size limit like an MDL does.
CORE-12132 #resolve

svn path=/trunk/; revision=73072
2016-10-29 20:30:49 +00:00