apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/file_io/win32 filedup.c
Date Tue, 12 Feb 2002 00:09:10 GMT
wrowe       02/02/11 16:09:10

  Modified:    file_io/win32 filedup.c
  Log:
    My misinterpretation.  -1 is our interal flag for a invalid handle - it
    is not a win32 HANDLE value.
  
  Revision  Changes    Path
  1.41      +1 -1      apr/file_io/win32/filedup.c
  
  Index: filedup.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/win32/filedup.c,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- filedup.c	12 Feb 2002 00:06:04 -0000	1.40
  +++ filedup.c	12 Feb 2002 00:09:10 -0000	1.41
  @@ -109,7 +109,7 @@
           stdhandle = STD_INPUT_HANDLE;
       }
   
  -    if (stdhandle != INVALID_HANDLE_VALUE) {
  +    if (stdhandle != -1) {
           if (!DuplicateHandle(hproc, old_file->filehand, 
                                hproc, &newhand, 0,
                                TRUE, DUPLICATE_SAME_ACCESS)) {
  
  
  

Mime
View raw message