shell32: Do not annoy user when he disabled winemenubuilder
André Hentschel
nerv at dawncrow.de
Mon Nov 29 14:20:49 CST 2010
---
dlls/shell32/shelllink.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c
index b4a977a..05777ba 100644
--- a/dlls/shell32/shelllink.c
+++ b/dlls/shell32/shelllink.c
@@ -420,6 +420,9 @@ BOOL run_winemenubuilder( const WCHAR *args )
GetSystemDirectoryW( app, MAX_PATH - sizeof(menubuilder)/sizeof(WCHAR) );
strcatW( app, menubuilder );
+ if( GetFileAttributesW(app) == INVALID_FILE_ATTRIBUTES)
+ return FALSE;
+
len = (strlenW( app ) + strlenW( args ) + 1) * sizeof(WCHAR);
buffer = HeapAlloc( GetProcessHeap(), 0, len );
if( !buffer )
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list