]> Pileus Git - ~andy/aweather-pkg/blobdiff - win/xdg-open.c
Win32 updates
[~andy/aweather-pkg] / win / xdg-open.c
index 33c171eb0af509cb67a654d5bbd6c3614d5e92fe..12bf669f4cd2c459effa94458841338eb7dfa591 100644 (file)
@@ -2,7 +2,14 @@
 #include <shellapi.h>
 int main(int argc, char* argv[])
 {
-       if (argc > 1)
-               ShellExecute(NULL, "open", argv[1], "", NULL, SW_SHOWNORMAL);
+       if (argc > 1) {
+               SHELLEXECUTEINFO info = {
+                       .cbSize = sizeof(info),
+                       .lpVerb = "open",
+                       .lpFile = argv[1],
+                       .nShow  = SW_SHOWNORMAL,
+               };
+               ShellExecuteEx(&info);
+       }
        return 0;
 }