Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bc36bdbd authored by Spencer Low's avatar Spencer Low
Browse files

adb: win32: fix regression on older versions of Windows

On Windows 7, GetStdHandle() may return console pseudo-handles. If you
call SetHandleInformation(h, HANDLE_FLAG_INHERIT, 0) on such a handle,
it will fail. These failures should be ignored like the old code.

Newer versions of Windows return real handles that don't have this
issue. Console pseudo-handles can apparently be identified by the values
3, 7, 11.

This is a regression from 2122c7a1.

https://code.google.com/p/android/issues/detail?id=186599



Change-Id: I287a74a81d37e0ebe62d673a3f5651ee5439c0d2
Signed-off-by: default avatarSpencer Low <CompareAndSwap@gmail.com>
parent ebbbb7c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment