Commit Graph

48705 Commits

Author SHA1 Message Date
Hans Leidekker 67963a76b4 fusion: Fix some memory leaks.
Found by Valgrind.
2009-12-07 14:18:29 +01:00
Hans Leidekker 952cd1d36a userenv/tests: Fix some memory leaks.
Found by Valgrind.
2009-12-07 14:18:29 +01:00
Hans Leidekker 7d3f37fcbd usp10: Fix a memory leak.
Found by Valgrind.
2009-12-07 14:18:29 +01:00
Hans Leidekker 3840de5b1e msi/tests: Loosen check on kernel32 language version. 2009-12-07 14:18:29 +01:00
Hans Leidekker 4a22c88b37 wininet: Cleanup any existing cache file before creating a new one.
Otherwise we leak the file name and handle when a request is sent again.
Found by Valgrind.
2009-12-07 14:18:29 +01:00
Alexandre Julliard 13608c8b18 gdi32: Avoid use of some 16-bit types. 2009-12-07 14:18:29 +01:00
Alexandre Julliard 1ac23b9b0f gdi32: Don't include wingdi16.h by default. 2009-12-07 14:18:29 +01:00
Alexandre Julliard 4edcf1caa5 gdi32: Make gdi.exe into a stand-alone 16-bit module. 2009-12-07 14:18:29 +01:00
Alexandre Julliard fc55cdcd59 gdi32: Stop exporting the 16-bit print job functions. 2009-12-07 14:18:28 +01:00
Alexandre Julliard cc2d6f330f wineps.drv: Don't include 16-bit headers in psdrv.h. 2009-12-07 14:18:28 +01:00
Alexandre Julliard 9a05f3143f wineps.drv: Duplicate the print job support from 16-bit GDI. 2009-12-07 14:18:28 +01:00
Alexandre Julliard 7f6b6eb344 wineps.drv: Add a wrapper function for WriteSpool16. 2009-12-07 14:18:28 +01:00
Vincent Povirk 8b154a590e gdiplus: Fix cleanup after errors in GdipCloneImage. 2009-12-07 14:18:28 +01:00
Vincent Povirk bf04d3fa69 gdiplus: Implement GdipCloneBitmapArea. 2009-12-07 14:18:28 +01:00
Marcus Meissner 4c36f79964 rpcrt4: Fixed array_compute_and_size_conformance on strings (Coverity). 2009-12-07 14:18:28 +01:00
Jacek Caban 8d44d63849 jscript: Don't pass EXPR_NEWREF flag to evaluate member expression in array_expression_eval. 2009-12-07 14:18:28 +01:00
Jacek Caban f1a543d546 mshtml: Added test for setting VT_EMPTY event handler. 2009-12-07 14:18:28 +01:00
Jacek Caban f3d805862a mshtml: Don't pass fdexNameEnsure flag to script engines in find_global_prop. 2009-12-07 14:18:28 +01:00
Paul Vriens 19f4c42f99 advapi32/tests: Fix some test failures when the computername is fully qualified. 2009-12-07 14:18:27 +01:00
Huw Davies 63231be804 setupapi: Fix memory leak.
Found by Valgrind.
2009-12-07 14:18:27 +01:00
Nikolay Sivov e5e17ca438 msvcrt/tests: Free temporary file name after test. 2009-12-07 14:18:27 +01:00
Huw Davies 1cc0dd5c57 ntdll: Fix a few memory leaks in tests.
Found by Valgrind.
2009-12-07 14:18:27 +01:00
Huw Davies 0099431f08 oleaut32: Fix several memory leaks in tests.
Found by Valgrind.
2009-12-07 14:18:27 +01:00
Nikolay Sivov 5b7fae2ea8 gdiplus/tests: Delete Pen object after use. 2009-12-07 14:18:27 +01:00
Nikolay Sivov f9af62e36d gdiplus/tests: Free created iterator in tests. 2009-12-07 14:18:27 +01:00
Nikolay Sivov 25260e601c gdiplus/tests: Additional test to show that custom cap isn't created without stroke path. 2009-12-07 14:18:26 +01:00
Nikolay Sivov db5e3f4a05 gdiplus/tests: Free brush pointer after test. 2009-12-07 14:18:26 +01:00
Nikolay Sivov 7d6412c82d comctl32/datetime: Free internal data completely on control destruction. 2009-12-07 14:18:26 +01:00
Nikolay Sivov bd8fc9c474 comctl32/tests: Don't forget to free array after tests. 2009-12-07 14:18:26 +01:00
Nikolay Sivov 0f003ef48d comctl32/tests: Free imagelist after use. 2009-12-07 14:18:26 +01:00
Nikolay Sivov 6d989feff9 comctl32/treeview: Free items pointer array and root item on control destruction.
Two issues here: item pointers array wasn't freed, root item data wasn't freed.
Found by Valgrind.
2009-12-07 14:18:26 +01:00
Nikolay Sivov 59d250c4a4 kernel32/tests: Fix test failures on NT4. 2009-12-07 14:18:25 +01:00
Piotr Caban 9ede36aa2b msxml3: Fix VARIANT_from_xmlChar implementation. 2009-12-07 14:18:25 +01:00
Francois Gouget 060934c557 wined3d: Don't define nameless structs or unions.
Fixes compilation on systems that don't support nameless unions or structs.
2009-12-07 14:18:25 +01:00
Francois Gouget 6fced4d1c7 mshtml/tests: Fix the get_event_src() macro declaration. 2009-12-07 14:18:24 +01:00
Francois Gouget 0b9a4ae341 winhttp: Fix compilation on systems that don't support nameless unions. 2009-12-07 14:18:24 +01:00
Huw Davies 6f4ad21b9d oleaut32: Fix a couple of memory leaks in the tests.
Found by Valgrind.
2009-12-07 14:18:24 +01:00
Huw Davies bf93519a39 inetcomm: Fix memory leak.
Found by Valgrind.
2009-12-07 14:18:24 +01:00
Huw Davies 55bf97bba7 gdiplus: Fix a couple of memory leaks.
Found by Valgrind.
2009-12-07 14:18:24 +01:00
Juan Lang 497b67dbf6 wintrust: Fail to load a certificate from a PE file if the certificate entry isn't a known type. 2009-12-07 09:49:18 +01:00
Juan Lang d69b00d630 rsaenh/tests: Fix memory leaks. 2009-12-07 09:49:07 +01:00
Juan Lang bab1c652ae crypt32/tests: Fix memory leak in test. 2009-12-07 09:49:07 +01:00
Juan Lang 035c323054 rsaenh: Fix memory leak in CPSignHash. 2009-12-07 09:49:07 +01:00
Juan Lang cdbf6e8614 crypt32/tests: Don't pass as a parameter a variable that could be local. 2009-12-07 09:49:07 +01:00
Juan Lang a5facc9bda winhttp: Use sk_ functions rather than accessing an OpenSSL stack type directly. 2009-12-07 09:49:07 +01:00
Huw Davies 24b437942e winhttp: Load X509_STORE_CTX_get_ex_data from libcrypto not libssl. 2009-12-07 09:49:07 +01:00
James Hawkins 25ab693008 msi: The second parameter to Installer.OpenPackage is optional, so set a default value of 0 if the parameter is not provided. 2009-12-07 09:49:06 +01:00
James Hawkins 1ff6c08621 msi: Verify that the first parameter to Installer.OpenPackage is a VT_BSTR.
It seems ugly to open up the parameters in pDispParams, but
DispGetParam will happily convert a VT_EMPTY to a VT_BSTR and not
return an error.
2009-12-07 09:49:06 +01:00
James Hawkins 4687604356 msi: It's possible to send in more than two parameters to Installer.OpenPackage, but sending in zero parameters should return DISP_E_TYPEMISMATCH. 2009-12-07 09:49:06 +01:00
James Hawkins b614052895 msi: Add more tests for the Installer.OpenPackage method.
The following series fixes a few leaks reported by valgrind.  We were
leaking exception info caused by Installer.OpenPackage failing when we
didn't expected it.
2009-12-07 09:49:06 +01:00
James Hawkins 89b2cde891 oleaut32: Report the parameter index for any failure in DispGetParam. 2009-12-07 09:49:06 +01:00
James Hawkins 02dcc19854 oleaut32: Add tests for DispGetParam. Fix two issues that crashed the tests. 2009-12-07 09:49:06 +01:00
Vincent Povirk f3d194b391 ole32: Add ReadDirEntry to the storage vtable. 2009-12-07 09:49:05 +01:00
Vincent Povirk 176cdfc75e ole32: Add WriteDirEntry to the storage vtable. 2009-12-07 09:49:05 +01:00
Vincent Povirk 8a332db2c5 ole32: Change ReadDirEntry return type to HRESULT. 2009-12-07 09:49:05 +01:00
Vincent Povirk df13a1d1fe ole32: Change WriteDirEntry return type to HRESULT. 2009-12-07 09:49:05 +01:00
Vincent Povirk 382ffed003 ole32: Make CreateDirEntry a virtual method. 2009-12-07 09:49:05 +01:00
Vincent Povirk f1405ca0d2 windowscodecs: Accept GIF files with no trailer. 2009-12-07 09:33:35 +01:00
Owen Rudge b49cc56614 imagehlp: Recalculate PE checksum after file modification. 2009-12-07 09:33:29 +01:00
Owen Rudge ba5a86e349 imagehlp: Check for 64-bit PE files in CheckSumMappedFile. 2009-12-07 09:33:07 +01:00
Owen Rudge b277012765 imagehlp/tests: Add tests for adding/removing multiple certificates. 2009-12-07 09:32:40 +01:00
Owen Rudge 5bcc37a9fd imagehlp: Implement ImageRemoveCertificate. 2009-12-07 09:32:29 +01:00
Rob Shearman 74e5e0b33f hlink: Fix more memory leaks in tests. 2009-12-07 09:32:22 +01:00
Rob Shearman 0450235db4 netapi32: Fix off-by-one errors in ACCESS_QueryAdminDisplayInformation and ACCESS_QueryGuestDisplayInformation. 2009-12-07 09:32:17 +01:00
Rob Shearman 2b74e774f9 ole32: Add tests for HGLOBAL stream ignoring the HighPart of the offset for seeks. 2009-12-07 09:32:11 +01:00
Rob Shearman 4ad631286a ole32: Initialise all of position variables in test_save_load_filemoniker.
Initialise all 8-bytes instead of just the lower 4-bytes. This test
isn't designed to be testing whether the Seek method of the object
return by CreateStreamOnHGlobal uses the high part of the positions
passed in.
2009-12-07 09:32:08 +01:00
Huw Davies 6b8c9aee4f user32: Pad lfFaceName so we don't write uninitialised data to the registry.
Found by Valgrind.
2009-12-04 15:49:26 +01:00
Huw Davies 6fc8234300 user32: Pad lfFaceName so we don't write uninitialised data to the registry.
Found by Valgrind.
2009-12-04 15:48:19 +01:00
Wolfram Sang a7326271e0 ntdll: Silence RtlNtStatusToDosErrorNoTeb() a bit. 2009-12-04 15:48:09 +01:00
Paul Vriens c2f5442f2a kernel32/tests: Skip some tests if needed (WinXP Home). 2009-12-04 14:44:11 +01:00
Paul Vriens 0c67d1bddb kernel32/tests: Skip some tests on Win98/WinMe. 2009-12-04 14:44:03 +01:00
Paul Vriens 3b43c4e585 kernel32/tests: Correct some ok() statements. 2009-12-04 14:43:48 +01:00
Hans Leidekker e018a5e25b wininet: Add a test for status callbacks on ftp connections. 2009-12-04 14:42:44 +01:00
Hans Leidekker 5f08249831 wininet: Fix some status callbacks to return a string instead of a sockaddr structure.
Spotted by Juan Lang.
2009-12-04 14:42:37 +01:00
Alistair Leslie-Hughes e7906026bb shdocvw: Implement IWebBrowser2_get_Name. 2009-12-04 14:42:28 +01:00
Dmitry Timoshkov 2536bfd1d8 kernel32: Explicitly treat the current working directory name as a unix one. 2009-12-04 14:42:05 +01:00
Henri Verbeet 2800970d1a dxgi/tests: Add a small test for IDXGIAdapter::GetDesc(). 2009-12-04 14:34:59 +01:00
Henri Verbeet 0491fcce30 dxgi: Implement IDXGIAdapter::GetDesc(). 2009-12-04 14:34:59 +01:00
Henri Verbeet dd5fc79f56 wined3d: The stateblock doesn't really need a parent. 2009-12-04 14:34:59 +01:00
Henri Verbeet ff92e6eb6a d3d9: Simplify GetDevice(). 2009-12-04 14:34:59 +01:00
Henri Verbeet 3cedef2ffe d3d8: Simplify GetDevice().
We already store "parentDevice", so we might as well use it.
2009-12-04 14:34:59 +01:00
Owen Rudge 1f6d24565c imagehlp: Implement ImageAddCertificate. 2009-12-04 14:34:59 +01:00
Owen Rudge f5ebe032b0 imagehlp: Verify magic numbers and pad certificates to 8 byte boundaries.
Includes checks for 64-bit file structure and avoids repeating header 
checks.
2009-12-04 14:34:59 +01:00
Vincent Povirk cc98619ca4 ole32: Add an internal vtable to StorageBaseImpl objects. 2009-12-04 14:34:59 +01:00
Vincent Povirk f434ab1f2a ole32: Unify the logic for overriding the root storage filename in Stat.
This is needed so that the new transacted type will be able to easily support
this logic.
2009-12-04 14:34:59 +01:00
Vincent Povirk 5456724fd7 ole32: Move the create attribute from StorageImpl to StorageBaseImpl.
This is to avoid accessing the top-level StorageImpl directly.
2009-12-04 14:34:58 +01:00
Vincent Povirk b6dc718c44 ole32: Check the current storage for STGM_SIMPLE rather than ancestorStorage.
Since simple mode does not support substorages, we know these are the same.
2009-12-04 14:34:58 +01:00
Vincent Povirk cf5e6c571a ole32: Forbid substorages of simple mode storages. 2009-12-04 14:34:58 +01:00
Alexandre Julliard e48f4253a4 rpcrt4/tests: Skip the get_ranged_enum test on old Windows versions. 2009-12-04 14:34:58 +01:00
Francois Gouget f3b738f63c wininet: Make FTP_FtpOpenFileW() static. 2009-12-04 14:34:58 +01:00
Francois Gouget 661208f088 mshtml: Make nsACString_{Init,Finish}() static. 2009-12-04 14:34:58 +01:00
Jörg Höhle ee3c8794ea mciwave: Abort the play loop in case of audio error. 2009-12-04 14:34:58 +01:00
Marcus Meissner 4da51e087d msvcrt: Remove unnecessary NULL check (Coverity). 2009-12-04 14:34:58 +01:00
Marcus Meissner 265c959ed9 shell32: handle corrupt entry in iconcache registry entry (Coverity). 2009-12-04 14:34:58 +01:00
Marcus Meissner 478592cd3d winex11.drv: Handle if cursor not found (Cpverity). 2009-12-04 14:34:57 +01:00
James Hawkins 7d3e664312 msi: MsiSetMode returns a UINT system error code, not a BOOL. 2009-12-04 14:34:57 +01:00
Juan Lang b967fde0a8 wininet: Correct length of data passed to callback when resolving a name. 2009-12-04 14:34:57 +01:00
Jacek Caban ec769d2d95 jscript: Correctly handle NaN in to_integer. 2009-12-04 14:34:57 +01:00
Jacek Caban efda5561d0 jscript: Correctly handle NaN and Infinity in to_int32 and to_uint32. 2009-12-04 14:34:57 +01:00
Nikolay Sivov 8ea4102a6c kernel32/lcformat: Add support for genitive month names in GetDateFormat(). 2009-12-04 14:34:57 +01:00
Nikolay Sivov 8e4f283e2d kernel32/lcformat: Don't use uneeded string conversion. 2009-12-04 14:34:56 +01:00
Nikolay Sivov 1a2609189f kernel32/lcformat: Avoid back jumps on failure. 2009-12-04 14:34:56 +01:00
Juan Lang ba9ccc51e2 wintrust: Fix memory leaks in tests. 2009-12-04 14:34:56 +01:00
Roderick Colenbrander a191184ae9 wgl: Add a direct rendering check to new winediag channel. 2009-12-04 14:34:56 +01:00
Alexandre Julliard 3dd6c9a6fe ntdll/tests: Fix a few test failures on Windows in the open by id test. 2009-12-04 14:34:56 +01:00
Alexandre Julliard 866db819b8 ntdll: Add stubs for RtlAddFunctionTable and RtlDeleteFunctionTable. 2009-12-04 14:34:45 +01:00
Juan Lang 9072050906 cryptnet: Store the bytes actually read, not the bytes available to be read. 2009-12-04 12:05:38 +01:00
Aric Stewart 3a55f964b9 shlwapi: Close the correct key in SHRegCloseUSKey. 2009-12-04 12:05:24 +01:00
Juan Lang 82d07c4051 winhttp: Check the certificate in an https connection using the crypto api. 2009-12-04 12:04:59 +01:00
Juan Lang 48a7580135 winhttp: Set callback to verify hostname with peer's certificate. 2009-12-04 12:03:55 +01:00
Juan Lang be8f2ae98e winhttp: Store hostname for secure connection in its SSL context. 2009-12-04 12:03:47 +01:00
Juan Lang a33c4bfd0b winhttp: Pass hostname to netconn_secure_connect. 2009-12-04 12:02:50 +01:00
Juan Lang 59820c2e5c cryptnet: Implement getting the certificate issuer URL from a cert's authority info access extension. 2009-12-04 12:01:53 +01:00
Juan Lang a7c236a066 cryptnet: Add tests for getting the certificate issuer URL from a cert's authority info access extension. 2009-12-04 12:01:48 +01:00
Juan Lang 6acd82fa79 crypt32: Correct AKI extension used in end certificate and CRL when checking revocation. 2009-12-04 12:01:16 +01:00
Juan Lang f7e7f09a4b cryptnet: Correct AKI extension used in end certificate and CRL when checking revocation. 2009-12-04 12:01:12 +01:00
Jacek Caban 412f4a6091 mshtml: Disable Gecko installation on unsupported CPU architectures. 2009-12-03 15:27:49 +01:00
Jacek Caban a9ecdc6024 wininet: Directly return error status from HTTP_HandleRedirect. 2009-12-03 15:27:22 +01:00
Jacek Caban 741b6611fb wininet: Directly return error status fro HTTP_HttpEndRequest. 2009-12-03 15:27:14 +01:00
Jacek Caban c952e81a89 wininet: Directly return error from HTTP_HttpSendRequest. 2009-12-03 15:27:08 +01:00
Jacek Caban 903d9c460d wininet: Remove a few more INTERNET_SetLastError calls. 2009-12-03 15:27:02 +01:00
Huw Davies 14b343fcd0 d3d9/tests: Destroy the window after we release the device.
Although either order is supposed to work, the former crashes with Wine.
2009-12-03 15:26:52 +01:00
Paul Vriens 1c582d2ac5 shell32/tests: Don't fill a string with potential garbage. 2009-12-03 15:26:41 +01:00
Nikolay Sivov eaee84f4db comctl32/updown: Set width to default value on creation. 2009-12-03 14:02:54 +01:00
Nikolay Sivov b2d89f4823 comctl32/updown: Specify all styles explicitly in tests. 2009-12-03 14:02:54 +01:00
Henri Verbeet 8151963f4e d3d8: Directly store a wined3d stateblock in the stateblock handle.
IDirect3DStateBlock8Impl doesn't actually do anything useful.
2009-12-03 12:09:12 +01:00
Henri Verbeet 09dd10e7f5 dxgi/tests: Add some tests for IDXGIObject::GetParent(). 2009-12-03 12:08:56 +01:00
Henri Verbeet 3543e3d8cc dxgi: Implement IDXGIFactory::GetParent(). 2009-12-03 12:08:51 +01:00
Henri Verbeet bfdd5df7f0 dxgi: Implement IDXGIDevice::GetParent(). 2009-12-03 12:08:46 +01:00
Henri Verbeet aa85b4c61d dxgi: Implement IDXGIOutput::GetParent(). 2009-12-03 12:08:41 +01:00
Andrew Nguyen 77933a925b shlwapi: The third parameter of UrlCombineA/W is an output parameter. 2009-12-03 12:06:27 +01:00
Marcus Meissner faf1485e4e winspool.drv: Check ptr for being NULL (Coverity). 2009-12-03 12:05:52 +01:00
Stefan Dösinger 6a19339207 wined3d: Remove needless NULL checks (coverity). 2009-12-03 11:45:15 +01:00
Paul Vriens 5bc0dd711a mshtml/tests: Run tests again on boxes with older IE. 2009-12-03 10:23:05 +01:00
James Hawkins 6b8b82ef13 msi: ExpandEnvironmentStringsW returns the required size in characters, so multiply the required size by sizeof(WCHAR) when allocating the buffer. 2009-12-03 10:22:40 +01:00
Jacek Caban 9ac7949810 jscript: Correctly handle -1 index in regexp match result. 2009-12-03 10:22:20 +01:00
Jacek Caban bd715dc8e4 mshtml: Detach window from frame element on window destruction. 2009-12-03 10:22:13 +01:00
Jacek Caban bfec9c619b mshtml: Fixed dispid lookup in_cp_event. 2009-12-03 10:22:09 +01:00
Jacek Caban 451f5b4ad6 mshtml: Added generic bind_to_tree node notification and use it to set frame's content window. 2009-12-03 10:22:04 +01:00
Jacek Caban 2b04973e09 mshtml: Fixed tests on older IEs. 2009-12-03 10:21:55 +01:00
Michael Stefaniuc b8a087d6a8 wininet: Free the mem unconditionally to prevent a potential leak (Smatch). 2009-12-03 10:21:48 +01:00
Marcus Meissner c848e4ee86 riched20: Check for NULL in rtf reader (Coverity). 2009-12-03 10:21:44 +01:00
Marcus Meissner 40026a7eb7 mmsystem.dll16: Check for NULL ptr in mmioRename (Coverity). 2009-12-03 10:21:39 +01:00
Juan Lang 91fbdb561a crypt32: The KeyId member of an authority key identifier is an octet string, not an integer. 2009-12-03 10:16:53 +01:00
Nikolay Sivov aa737174f0 user32/edit: Check for edit window to be here in case of destruction during handler execution. 2009-12-03 10:16:39 +01:00
Nikolay Sivov 0e16d4cd5b user32/tests: Free window after use. 2009-12-03 10:15:33 +01:00
Nikolay Sivov 48cb3a30b5 user32/tests: Restore original procedure to let control clean up. 2009-12-03 10:15:24 +01:00
Stefan Leichter 941d69e544 setupapi/tests: Use separate directory for SetupGetInfFileListW. 2009-12-03 10:15:06 +01:00
Peter Rosin f79cd33fc4 msvcrt: Handle the SIGBREAK signal. 2009-12-03 10:14:44 +01:00
Peter Rosin 83ec2f4f04 msvcrt: Add test to check if signal(SIGBREAK, ...) works (todo_wine). 2009-12-03 10:14:31 +01:00