Windows: drive mapping enumeration infinite loop
authorJeffrey Altman <jaltman@your-file-system.com>
Fri, 15 Mar 2013 17:07:21 +0000 (13:07 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Sat, 16 Mar 2013 22:09:21 +0000 (15:09 -0700)
commite5966117c4f0db631e0e25fc27f63e4caa76fa23
tree953d0bd1633456ce0658c5d26c1359ce2970cc22
parent086b47404f7c79acd95fea04684a6af6fb09df1a
Windows: drive mapping enumeration infinite loop

If WNetEnumResource returns an error as opposed to success, such as
ERROR_UNEXP_NET_ERR, the enumeration loop would retry forever passing
zero for 'cEntries' which in turn results in a successful response
containing zero entries.

Change the while conditional to test for continued success instead
of ERROR_NO_MORE_ENTRIES.

Change-Id: I93af73b379aa455de7a8b3264b5178d482bb52b0
Reviewed-on: http://gerrit.openafs.org/9610
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/client_config/drivemap.cpp