Correction du test d'erreur

This commit is contained in:
Mattéo Delabre 2016-04-01 22:33:38 +02:00
parent e859d90cd0
commit 1b34dc86ec
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ std::string getCurrentDirectory() {
std::unique_ptr<char[]> buffer = std::unique_ptr<char[]>(new char[length + 1]);
wai_getExecutablePath(buffer.get(), length, &dirname_length);
if (dirname_length == 0) {
if (length == 0) {
throw std::runtime_error("Impossible de déterminer le chemin actuel");
}