Author: gadamopoulos
Date: Tue Feb 15 16:01:02 2011
New Revision: 50708

URL: http://svn.reactos.org/svn/reactos?rev=50708&view=rev
Log:
[shell32]
- Fix some compilation issues with msc

Modified:
    branches/cmake-bringup/dll/win32/shell32/shelllink.c

Modified: branches/cmake-bringup/dll/win32/shell32/shelllink.c
URL: 
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/shell32/shelllink.c?rev=50708&r1=50707&r2=50708&view=diff
==============================================================================
--- branches/cmake-bringup/dll/win32/shell32/shelllink.c [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/shell32/shelllink.c [iso-8859-1] Tue Feb 
15 16:01:02 2011
@@ -187,9 +187,13 @@
 /* strdup on the process heap */
 static LPWSTR __inline HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str)
 {
+    INT len;
+    LPWSTR p; 
+
     assert(str);
-    INT len = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 );
-    LPWSTR p = HeapAlloc( heap, flags, len*sizeof (WCHAR) );
+
+    len = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 );
+    p = HeapAlloc( heap, flags, len*sizeof (WCHAR) );
     if( !p )
         return p;
     MultiByteToWideChar( CP_ACP, 0, str, -1, p, len );


Reply via email to