Commit Graph

91 Commits

Author SHA1 Message Date
Mike McCormack 5960e7c93c MSI advertised shortcuts don't require a product ID. 2005-04-22 19:06:12 +00:00
Peter Berg Larsen 6e3bcb5a54 Replace strncpy with memcpy or lstrcpyn. 2005-04-18 10:30:55 +00:00
Huw Davies 0e5b772cdc Add a unicode pidl type.
Improve support for PT_YAGUID.
Improve IShellLink debugging.
2005-04-13 14:39:27 +00:00
Mike McCormack a5cb5a2ab3 Use api definitions, remove duplicate code. 2005-03-27 17:54:48 +00:00
Jakob Eriksson 9ed61de9a2 Get rid of HeapAlloc casts. 2005-03-24 21:01:35 +00:00
Jon Griffiths dbf222f3aa Use LMEM_ flags for LocalAlloc(), not GMEM_ (GlobalAlloc). 2005-03-17 20:53:37 +00:00
Francois Gouget fbb3343547 Assorted spelling fixes. 2005-03-02 13:53:50 +00:00
Mike McCormack 64c3208e10 - implement loading and saving of MSI advertised shortcut info
- make more test cases pass
- read and write the location block
- improve the binary compatibility of lnk files
2005-02-25 16:19:57 +00:00
Dmitry Timoshkov 9074f257e0 Convert winemenubuilder to unicode. 2005-02-17 11:51:44 +00:00
Huw Davies 084e596a95 SetPath("") should return S_OK.
SetPath("nonexistent_path") should return S_FALSE.
2005-02-16 16:27:42 +00:00
James Hawkins ba92d2924a - Use Interlocked* instead of ++/-- in AddRef/Release.
- Use only stored result of Interlocked* in AddRef/Release.
- Expand TRACEs to display the ref count.
2005-01-14 16:02:20 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Francois Gouget 486d020c1b Don't define COBJMACROS in objbase.h.
Update the Wine sources accordingly.
2004-10-07 03:06:48 +00:00
Francois Gouget 67aa858a31 Assorted spelling fixes. 2004-10-05 18:15:29 +00:00
Martin Fuchs 09878e1c6a At least print message if we're not returning requested data. 2004-09-23 22:52:03 +00:00
Martin Fuchs 1c8d9b66c3 Store absolute path in .lnk file. 2004-09-22 19:11:27 +00:00
Martin Fuchs fa417e2869 Implement IShellLinkA::Resolve and IShellLinkW::Resolve. 2004-09-22 04:00:56 +00:00
Alexandre Julliard 314b99c48f Removed some more uses of the non-standard ICOM_THIS macro. 2004-09-09 20:17:07 +00:00
Alexandre Julliard f714b39762 Get rid of the no longer used ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
macro.
2004-08-23 19:39:48 +00:00
Aric Stewart 383de6efbc Make sure exePath contains the path since it is used later in the
function as well.
2004-08-23 17:55:29 +00:00
Aric Stewart 4133ed17d9 In IPersistFile_Save if the exe file is not found, trust the path we
are given and allow creation of the link.
2004-08-20 19:28:33 +00:00
Alexandre Julliard 48c4bb3c31 Get rid of the non-standard ICOM_VTABLE macro. 2004-08-12 23:00:51 +00:00
Alexandre Julliard 0467ce9fd7 Get rid of the non-standard ICOM_VFIELD macro. 2004-08-12 19:52:49 +00:00
Francois Gouget 6a6c85c6d8 Make Unicode const strings static so they are not copied to the stack
each time we enter the function.
2004-04-19 20:12:14 +00:00
Martin Fuchs 1ab301d7be - eliminate MSVC type conversion warning
- IShellLink::GetIconLocation(): get icons for shell links if not
  already set
2004-04-12 23:12:39 +00:00
Alexandre Julliard bb133bd596 Fixed a couple of header files ordering issues. 2004-04-07 03:59:41 +00:00
Martin Fuchs b44f8253cf - fix dirty flag on shelllink loading and saving
- update absolute path when changing relative path
2004-04-05 20:12:57 +00:00
Martin Fuchs 906be1dcb0 - Fix handling of %2, %3, ... and lower case format characters in
SHELL_ArgifyW().
- Move "%I" expansion from ShellExecuteEx() into common function
  SHELL_ArgifyW().
- Pass buffer length to SHELL_FindExecutable().
- FIXME comment for len paramater in SHELL_ArgifyW().

Ge van Geldorp <ge@gse.nl>
- Add double quotation marks unless we already have them (e.g.: "%1"
  %* for exefile).
- Remove unnecessary double quotation marks and command line arguments.
2004-03-26 02:29:12 +00:00
Martin Fuchs df23d95476 Implementation of IPersistFile::IsDirty(). 2004-03-25 23:36:45 +00:00
Martin Fuchs 075d6a1238 Fix for recent shelllink patch, which removed the important part of
returning the result pointer from IShellLink_ConstructFromFile().
2004-03-22 22:58:37 +00:00
Mike McCormack b0b467ab95 Update path from relative path on loading. 2004-03-22 21:12:39 +00:00
Martin Fuchs eae9444bc8 - fix typos in shelllink.c header comment and a struct comment
- corrected SCF_UNICODE constant and use the value of SCF_UNC instead
- implemented IShellLink_ConstructFromFile() to read shell links from
  files
- call IShellLink_ConstructFromFile() in ISF_..._fnGetUIObjectOf()
  when being queried for IShellLink interface
2004-01-20 01:37:24 +00:00
Alexandre Julliard f9be2f3d21 Removed some unnecessary includes. 2003-11-17 20:31:29 +00:00
Dimitrie O. Paun b0f4a564a1 Move useful information out of documentation/shell32. 2003-10-09 19:47:08 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Alexandre Julliard d937dc2963 Implemented shtypes.idl and shobjidl.idl and removed a few more
wine/obj_* headers.
2003-09-04 19:43:39 +00:00
Francois Gouget 9591836ffb 'sizeof type' is best avoided as it won't always compile (e.g. 'int
main() {return sizeof int;}'). Use 'sizeof(type)' instead.
2003-06-18 19:45:22 +00:00
Mike McCormack 88090b47a6 Remove code that starts wineshelllink, instead create a windows
compatible shortcut (*.lnk) file. After creating that file, start a
link processor (winemenubuilder) on it, which reads it back then calls
wineshelllink.
Rework CreateStreamFromFile to create an IStream object that is
writeable.
2003-05-21 18:50:53 +00:00
Robert Lunnon 2eab8afaa9 Eliminate segfault due to NULL This->sIcoPath. 2003-05-06 18:36:54 +00:00
Alexandre Julliard c2ebe1ff93 Removed uses of the non standard ICOM_VTBL macro. 2003-04-10 18:17:34 +00:00
Alexandre Julliard 2ee8b5bb13 Replaced mkstemp by mkstemps from libiberty.
Removed a couple of unnecessary portability functions.
2003-03-20 21:07:49 +00:00
Johan Dahlin 991fd85d2f Make shell32 compile with -DSTRICT. 2002-11-21 23:56:42 +00:00
Marcus Meissner 095a5f4d40 Also silence IShellLinkA_fnSetShowCmd. 2002-11-15 00:02:36 +00:00
Marcus Meissner 6f21fe0044 Silence IShellLink::SetShowCmd for the case we support. 2002-11-12 23:25:33 +00:00
Marcus Meissner 93e366e6ba Escape \ in path and arguments.
Use UNIX style work_dir, not windows dir.
2002-10-31 23:35:20 +00:00
Dusan Lacko a9568dd08b Fix extraction of icons from ICO files. 2002-08-20 00:25:03 +00:00
Patrik Stridvall d016f819f1 Added include protection for unistd.h and sys/time.h. 2002-08-17 00:43:16 +00:00
Mike McCormack 03bbb46442 Don't try reading a PIDL in IPersistStream->Load if its size is 0.
Check the number of bytes read was correct.
Small reorganization of error handling.
2002-08-16 23:27:07 +00:00
Marcus Meissner 786d24903b Check for mkstemp, added a port implementation if it is not
present. Use mkstemp() in various places needing tmp files.
2002-07-29 23:55:39 +00:00
Juergen Schmied 1e5ec8893d - Cleaned up the implementation of shell folders and put them into
separate files.
- Fixed some memory leaks.
- Some more fixes.
2002-07-24 01:56:03 +00:00