diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2002-02-12 00:09:10 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2002-02-12 00:09:10 +0000 |
commit | 5d373ddb57b792390aa8977d0bbffb45220be59e (patch) | |
tree | 834d3c026a685af7860173f067750e8a886a3b3f /file_io/win32/filedup.c | |
parent | 84a72fb5734e2dce556709da50544246ec06b914 (diff) | |
download | apr-5d373ddb57b792390aa8977d0bbffb45220be59e.tar.gz |
My misinterpretation. -1 is our interal flag for a invalid handle - it
is not a win32 HANDLE value.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62946 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/win32/filedup.c')
-rw-r--r-- | file_io/win32/filedup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/file_io/win32/filedup.c b/file_io/win32/filedup.c index af8dd2f08..f607dc8fa 100644 --- a/file_io/win32/filedup.c +++ b/file_io/win32/filedup.c @@ -109,7 +109,7 @@ APR_DECLARE(apr_status_t) apr_file_dup2(apr_file_t *new_file, 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)) { |