File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 27
27
<WarningLevel >4</WarningLevel >
28
28
<LangVersion >8.0</LangVersion >
29
29
<UseVSHostingProcess >false</UseVSHostingProcess >
30
+ <Prefer32Bit >false</Prefer32Bit >
30
31
</PropertyGroup >
31
32
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " >
32
33
<PlatformTarget >AnyCPU</PlatformTarget >
37
38
<ErrorReport >prompt</ErrorReport >
38
39
<WarningLevel >4</WarningLevel >
39
40
<LangVersion >8.0</LangVersion >
41
+ <Prefer32Bit >false</Prefer32Bit >
40
42
</PropertyGroup >
41
43
<PropertyGroup >
42
44
<StartupObject />
Original file line number Diff line number Diff line change @@ -288,6 +288,12 @@ private static void EnumMenuItems(
288
288
289
289
private static string GetCommandString ( Shell32 . IContextMenu cMenu , uint offset , Shell32 . GCS flags = Shell32 . GCS . GCS_VERBW )
290
290
{
291
+ if ( offset > 5000 )
292
+ {
293
+ // Hackish workaround to avoid an AccessViolationException on some items,
294
+ // notably the "Run with graphic processor" menu item of NVidia cards
295
+ return null ;
296
+ }
291
297
SafeCoTaskMemString commandString = null ;
292
298
try
293
299
{
You can’t perform that action at this time.
0 commit comments