Skip to content
Snippets Groups Projects
Commit 5f1e61d5 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

contrib: patch upnp to support store and windows7

Change-Id: I30ca1d3cc90f1ed30beff1934e8eff66820e61ab
parent e22acb9f
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment