~ubuntu-branches/ubuntu/lucid/nspr/lucid-updates

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/src/md/windows/w95io.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-10-04 18:04:37 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20101004180437-7vqwz17gqm8um9lv
Tags: 4.8.6-0ubuntu0.10.04.2
* New upstream release v4.8.6
* Refresh patches:
  - update debian/patches/99_configure.patch 
* Update symbols file for API addition
  - update debian/libnspr4-0d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
673
673
**
674
674
*/
675
675
 
676
 
PRStatus
 
676
PRInt32
677
677
_PR_MD_CLOSE_DIR(_MDDir *d)
678
678
{
679
679
    if ( d ) {
680
680
        if (FindClose(d->d_hdl)) {
681
681
        d->magic = (PRUint32)-1;
682
 
        return PR_SUCCESS;
 
682
        return 0;
683
683
                } else {
684
684
                        _PR_MD_MAP_CLOSEDIR_ERROR(GetLastError());
685
 
                return PR_FAILURE;
 
685
                return -1;
686
686
                }
687
687
    }
688
688
    PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0);
689
 
    return PR_FAILURE;
 
689
    return -1;
690
690
}
691
691
 
692
692
 
1578
1578
    return NULL;
1579
1579
}
1580
1580
 
1581
 
PRStatus
 
1581
PRInt32
1582
1582
_PR_MD_CLOSE_DIR_UTF16(_MDDirUTF16 *d)
1583
1583
{
1584
1584
    if ( d ) {
1585
1585
        if (FindClose(d->d_hdl)) {
1586
1586
            d->magic = (PRUint32)-1;
1587
 
            return PR_SUCCESS;
 
1587
            return 0;
1588
1588
        } else {
1589
1589
            _PR_MD_MAP_CLOSEDIR_ERROR(GetLastError());
1590
 
            return PR_FAILURE;
 
1590
            return -1;
1591
1591
        }
1592
1592
    }
1593
1593
    PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0);
1594
 
    return PR_FAILURE;
 
1594
    return -1;
1595
1595
}
1596
1596
 
1597
1597
#define _PR_IS_W_SLASH(ch) ((ch) == L'/' || (ch) == L'\\')