shell/Windows: Fix the view not being updated on StateError
authorJocelyn Turcotte <jturcotte@woboq.com>
Mon, 9 Jan 2017 13:25:00 +0000 (14:25 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Wed, 18 Jan 2017 11:15:52 +0000 (12:15 +0100)
commite131c142ff7b240378ae895eaac1a9cbea16caf0
tree76179363178cbbf6d9ab45823fdafcd85ec5d867
parent1b99ff2e9170056db7fa993692ae2dd4462a1946
shell/Windows: Fix the view not being updated on StateError

Since StateError == 0, if this was the status used when the path
isn't in the map already, the view would not be updated since the
new state would be the same as the default-constructed state in the
map. Fix by explicitly inserting in that case, this also avoid aving
to do two lookups in the map when a path already has an entry.
shell_integration/windows/OCUtil/RemotePathChecker.cpp