I forgot IE < 8 want an empty VARIANT to represent null

This commit is contained in:
Adam Demasi 2022-11-12 14:28:54 +10:30
parent e12529c84a
commit 2366e2a801
No known key found for this signature in database
GPG key ID: 5D3B26B3D58C7D91

View file

@ -117,7 +117,10 @@ void CALLBACK LaunchUpdateSite(HWND hwnd, HINSTANCE hinstance, LPSTR lpszCmdLine
flags.vt = VT_I4;
flags.lVal = 0;
result = browser->Navigate2(&url, &flags, NULL, NULL, NULL);
VARIANT nullVariant;
VariantInit(&nullVariant);
result = browser->Navigate2(&url, &flags, &nullVariant, &nullVariant, &nullVariant);
if (!SUCCEEDED(result)) {
goto end;
}