From: Amine Khaldi Date: Fri, 31 Oct 2014 15:32:05 +0000 (+0000) Subject: [INCLUDE/REACTOS] X-Git-Tag: backups/shell-experiments@75904~88 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=88ae5a3afea47eb989622fd4cd39f1188aaa2087 [INCLUDE/REACTOS] * Fix GCC build. svn path=/branches/shell-experiments/; revision=65149 --- diff --git a/include/reactos/undocshell.h b/include/reactos/undocshell.h index 2dee7566c9c..16c32f93e8b 100644 --- a/include/reactos/undocshell.h +++ b/include/reactos/undocshell.h @@ -533,7 +533,7 @@ BOOL WINAPI SHDesktopMessageLoop(HANDLE); #include #define SMC_EXEC 4 -extern "C" INT WINAPI Shell_GetCachedImageIndex(LPCWSTR szPath, INT nIndex, UINT bSimulateDoc); +INT WINAPI Shell_GetCachedImageIndex(LPCWSTR szPath, INT nIndex, UINT bSimulateDoc); static inline ULONG Win32DbgPrint(const char *filename, int line, const char *lpFormat, ...) @@ -574,13 +574,14 @@ Win32DbgPrint(const char *filename, int line, const char *lpFormat, ...) static inline void DbgDumpMenuInternal(HMENU hmenu, char* padding, int padlevel) { WCHAR label[128]; + int i; + int count = GetMenuItemCount(hmenu); padding[padlevel] = '.'; padding[padlevel + 1] = '.'; padding[padlevel + 2] = 0; - int count = GetMenuItemCount(hmenu); - for (int i = 0; i < count; i++) + for (i = 0; i < count; i++) { MENUITEMINFOW mii = { 0 };