winpthreads: do not call GetHandleInformation in winstore build

The call is forbidden on non-desktop apps.

The check on INVALID_HANDLE_VALUE should be good enough.

Signed-off-by: Liu Hao <lh_mouse@126.com>
diff --git a/mingw-w64-libraries/winpthreads/src/misc.h b/mingw-w64-libraries/winpthreads/src/misc.h
index a86c025..cdb2426 100644
--- a/mingw-w64-libraries/winpthreads/src/misc.h
+++ b/mingw-w64-libraries/winpthreads/src/misc.h
@@ -62,6 +62,11 @@
 typedef long LONGBAG;
 #endif
 
+#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
+#undef GetHandleInformation
+#define GetHandleInformation(h,f)  (1)
+#endif
+
 #define CHECK_HANDLE(h) { DWORD dwFlags; \
     if (!(h) || ((h) == INVALID_HANDLE_VALUE) || !GetHandleInformation((h), &dwFlags)) \
     return EINVAL; }