Commit Graph

179 Commits

Author SHA1 Message Date
Jacek Caban fe6a1d8991 winemenubuilder: Use static initalizer for mimeProgidTree and nativeMimeTypes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 22:22:46 +09:00
Marcus Meissner 2e32c0c657 winemenubuilder: Avoid double free (Coverity).
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 23:05:21 +09:00
Nikolay Sivov f2538c6e26 winemenubuilder: Simplify MIME types list management.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-22 10:42:34 +01:00
Michael Stefaniuc 915bdcbdca winemenubuilder: Simplify an if-condition (PVS-Studio).
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-14 12:51:01 +09:00
Qian Hong 2b6573ac3f winemenubuilder: Fix copy and paste error. 2015-06-17 15:45:05 +09:00
Ken Thomases 0815dc223e winemenubuilder: Fix compiling on OS X. 2015-03-18 23:54:54 +09:00
Francois Gouget 520dcb4c23 winemenubuilder: Handle icons disguised as executables and better validate icon streams.
For some applications the shortcut's icon points to a .exe file which in
fact contains a .ico file. This means open_icon() cannot rely on the
file extension.  Also reject icon streams that don't actually contain a
valid icon and use the next source as a fallback.
2015-03-17 14:17:16 +09:00
Francois Gouget d4b9ac46a0 winemenubuilder: Avoid a couple of forward declarations. 2015-03-17 14:15:45 +09:00
Drew Ronneberg cbc8f3c811 winemenubuilder: Eliminate an unused variable. 2014-12-18 11:30:12 +01:00
Drew Ronneberg e6a558ad82 winemenubuilder: Prevent recursion by calling open_module_icon() instead of open_icon() 2014-12-17 18:04:05 +01:00
André Hentschel b5eec81315 winemenubuilder: Respect TMPDIR environment variable. 2014-09-24 11:04:56 +02:00
Indrek Altpere c205e6800a winemenubuilder: Fix crash on invalid icon entries. 2014-09-05 15:31:34 +02:00
Indrek Altpere 7b8624649a winemenubuilder: Fix resource leak (Valgrind). 2014-08-27 11:02:15 +02:00
André Hentschel aa831198c2 winemenubuilder: Return FALSE on error when processing links and URLs. 2014-04-29 11:21:04 +02:00
André Hentschel aa7185a098 winemenubuilder: Use boolean return values in boolean functions. 2014-04-23 11:12:51 +02:00
Frédéric Delanoy e5a26f6fdf winemenubuilder: Use BOOL type where appropriate. 2014-03-03 17:02:28 +01:00
André Hentschel 87c7c961f2 Assorted spelling fixes. 2014-01-06 17:33:24 +01:00
Austin English a0b8d304b7 winemenubuilder: Initialize a variable. 2013-05-30 19:33:09 +02:00
Alexandre Julliard 43ac582d7d libport: Rename spawnvp to _spawnvp to avoid the deprecated name. 2013-04-09 15:26:10 +02:00
Sergey Guralnik 79808429c1 winemenubuilder: Try to wait for creating icon files. 2013-01-30 20:10:51 +01:00
Francois Gouget ed04a730f9 winemenubuilder: Return the icon identifier instead of the full path on Mac OS X too. 2012-11-02 10:59:30 +01:00
Francois Gouget 712b3571be winemenubuilder: Use the same icon name on Mac OS X as on Unix. 2012-11-02 10:59:26 +01:00
Ken Thomases 2600705695 winemenubuilder: Use proper marker (negative index) for unused icon slot. 2012-10-22 11:34:02 +02:00
Aric Stewart baf2ac6fbe winemenubuilder: Scale 64x64 classic icons to 128x128 for Icns format. 2012-10-19 11:44:03 +02:00
Per Johansson 113b090f5e winemenubuilder: Correct InvokeShellLinkerForURL return value. 2012-09-20 19:53:10 +02:00
Per Johansson b8ee44581e winemenubuilder: Don't treat empty string as a valid icon file name. 2012-09-20 19:53:05 +02:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
Nikolay Sivov 4db6d184b3 menubuilder: Use va_start/va_end around vsnprintf() on every call. 2012-02-16 11:46:34 +01:00
Ken Thomases 31141a3bea winemenubuilder: Use _P_DETACH instead of _P_NOWAIT with spawnvp() to avoid zombies. 2011-12-01 10:46:56 +01:00
Charles Davis db7383d969 winemenubuilder: Don't define crc16() on Mac OS. 2011-10-10 13:30:31 +02:00
Francois Gouget bd7b345b26 Assorted spelling fixes & co. 2011-09-27 11:00:13 +02:00
Damjan Jovanovic 01d5a0f53b winemenubuilder: Do case-insensitive glob comparisons. 2011-08-29 12:08:20 +02:00
Damjan Jovanovic 3c7b08be27 winemenubuilder: Use the command from the "open" verb. 2011-08-24 14:04:08 +02:00
Per Johansson 1a3b85a5bd winemenubuilder: Use start.exe to open URLs to respect URL handlers in registry. 2011-08-23 16:53:49 +02:00
Detlef Riekenberg 2497a91f6b winemenubuilder: Show filename on failure. 2011-06-27 17:32:15 -05:00
Damjan Jovanovic 87e9f32f6d winemenubuilder: Extract icons from NE binaries too. 2011-05-24 13:24:50 +02:00
Lauri Kenttä c2705081ac winemenubuilder: Avoid warning about uninitialized value (clang). 2011-05-18 10:52:26 +02:00
Damjan Jovanovic 299d84bf2c winemenubuilder: Do not skip entries when cleaning up file open associations. 2011-03-30 18:23:37 +02:00
Dan Kegel 94462664c5 winemenubuilder: File associations should set wineprefix. 2011-03-28 17:08:53 +02:00
Damjan Jovanovic 7c8f5feba0 winemenubuilder: FriendlyDocName isn't part of the association. 2011-02-25 16:33:40 +01:00
Jerome Leclanche 44527f57b2 winemenubuilder: Make sure extension-based mimetypes are always lowercase. 2011-02-21 12:46:31 +01:00
Damjan Jovanovic bf07eb926e winemenubuilder: Extract all icon sizes on freedesktop too. 2011-01-17 12:50:14 +01:00
Ken Thomases e72a37e960 winemenubuilder: On Mac, size is implicit in ICNS slot; don't search for best. 2011-01-12 11:32:19 +01:00
Ken Thomases eb40939092 winemenubuilder: On Mac, ignore non-square icon entries. 2011-01-12 11:32:19 +01:00
Ken Thomases 3a5e6c4357 winemenubuilder: On Mac, understand and keep 256x256 Vista-style icons. 2011-01-12 11:32:18 +01:00
Andrew Bogott a901983fe3 winemenubuilder: Avoid passing a null pointer (or a non-pointer) to extract_icon in InvokeShellLinkerForURL. 2011-01-11 16:05:46 +01:00
Ken Thomases 53ba89c967 winemenubuilder: On Mac OS X, keep multiple icon sizes.
ICNS files can store multiple sizes, like ICOs.
2011-01-06 11:43:18 +01:00
Francois Gouget 7b28ae53e1 winemenubuilder: Fix compilation on systems that don't support nameless unions. 2011-01-04 16:03:21 +01:00
Jerome Leclanche 33c7105ecf winemenubuilder: Add a trailing semicolon to MimeType in desktop files. 2010-12-14 11:38:51 +01:00
Andrew Bogott 4c386998b0 winemenubuilder: In InvokeShellLinkerForURL, better replicate the deferral behavior in InvokeShellLinker.
This gives us a second chance, if the icon file doesn't exist yet
during the first call.
2010-12-13 12:43:29 +01:00