This commit was manufactured by cvs2svn to create tag 'APU_0_9_4'.

git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/tags/APU_0_9_4@58935 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/aprutil.dsp b/aprutil.dsp
index d415a51..1baa27e 100644
--- a/aprutil.dsp
+++ b/aprutil.dsp
@@ -387,7 +387,7 @@
 # Begin Custom Build - Creating apu_want.h from apu_want.hw
 InputPath=.\include\apu_want.hw
 
-".\include\apu.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+".\include\apu_want.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
 	type .\include\apu_want.hw > .\include\apu_want.h
 
 # End Custom Build
diff --git a/include/apu_version.h b/include/apu_version.h
index e16d264..b407375 100644
--- a/include/apu_version.h
+++ b/include/apu_version.h
@@ -107,7 +107,7 @@
  *  This symbol is defined for internal, "development" copies of APU. This
  *  symbol will be #undef'd for releases. 
  */
-#define APU_IS_DEV_VERSION
+/* #undef APU_IS_DEV_VERSION */
 
 
 /** The formatted string of APU's version */
diff --git a/misc/apr_reslist.c b/misc/apr_reslist.c
index abef72f..a22f0d9 100644
--- a/misc/apr_reslist.c
+++ b/misc/apr_reslist.c
@@ -286,7 +286,7 @@
 
     /* Do some sanity checks so we don't thrash around in the
      * maintenance routine later. */
-    if (min >= smax || min >= hmax || smax > hmax || ttl < 0) {
+    if (min > smax || min > hmax || smax > hmax || ttl < 0) {
         return APR_EINVAL;
     }
 
@@ -368,6 +368,12 @@
      * a resource to fill the slot and use it. */
     else {
         rv = create_resource(reslist, &res);
+
+        if (rv != APR_SUCCESS) {
+           apr_thread_mutex_unlock(reslist->listlock);
+           return rv;
+        }
+
         reslist->ntotal++;
         *resource = res->opaque;
         free_container(reslist, res);