Revert "Fix test failure for WINAPI_FAMILY"

This reverts commit a53eb9746b9eb6f146eb3c4da8bb58387f6e63b3.