X-Git-Url: http://pileus.org/git/?p=~andy%2Faweather-pkg;a=blobdiff_plain;f=win%2Fxdg-open.c;fp=win%2Fxdg-open.c;h=12bf669f4cd2c459effa94458841338eb7dfa591;hp=33c171eb0af509cb67a654d5bbd6c3614d5e92fe;hb=ac7230683b9cef8b6f6e5428386f629e109d3949;hpb=66954635170ff696ea2e7c2fe88a5594047b4bd3 diff --git a/win/xdg-open.c b/win/xdg-open.c index 33c171e..12bf669 100644 --- a/win/xdg-open.c +++ b/win/xdg-open.c @@ -2,7 +2,14 @@ #include 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; }