fix regression in win8 code

Change-Id: Ibc5755f1ab25f9455ae426792741177383ffb908