Commit 96b97971 authored by filatov's avatar filatov
Browse files

fix a bug in cstrlastpathelement

parent 8bf3c1b5
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -59,12 +59,12 @@
  </ImportGroup>
  <PropertyGroup Label="UserMacros" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    <OutDir>$(SolutionDir)build\MSVC-$(Configuration)\</OutDir>
    <IntDir>$(SolutionDir)build\MSVC-$(Configuration)\obj\$(ProjectName)\</IntDir>
    <OutDir>$(SolutionDir)build\msvc\$(Configuration)\</OutDir>
    <IntDir>$(SolutionDir)build\msvc\$(Configuration)\$(ProjectName)\</IntDir>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    <OutDir>$(SolutionDir)build\MSVC-$(Configuration)\</OutDir>
    <IntDir>$(SolutionDir)build\MSVC-$(Configuration)\obj\$(ProjectName)\</IntDir>
    <OutDir>$(SolutionDir)build\msvc\$(Configuration)\</OutDir>
    <IntDir>$(SolutionDir)build\msvc\$(Configuration)\$(ProjectName)\</IntDir>
  </PropertyGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    <ClCompile>
+2 −1
Original line number Diff line number Diff line
@@ -243,7 +243,8 @@ const pchar_t * cstrlastpathelement(const pchar_t * str)
	const pchar_t * p2 = pchar_rchr(str, '\\');
	if(p<p2)p=p2;
#endif
	else if(p == NULL) p = str;
	if(p == NULL) p = str;
	else p++;
	return p;
}