Fix file location in file properties dialog.
[reactos.git] / reactos / dll / win32 / shell32 / fprop.c
index 28b09a0..ae5f575 100644 (file)
@@ -249,7 +249,7 @@ SH_FileGeneralSetText(HWND hwndDlg, WCHAR *lpstr)
     if (lpstr == NULL)
         return FALSE;
 
-    lpdir = wcschr(lpstr, '\\');        /* find the last occurence of '\\' */
+    lpdir = wcsrchr(lpstr, '\\');        /* find the last occurence of '\\' */
 
     plength = wcslen(lpstr);
     flength = wcslen(lpdir);