Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4C1D92004F1 for ; Wed, 30 Aug 2017 12:28:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 48C4B167174; Wed, 30 Aug 2017 10:28:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9077016716D for ; Wed, 30 Aug 2017 12:28:08 +0200 (CEST) Received: (qmail 56924 invoked by uid 500); 30 Aug 2017 10:28:07 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 56914 invoked by uid 99); 30 Aug 2017 10:28:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Aug 2017 10:28:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 94433C45BA for ; Wed, 30 Aug 2017 10:28:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=qqmail.nl Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id VjVK1kJFZHFT for ; Wed, 30 Aug 2017 10:28:04 +0000 (UTC) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 20EA661029 for ; Wed, 30 Aug 2017 10:28:04 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id u126so6989474wmg.1 for ; Wed, 30 Aug 2017 03:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qqmail.nl; s=google; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-transfer-encoding:content-language:thread-index; bh=XmSevzHETXLKNoYV5YJMhRJGCUmBOAsRULg+FzxlywY=; b=KPtvQRZ8vnloqMVZSQ5VkHklNXctJbFU/9nElfTjG6cVQUUzzmaXbW5q5fEhhGLm5L t+BHqbp3so6sGqVYMti0LlnM2tFJcihgNqoRBS+6zPfbt2A3J94qdVva+2JpLz5qhS4x 2mSSYfuKMj5IRDhQ2Io+csC7gQbsRFnGxJLgY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:content-language :thread-index; bh=XmSevzHETXLKNoYV5YJMhRJGCUmBOAsRULg+FzxlywY=; b=saZ8rW+eqOwFO8zJiTu2Z3N8H7eILAvyTaB6dgdF/wI0/gOTwsc8DyFHcRHPAB9n1J msE3jXApqvZ8WSonXEv/12hgj9qvAlLVqnEWNAg9NPf5vLay+LSsnwYT+kGoFsqob7Ir QsUSgDfisVIwYR9lUisLUO3J6T01GuHmLndgciK3/bVDHRE3/MwWt4crKnXC4YrTLpNQ AjHxJQCotYXO3dpjWNJJc7jZo8hlrhDYWxirENMCXnN5OwRg5/wNYMbATddRWZ4gqrGU F7pxJCZi9c9g10SjMMAJEMzd/xV5sw91+iQP7zgo1WKMRz/3gc/ecbk/j4vDmQgLYOUw HmeQ== X-Gm-Message-State: AHYfb5iNvUcJHw5r2G4xnHPYFydk7caYgDbZMNMMBtEuelavQxFx42i0 bHpVhOth+UjvL5AL X-Received: by 10.80.216.73 with SMTP id v9mr1345240edj.242.1504088883612; Wed, 30 Aug 2017 03:28:03 -0700 (PDT) Received: from I72600 ([2001:470:7b85:0:52e5:49ff:fee1:96b7]) by smtp.gmail.com with ESMTPSA id l50sm4585105eda.21.2017.08.30.03.28.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Aug 2017 03:28:03 -0700 (PDT) From: "Bert Huijben" To: , References: <20170829145914.D66163A00A3@svn01-us-west.apache.org> In-Reply-To: <20170829145914.D66163A00A3@svn01-us-west.apache.org> Subject: RE: svn commit: r1806603 - /apr/apr/trunk/file_io/win32/readwrite.c Date: Wed, 30 Aug 2017 12:28:00 +0200 Message-ID: <008801d3217a$a857cf10$f9076d30$@qqmail.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: nl Thread-Index: AQKJeXfF8AKP5qKR5qn1Wet5WevhOKEwAhZA archived-at: Wed, 30 Aug 2017 10:28:09 -0000 > -----Original Message----- > From: ivan@apache.org [mailto:ivan@apache.org] > Sent: dinsdag 29 augustus 2017 16:59 > To: commits@apr.apache.org > Subject: svn commit: r1806603 - = /apr/apr/trunk/file_io/win32/readwrite.c >=20 > Author: ivan > Date: Tue Aug 29 14:59:11 2017 > New Revision: 1806603 >=20 > URL: http://svn.apache.org/viewvc?rev=3D1806603&view=3Drev > Log: > Minor refactoring of the Win32 file write code. >=20 > * file_io/win32/readwrite.c > (apr_file_write): Update filePtr in the asynchronous I/O mode after > the WriteFile() call. This allows simplifying the condition by not > checking for thefile->pipe property. >=20 > Patch by: Evgeny Kotkov >=20 > Modified: > apr/apr/trunk/file_io/win32/readwrite.c >=20 > Modified: apr/apr/trunk/file_io/win32/readwrite.c > URL: > = http://svn.apache.org/viewvc/apr/apr/trunk/file_io/win32/readwrite.c?rev > =3D1806603&r1=3D1806602&r2=3D1806603&view=3Ddiff > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- apr/apr/trunk/file_io/win32/readwrite.c (original) > +++ apr/apr/trunk/file_io/win32/readwrite.c Tue Aug 29 14:59:11 2017 > @@ -398,6 +398,9 @@ APR_DECLARE(apr_status_t) apr_file_write > } > rv =3D WriteFile(thefile->filehand, buf, (DWORD)*nbytes, = &bwrote, > thefile->pOverlapped); > + if (rv =3D=3D APR_SUCCESS && thefile->pOverlapped) { > + thefile->filePtr +=3D *nbytes; > + } The result of WriteFile should not be checked against APR_SUCCESS, as = that is not a documented Windows result code. The right constant = evaluating to 0 should be used. Bert