Skip to content

Commit e7d065b

Browse files
committed
do not modify path wildly and then assume its bad
1 parent c6e4dc5 commit e7d065b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kscr-starter/kscr-starter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fs::path* findSDK()
4242
{
4343
string res = *iter;
4444
fs::path here(res);
45-
if (exists((here /= "kscr.exe")))
45+
if (exists((here / "kscr.exe")))
4646
return new fs::path(absolute(here));
4747
}
4848
}
@@ -120,7 +120,6 @@ int main(int argc, char* argv[])
120120
#endif
121121

122122
sdkpath = findSDK();
123-
sdkpath->remove_filename();
124123
#if _DEBUG
125124
cout << "SDK Path found: " << absolute(*sdkpath) << endl;
126125
#endif

0 commit comments

Comments
 (0)