Commit Graph

79 Commits

Author SHA1 Message Date
Eric Pouech 2c878d54d4 dpnet/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-25 11:53:30 +01:00
Eric Pouech e32c74d85f dpnet/tests: Use correct integral type.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-25 11:53:28 +01:00
Alexandre Julliard f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Alexandre Julliard b95cc68894 dpnet: Fix short buffer check also for the A case.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-26 21:48:47 +02:00
Alistair Leslie-Hughes 7a4237fd25 dpnet: Implement IDirectPlay8Address GetURLW/A.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-25 11:04:17 +02:00
Alistair Leslie-Hughes d4565f1541 dpnet: Implement IDirectPlay8Server EnumServiceProviders.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-24 19:53:55 +02:00
Michael Stefaniuc ffa8f64889 dpnet: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-18 20:28:05 +01:00
Alistair Leslie-Hughes c2a8f3d8a0 dpnet: Remove dead code (Coverity).
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-17 21:34:02 +02:00
Alistair Leslie-Hughes 598b52ce38 dpnet: Implement IDirectPlay8Client SetSPCaps.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:38 +02:00
Alistair Leslie-Hughes 069897ad9f dpnet: Implement IDirectPlay8Peer SetSPCaps.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-27 10:57:39 +02:00
Nikolay Sivov 32ea1f0b8c dpnet/tests: Added missing assignment (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-16 12:09:11 +02:00
Nikolay Sivov 9e186fcf09 dpnet/tests: Added missing break (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-01 19:29:14 +02:00
Nikolay Sivov 25de063ec0 dpnet/tests: Fix free buffer access (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-01 19:29:14 +02:00
Alistair Leslie-Hughes 072c58e322 dpnet: Share message handler between IDirectPlay8ThreadPool objects.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 10:29:11 +02:00
Alistair Leslie-Hughes cc93ec15c0 dpnet/tests: Add EnumHosts synchronous tests.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-17 19:01:27 +01:00
Alistair Leslie-Hughes 4239e2156b dpnet/tests: Show that async handlers are per object.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-17 19:00:40 +01:00
Alistair Leslie-Hughes 1bca8df8cb dpnet/tests: Stop thread test from failing.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-14 20:04:25 +01:00
Alistair Leslie-Hughes 83cce966f4 dpnet: Handle unknown service GUID in enum_services_providers.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-24 11:10:40 +01:00
Alistair Leslie-Hughes 1f788c0314 dpnet/tests: Add tests to show IDirectPlay8ThreadPool is a singleton object.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 19:08:38 +01:00
Alistair Leslie-Hughes da5e8d0887 dpnet: Implement IDirectPlay8Thread Initialize.
In order to get the tests to pass, msghandler needed
to be reset in Close.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-15 22:58:48 +01:00
Alistair Leslie-Hughes 960b48f4e7 dpnet: Add basic validation in IDirectPlay8Peer EnumHosts.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-15 22:58:48 +01:00
Alistair Leslie-Hughes 6eb0015d08 dpnet: Add basic validation in IDirectPlay8Client EnumHosts.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-15 22:58:48 +01:00
Alistair Leslie-Hughes 8db78fdd1b dpnet/tests: Add IDirectPlay8Peer EnumHost Tests.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-14 12:33:05 +01:00
Alistair Leslie-Hughes 98040833d3 dpnet/tests: Initial IDirectPlay8ThreadPool tests.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-14 12:33:05 +01:00
Alistair Leslie-Hughes 15fe05ea76 dpnet/tests: Add IDirectPlay8Client EnumHost tests.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 11:37:03 +01:00
Alistair Leslie-Hughes bc85fee0f1 dpnet: Implement IDirectPlay8Client EnumServiceProviders.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 11:37:02 +01:00
Francois Gouget fc8fcc344f dpnet/tests: A spelling fix in a variable name.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 09:39:13 +01:00
Alistair Leslie-Hughes d9610706e5 dpnet/tests: Don't hardcode paths.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-08 17:00:04 +01:00
Alistair Leslie-Hughes afe438a8d0 dpnet/test: Share code between tests.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-08 17:00:04 +01:00
Hans Leidekker 0aaf1d9f6c dpnet/tests: Register firewall exceptions for the server test.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-09 19:21:52 +01:00
Hans Leidekker 7e7ad5a79d dpnet/tests: Register a firewall exception for the client test.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-09 19:21:51 +01:00
Hans Leidekker e017d9bcd4 dpnet/tests: Skip tests if dpnet is a stub dll.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-09 19:21:46 +01:00
Hans Leidekker a24b8b2b3d dpnet/tests: Merge peer.c into client.c.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-09 19:21:20 +01:00
Alistair Leslie-Hughes eef69511f5 dpnet: Close resets back to an uninitialized state.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-03 17:15:42 +01:00
Alistair Leslie-Hughes 7fb80b9029 dpnet: Correctly initialize the DPN_SP_CAPS structure.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-03 17:14:47 +01:00
Alistair Leslie-Hughes 5183ebd8ab dpnet: Implement IDirectPlay8LobbyClient Initialize.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-01 20:32:57 +01:00
Alistair Leslie-Hughes 5f797e6c34 dpnet: Semi-stub IDirectPlay8Server SetServerInfo.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-01 20:32:57 +01:00
Alistair Leslie-Hughes 7a71a6a858 dpnet: Semi-stub IDirectPlay8Client SetClientInfo.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-01 20:32:57 +01:00
Alistair Leslie-Hughes ac5418b185 dpnet: Semi-stub IDirectPlay8Peer SetPeerInfo.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-01 20:32:56 +01:00
Alistair Leslie-Hughes 7c609f07b4 dpnet: Correct GetComponentByName to return the correct buffer size.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-13 18:11:14 +02:00
Alistair Leslie-Hughes 275364d919 dpnet: Correct adding components in Duplicate. 2015-06-23 19:18:38 +09:00
Alistair Leslie-Hughes 4f15cc4d1a dpnet: Implement IDirectPlay8Address GetComponentByIndex. 2015-06-09 22:09:58 +09:00
Alistair Leslie-Hughes 63c7fd2a63 dpnet: Correct usage of memcpy in GetComponentByName. 2015-03-06 20:31:59 +09:00
Alistair Leslie-Hughes b779dee768 dpnet: Always update type since it might change. 2015-03-06 20:31:59 +09:00
Alistair Leslie-Hughes a5d3125395 dpnet: Add check for mismatched string lengths. 2015-03-06 20:31:58 +09:00
Nikolay Sivov 552d9f3631 dpnet/tests: Fix a test failure caused by uninitialized argument. 2014-11-05 20:38:03 +09:00
Alistair Leslie-Hughes a235e86316 dpnet: Implement IDirectPlay8Address GetComponentByName. 2014-10-29 21:02:41 +09:00
Alistair Leslie-Hughes 7dcfb9d3e5 dpnet: Implement IDirectPlay8Address Duplicate. 2014-09-29 10:37:05 +02:00
Francois Gouget d83f2ac0ec dpnet/tests: Add a trailing '\n' to some ok() calls. 2014-09-29 10:36:20 +02:00
Alistair Leslie-Hughes f23b46464e dpnet: Show SetSP adds a component. 2014-09-26 09:56:20 +02:00