Mercurial > dwindows
comparison win/dw.c @ 1115:03cd2f3e929d
Fixed a documentation and template error regarding dw_browse() return code.
Also fixed the Windows success return code to match what is expected.
And switched to using the error constants for returns.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 04 Aug 2011 21:34:53 +0000 |
parents | b905fd8e7fd1 |
children | e8e7f048f0b8 |
comparison
equal
deleted
inserted
replaced
1114:e3f0528f6c16 | 1115:03cd2f3e929d |
---|---|
9999 } | 9999 } |
10000 } | 10000 } |
10001 | 10001 |
10002 retcode = (int)ShellExecute(NULL, "open", browseurl, NULL, NULL, SW_SHOWNORMAL); | 10002 retcode = (int)ShellExecute(NULL, "open", browseurl, NULL, NULL, SW_SHOWNORMAL); |
10003 if(retcode<33 && retcode != 2) | 10003 if(retcode<33 && retcode != 2) |
10004 return -1; | 10004 return DW_ERROR_UNKNOWN; |
10005 return 1; | 10005 return DW_ERROR_NONE; |
10006 } | 10006 } |
10007 | 10007 |
10008 /* | 10008 /* |
10009 * Returns a pointer to a static buffer which containes the | 10009 * Returns a pointer to a static buffer which containes the |
10010 * current user directory. Or the root directory (C:\ on | 10010 * current user directory. Or the root directory (C:\ on |