Commit Graph

207 Commits

Author SHA1 Message Date
Eric Pouech e62dd2a5b6 shell32: Always allocate a whole ITEMIDLIST structure.
Partially allocating a structure generates -Warray-bounds warnings
with GCC11. In this specific case, given the rounding in memory
allocators, would even not increase the effective allocated size.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 18:23:57 +02:00
Eric Pouech 570e24a014 shell32: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-18 09:32:11 +01:00
Zebediah Figura 3113c5412f shell32: Remove redundant definitions of undocumented shell functions.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-04 09:48:55 +01:00
Alexandre Julliard 48d62fc623 shell32: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-17 20:24:05 +02:00
Alexandre Julliard 23c3391172 shell32: Don't store the short file name in the PIDL.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-14 18:06:56 +02:00
Dmitry Timoshkov e947844a7e shell32: Implement SHBindToObject.
Based on SHBindToParent implementation.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-26 19:42:25 +02:00
Nikolay Sivov 539644ad63 shell32: Remove "stub" from traces.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-05 16:16:15 +01:00
Piotr Caban 232255f3c5 shell32: Don't use strcasecmp.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-04 17:24:13 +02:00
Nikolay Sivov e3b200bd8a shell32: Use global memory allocation helpers.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-22 14:16:33 +01:00
Jacek Caban d9fc7d271c shell32: Added SHGetPathFromIDListEx implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-23 20:12:41 +01:00
Lauri Kenttä 1c3d6ab9cc shell32: Cosmetic changes to file type names.
Signed-off-by: Lauri Kenttä <lauri.kentta@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-29 21:21:31 +01:00
Thomas Faber e582495927 shell32: Use QueryInterface in FolderView_GetFolder.
test_IFolderView has a test that shows that the shell folder's reference
count before and after the call to IFolderView_GetFolder is the same.
However this is misleading because it is not a property of the
IFolderView_GetFolder method, but of the desktop shell folder object
that's used in the folder view. Windows <=2003 uses a cached object and
its AddRef/Release methods return constants.
2015-06-30 14:41:43 +09:00
Francois Gouget 351d907bbd shell32: Remove unneeded NONAMELESSXXX directives. 2015-03-20 17:50:06 +09:00
Frédéric Delanoy 5ba7f79bad Assorted spelling fixes. 2013-12-03 19:41:53 +01:00
Marcus Meissner 1440c54b99 shell32: Fixed wrong sizeof() in ZeroMemory (Coverity). 2013-09-30 11:34:51 +02:00
André Hentschel b4b396a957 shell32: Reorder code to avoid memory leaks (coverity). 2012-10-29 10:38:19 +01:00
Michael Stefaniuc 563d229b5f shell32: Avoid TRUE:FALSE conditional expressions. 2012-08-14 11:59:18 +02:00
Nikolay Sivov a4dd8fb6a8 shell32: Use S_OK as successful return code name. 2012-01-09 15:34:15 +01:00
Francois Gouget f5dede7c19 shell32: Add parentheses to clarify the precedence between '&' and '||'. 2011-09-12 11:00:57 +02:00
Piotr Caban 92ba2168fa shell32: Improved equal ITEMIDLISTs handling in ILIsParent. 2011-01-06 11:26:22 +01:00
David Hedberg c9372a1c3c shell32: Fix trace formatting in SHGetNameFromIDList. 2010-11-08 13:30:21 +01:00
David Hedberg a690db9f1e shell32: Replace some checks with calls to _ILIsEmpty(). 2010-08-02 15:56:48 +02:00
David Hedberg b8a40388ee shell32: Implement SHGetIDListFromObject. 2010-07-23 13:05:31 +02:00
David Hedberg b43bcdf524 shell32: Implement SHGetNameFromIDList and IShellItem::GetDisplayName. 2010-07-23 13:05:31 +02:00
Nikolay Sivov 45d6329cbb shell32: Export lowlevel PIDL manipulation calls by name too. 2010-05-26 17:36:32 +02:00
André Hentschel c9a78f7e62 shell32: Return boolean values. 2010-04-26 11:13:55 -05:00
Nikolay Sivov fb45de3f66 shell32: Use return value on failure updated in Vista+. 2010-03-04 17:29:16 +01:00
Nikolay Sivov ab0e037ee0 shell32: Remove WINAPI where it's not needed. 2010-03-03 14:02:35 +01:00
Nikolay Sivov 500c785053 shell32: Implement SHParseDisplayName with basic tests. 2010-03-03 14:02:23 +01:00
Stefan Leichter 946f3f998f shell32: Stub for SHParseDisplayName. 2009-04-30 12:45:53 +02:00
Vincent Povirk 9b9325fbd1 shell32: Partially implement SHCreateShellItem. 2009-02-24 16:57:29 +01:00
Vincent Povirk 66258ccc29 include: Add IShellItem to headers. 2009-02-24 16:57:29 +01:00
Michael Stefaniuc 6c54ad3dba shell32: Remove superfluous pointer casts. 2009-02-19 12:52:02 +01:00
Francois Gouget 3eab2ee52f shell32: Make SHILCreateFromPathA() static and remove WINAPI. 2009-02-12 17:53:34 +01:00
Francois Gouget 54b2984de2 shell32: Make ILGetDisplayNameExA() static, remove WINAPI and fix its documentation. 2009-02-09 14:37:23 +01:00
Andrew Talbot 8838dcb4ce shell32: Declare some functions static. 2009-01-26 14:29:59 +01:00
Aric Stewart 9b0be4980a shell32: Initial stub for SHCreateShellItem. It returns E_NOINTERFACE until shell32 version 6.0 or later. 2009-01-21 10:24:59 +01:00
Alexandre Julliard 1abff5afef shell32: Make some functions static. 2008-12-03 12:09:38 +01:00
Francois Gouget 36e195a185 shell32: Remove WINAPI/CALLBACK on static functions where not needed. 2008-11-26 12:33:16 +01:00
Michael Stefaniuc b7de266082 shell32: Remove superfluous casts; mostly of void pointers. 2008-11-06 11:09:51 +01:00
Michael Stefaniuc f6baf97629 shell32: Use FAILED instead of !SUCCEEDED. 2008-10-08 13:41:52 +02:00
Andrew Talbot 7f80d8e0c9 shell32: Remove unneeded address-of operators from array names. 2008-07-16 17:52:14 +02:00
Jon Griffiths f2276f5a49 include: Provide wide char definitions for CFSTR_*. 2008-06-19 12:44:43 +02:00
Rob Shearman 21b9a50e08 shell32: Implement ParseDisplayName for EntireNetwork in the Network Places shell folder.
Add a test for this behaviour.
2008-04-11 11:12:04 +02:00
Andrew Talbot 2cce0040a0 shell32: Assign to structs instead of using memcpy. 2008-03-18 11:15:26 +01:00
Gerald Pfeifer 8a590e8daa shell32: Adjust a format specifier and remove a redundant range check in ILGetDisplayNameExW(). 2008-02-18 13:37:15 +01:00
Rob Shearman d92fe2cbfc shell32: Fix character count passed into lstrcpnA in SHGetDataFromIDListA. 2008-02-16 13:54:05 +01:00
Francois Gouget 44b52b128c Assorted spelling fixes. 2008-01-16 12:48:29 +01:00
Mike McCormack cc405b1522 shell32: Implement "My Network Places" shell folder. 2007-12-27 14:13:30 +01:00
Rob Shearman 1a67b1f53e shell32: Fix the length calculation of the pidl in ILSaveToStream by using the helper function ILGetSize. 2007-11-12 12:53:49 +01:00