This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: return value of mkshortcut on Windows 7
- From: Andy Koppe <andy dot koppe at gmail dot com>
- To: dbyron at dbyron dot com, cygwin at cygwin dot com
- Date: Thu, 11 Mar 2010 05:45:09 +0000
- Subject: Re: return value of mkshortcut on Windows 7
- References: <000001cac0a0$b9b2bec0$2d183c40$@com>
David Byron:
> mkshortcut is returning 8 when I expect it to return 0.
Yep, known issue.
> I'd love a hand getting mkshortcut to return 0 in this case.
Index: src/mkshortcut/mkshortcut.c
===================================================================
RCS file: /cvs/cygwin-apps/cygutils/src/mkshortcut/mkshortcut.c,v
retrieving revision 1.10
diff -u -r1.10 mkshortcut.c
--- src/mkshortcut/mkshortcut.c 3 Dec 2009 08:19:44 -0000 Â Â Â 1.10
+++ src/mkshortcut/mkshortcut.c 11 Mar 2010 05:43:05 -0000
@@ -612,6 +612,7 @@
ÂÂ Â Â Â Â Â }
ÂÂ Â Â Â Â persist_file->lpVtbl->Release (persist_file);
ÂÂ Â Â Â Â shell_link->lpVtbl->Release (shell_link);
+ Â Â Â Â Âreturn (0);
ÂÂ Â Â Â }
ÂÂ Â Â else
ÂÂ Â Â Â {