Commit Graph

216 Commits

Author SHA1 Message Date
Fabian Maurer 8ca2938757 wnet: Make WNetGetUniversalNameW return required size when buffer is too small and add test.
The pointer is set to the required size not only when the input size
is 0, but generally when it is too small.

Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 14:51:34 +02:00
Michael Stefaniuc 253d39bf1d mpr: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 09:44:33 +02:00
Michael Stefaniuc 56a232b44c mpr/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-04 14:23:29 +02:00
Michael Müller 31e5b4e5ee mpr: Return correct error code for non network paths and REMOTE_NAME_INFO_LEVEL in WNetGetUniversalName.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-14 15:27:59 +01:00
Zebediah Figura 84b0ed9161 mpr/tests: Fix drive search loop.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-02 13:25:20 +01:00
André Hentschel 4981d7fb0a mpr/tests: Allow values from Win8+.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-23 10:31:02 +02:00
Pierre Schweitzer 2619267170 mpr: Implement WNetConnectionDialog().
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 15:57:44 +02:00
Pierre Schweitzer 8d461c1f42 mpr: Don't stop enumeration on the first failing network provider.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-23 19:45:31 +02:00
Pierre Schweitzer 51b4a42969 mpr: Properly handle the count set to -1 when enumerating connections.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-23 17:23:45 +02:00
Nikolay Sivov 7569f6c62e mpr/tests: Remove NT4 version check.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-07 11:24:44 +02:00
Hans Leidekker 25e78e0412 mpr/tests: Try other drive letters if J: is already assigned.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-22 15:34:12 +01:00
André Hentschel 3540a3dc04 mpr: Fix some spec file entries.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-27 16:31:43 +01:00
Pierre Schweitzer 96a93ee608 mpr: Enumerate connections capability before looking for functions entry points.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-02 11:18:56 +01:00
Pierre Schweitzer d9c9d9b10f mpr: Implement connected resources enumeration.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-20 09:16:55 -07:00
Pierre Schweitzer d6d0d96402 mpr: Set the CONNECT_LOCALDRIVE flag in case a local redirection is made on connection.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-12 21:21:53 +09:00
Pierre Schweitzer d2e68234b2 mpr: Implement WNetCancelConnectionA(), WNetCancelConnectionW(), WNetCancelConnection2A().
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-12 21:21:42 +09:00
Pierre Schweitzer 0b34924bd8 mpr: Implement WNetCancelConnection2W().
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-12 21:21:10 +09:00
Pierre Schweitzer a65c31e46f mpr: Implement provider selection given remote name.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-11 20:18:01 +09:00
Pierre Schweitzer b452e62859 mpr: Implement local name automatic redirection for disks.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-11 20:18:01 +09:00
Pierre Schweitzer e8c8ddcbfc mpr: Don't send lpRemoteName when requesting network place.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-17 19:44:01 +09:00
Nikolay Sivov e920b4ecff mpr: Implement WNetUseConnectionA().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-14 13:54:52 +09:00
Pierre Schweitzer d070c263ad mpr: Partially implement WNetUseConnectionW().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:30:04 +09:00
Nikolay Sivov 164fe0470c mpr: Query for NPAddConnection and NPAddConnection3 when loading a provider.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:30:04 +09:00
Pierre Schweitzer d2ce22ba23 mpr/tests: Add tests for WNetUseConnectionA().
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-03 23:49:05 +09:00
Pierre Schweitzer 80eb2fa08e mpr: Add support for REG_EXPAND_SZ for providers path.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 23:26:59 +09:00
Pierre Schweitzer 39ec97ea9d mpr: Implement WNetAddConnectionA(), WNetAddConnection2A(), WNetAddConnection3A().
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 01:48:50 +09:00
Pierre Schweitzer 092c60e98c mpr: Implement WNetAddConnectionW(), WNetAddConnection2W(), WNetAddConnection3W().
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-19 23:01:29 +09:00
Francois Gouget f8a7d6ed74 Assorted spelling fixes. 2015-08-07 23:50:48 +09:00
Bernhard Übelacker b4ded3d774 mpr: Call RegEnumValueA with valid value parameter. 2015-07-01 19:18:11 +09:00
Bernhard Übelacker d1ca4e87c3 mpr/tests: Add tests for WNetCachePassword and friends. 2015-07-01 19:18:10 +09:00
Thomas Faber 21a7cc6fa7 mpr: Do not omit mandatory argument to DeviceIoControl. 2014-07-21 11:55:20 +02:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Alexandre Julliard 4f3d71cef3 makefiles: Get rid of the no longer used PO_SRCS variables. 2013-12-15 10:23:04 +01:00
Alexandre Julliard 5756ee09f3 makefiles: Add makedep pragmas for rc files that contain translations. 2013-11-05 20:38:19 +01:00
Alexandre Julliard 14aa430314 mpr: Use neutral language for the version resource. 2013-07-09 22:21:58 +02:00
Detlef Riekenberg d63a160c24 mpr/tests: Handle result from the AppV virtual drive. 2013-06-07 12:03:06 +02:00
Alexandre Julliard bd670f1ce1 mpr: Don't bother to free memory at process exit. 2013-05-15 10:22:01 +02:00
Michael Stefaniuc 3c3959cfd3 mpr: Use offsetof for the size of structs with varlen arrays. 2013-03-05 10:41:31 +01:00
Roman Dadkov b8d081b0a8 mpr/tests: Test to check the return values of WNetGetUniversalNameA. 2013-02-13 20:44:11 +01:00
Detlef Riekenberg fc4b2f6cec mpr/tests: Handle result from the AppV virtual drive. 2012-08-13 12:08:34 +02:00
Andrew Eikum 76880ff933 mpr: Don't succeed if drive is not remote in WNetGetUniversalName. 2012-07-10 11:14:14 -05:00
Francois Gouget 5cee710e57 mpr: Tweak a label so it matches the one in wininet. 2012-05-16 19:39:27 +02:00
Alexandre Julliard d2a876e535 mpr: Convert dialogs to po files. 2011-11-24 20:57:02 +01:00
Alistair Leslie-Hughes 81b67c5b15 mpr: Remove DllCanUnloadNow and DllGetClassObject. 2011-10-10 13:31:19 +02:00
Frédéric Delanoy 09eec46daf mpr: Remove dead assignment (Clang). 2011-07-06 11:29:42 +02:00
Marcus Meissner c1833ea963 mpr: Added missing pointer dereference (Coverity). 2011-05-30 11:15:34 +02:00
Marcus Meissner df6eedf969 mpr: Mark internal symbols with hidden visibility. 2011-05-20 10:33:10 +02:00
Alexandre Julliard 142d416440 mpr: Convert string table resources to po files. 2011-01-12 16:27:50 +01:00
Hwang YunSong ebea4cbc38 mpr: Update Korean resource. 2010-12-27 11:45:44 +01:00