char source_p[MAXPATHLEN];
char dest_p[MAXPATHLEN];
- /*First argument to link function is the target and hence should go to frompath
- Second argument to link function is the link itself and hence should go to topath */
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &frompath, &frompath_len, &topath, &topath_len) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &topath, &topath_len, &frompath, &frompath_len) == FAILURE) {
return;
}
{/*{{{*/
BOOL res;
- res = CreateHardLinkW(target, link, NULL);
+ res = CreateHardLinkW(link, target, NULL);
if (!res) {
SET_ERRNO_FROM_WIN32_CODE(GetLastError());
return -1;