Author: akhaldi
Date: Fri Oct 31 15:32:05 2014
New Revision: 65149

URL: http://svn.reactos.org/svn/reactos?rev=65149&view=rev
Log:
[INCLUDE/REACTOS]
* Fix GCC build.

Modified:
    branches/shell-experiments/include/reactos/undocshell.h

Modified: branches/shell-experiments/include/reactos/undocshell.h
URL: 
http://svn.reactos.org/svn/reactos/branches/shell-experiments/include/reactos/undocshell.h?rev=65149&r1=65148&r2=65149&view=diff
==============================================================================
--- branches/shell-experiments/include/reactos/undocshell.h     [iso-8859-1] 
(original)
+++ branches/shell-experiments/include/reactos/undocshell.h     [iso-8859-1] 
Fri Oct 31 15:32:05 2014
@@ -533,7 +533,7 @@
 #include <stdio.h>
 
 #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 @@
 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 };
 


Reply via email to