Kaydet (Commit) 28b85750 authored tarafından Caolán McNamara's avatar Caolán McNamara

WaE, ignore return value from symlink

üst 1d871c1d
......@@ -879,8 +879,9 @@ void ShutdownIcon::SetAutostart( bool bActivate )
osl_getThreadTextEncoding() );
if ((0 != symlink(aDesktopFileUnx, aShortcutUnx)) && (errno == EEXIST))
{
unlink(aShortcutUnx);
symlink(aDesktopFileUnx, aShortcutUnx);
unlink(aShortcutUnx);
int ret = symlink(aDesktopFileUnx, aShortcutUnx);
(void)ret; //deliberately ignore return value, it's non-critical if it fails
}
ShutdownIcon *pIcon = ShutdownIcon::createInstance();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment