Commit 5f1e61d5 authored by Andreas Traczyk's avatar Andreas Traczyk

contrib: patch upnp to support store and windows7

Change-Id: I30ca1d3cc90f1ed30beff1934e8eff66820e61ab
parent e22acb9f
......@@ -666,7 +666,7 @@
memset(&r, 0, sizeof r);
/* memory usage stats */
- GlobalMemoryStatus( &r.m );
+#if (WINAPI_FAMILY_APP != WINAPI_FAMILY_PC_APP)
+#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
+ GlobalMemoryStatus(&r.m);
+#endif
/* random system stats */
......@@ -680,7 +680,7 @@
+ r.tc = GetTickCount64();
r.l = MAX_COMPUTERNAME_LENGTH + 1;
- GetComputerName( r.hostname, &r.l );
+#if (WINAPI_FAMILY_APP != WINAPI_FAMILY_PC_APP)
+#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
+ GetComputerName(r.hostname, &r.l);
+#else
+ GetHostNameW(r.hostname, &r.l);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment