winemenubuilder: Nothing useful is done on Mac OS X so just exit.

Francois Gouget fgouget at codeweavers.com
Mon Mar 5 04:50:42 CST 2012


---

I'm resubmitting this patch just in case although it's probably way to 
late in the game for it.

At least this version does not cause code to become unreachable on Mac 
OS X. It will however cause winemenubuilder to exit with error code 1 
which may or may not be considered to be appropriate. shell32 does not 
care in any case.

 programs/winemenubuilder/winemenubuilder.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/programs/winemenubuilder/winemenubuilder.c b/programs/winemenubuilder/winemenubuilder.c
index 1588e50..294ef15 100644
--- a/programs/winemenubuilder/winemenubuilder.c
+++ b/programs/winemenubuilder/winemenubuilder.c
@@ -3562,6 +3562,10 @@ static WCHAR *next_token( LPWSTR *p )
 
 static BOOL init_xdg(void)
 {
+#ifdef __APPLE__
+    WINE_FIXME("XDG menus are not supported on Mac OS X\n");
+    return FALSE;
+#else
     WCHAR shellDesktopPath[MAX_PATH];
     HRESULT hr = SHGetFolderPathW(NULL, CSIDL_DESKTOP, NULL, SHGFP_TYPE_CURRENT, shellDesktopPath);
     if (SUCCEEDED(hr))
@@ -3599,6 +3603,7 @@ static BOOL init_xdg(void)
     }
     WINE_ERR("out of memory\n");
     return FALSE;
+#endif
 }
 
 /***********************************************************************
-- 
1.7.9



More information about the wine-patches mailing list