- Make rapps MSVC-friendly
authorStefan Ginsberg <stefanginsberg@gmail.com>
Fri, 7 Aug 2009 21:10:16 +0000 (21:10 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Fri, 7 Aug 2009 21:10:16 +0000 (21:10 +0000)
svn path=/trunk/; revision=42483

reactos/base/applications/rapps/parser.c
reactos/base/applications/rapps/winmain.c

index bfcbcec..c166c4a 100644 (file)
@@ -544,6 +544,7 @@ ParserOpen(LPCWSTR filename, BOOL write_access)
     HANDLE hFile = INVALID_HANDLE_VALUE;
     int i, j;
     ITEMS *tempProfile;
+    static const WCHAR wszSeparator[] = L"\\rapps\\";
 
     if (!CurProfile)
         for (i = 0; i < N_CACHED_ITEMS; i++)
@@ -558,7 +559,6 @@ ParserOpen(LPCWSTR filename, BOOL write_access)
 
     GetCurrentDirectoryW(MAX_PATH, szDir);
 
-    static const WCHAR wszSeparator[] = L"\\rapps\\";
     wcscpy(buffer, szDir);
     wcscat(buffer, wszSeparator);
     wcscat(buffer, filename);
index 3e6d636..934435d 100644 (file)
@@ -15,8 +15,8 @@ HIMAGELIST hImageTreeView = NULL;
 INT SelectedEnumType = ENUM_ALL_COMPONENTS;
 
 
-CALLBACK
 BOOL
+CALLBACK
 EnumInstalledAppProc(INT ItemIndex, LPWSTR lpName, LPWSTR lpKeyName, LPARAM lParam)
 {
     WCHAR szText[MAX_PATH];
@@ -49,8 +49,8 @@ FreeAvailableAppList(VOID)
     }
 }
 
-CALLBACK
 BOOL
+CALLBACK
 EnumAvailableAppProc(APPLICATION_INFO Info)
 {
     PAPPLICATION_INFO ItemInfo;