bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wrong constant used with GetLastError


From: Paul Edwards
Subject: wrong constant used with GetLastError
Date: Sun, 26 Nov 2023 08:43:35 +0800

Hi.

I have made an initial (demo) port of CVS 1.11.23 to PDOS/386
(a mini Windows clone, sort of), available at http://pdos.org

In the process I made this change:

D:\devel\cvspe\windows-NT>cvs diff -c -r 1.2 -r 1.3 filesubr.c
Index: filesubr.c
===================================================================
RCS file: \cvsroot/cvspe/windows-NT/filesubr.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -c -r1.2 -r1.3
*** filesubr.c  23 Nov 2023 02:25:30 -0000      1.2
--- filesubr.c  24 Nov 2023 08:45:43 -0000      1.3
***************
*** 935,941 ****
        h = FindFirstFile (argv[i], &fdata);
        if (h == INVALID_HANDLE_VALUE)
        {
!           if (GetLastError () == ENOENT)
            {
                /* No match.  The file specified didn't contain a wildcard
(in which case
                   we clearly should return it unchanged), or it contained
a wildcard which
--- 935,941 ----
        h = FindFirstFile (argv[i], &fdata);
        if (h == INVALID_HANDLE_VALUE)
        {
!           if (GetLastError () == ERROR_FILE_NOT_FOUND)
            {
                /* No match.  The file specified didn't contain a wildcard
(in which case
                   we clearly should return it unchanged), or it contained
a wildcard which

D:\devel\cvspe\windows-NT>


I checked the repository and the old code is still there.

BFN. Paul.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]