Skip to content

Commit

Permalink
lwdisp.c: Remove the call to PathIsContentType(..., "text/scriptlet")…
Browse files Browse the repository at this point in the history
…, as it takes up 10% of the load time of WinMerge plugins and is not necessary.
  • Loading branch information
sdottaka committed Dec 7, 2024
1 parent ef2d489 commit 392510e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Src/Common/lwdisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ LPDISPATCH NTAPI CreateDispatchBySource(LPCTSTR source, LPCWSTR progid)
bind_opts.grfMode = STGM_READWRITE;
bind_opts.dwTickCountDeadline = 0;
// prepend appropriate moniker:
if (PathIsContentType(source, _T("text/scriptlet"))
|| PathMatchSpec(source, _T("*.sct"))
if (PathMatchSpec(source, _T("*.sct"))
|| PathMatchSpec(source, _T("*.wsc")))
mycpyt2w(_T("script:"), wc, DIMOF(wc));
else
Expand Down

0 comments on commit 392510e

Please sign in to comment.