From b090ef89ef3dd3ab021c8ff855669d4d8bf68fcb Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 19 Jun 2011 13:11:21 -0400 Subject: [PATCH] Fixed the code so it compiles on windows. --- dlib/misc_api/misc_api_kernel_1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/misc_api/misc_api_kernel_1.cpp b/dlib/misc_api/misc_api_kernel_1.cpp index 7eea8ec75..bd9a2c28c 100644 --- a/dlib/misc_api/misc_api_kernel_1.cpp +++ b/dlib/misc_api/misc_api_kernel_1.cpp @@ -64,7 +64,7 @@ namespace dlib auto_mutex lock(cwd_mutex); if (SetCurrentDirectory(new_dir.c_str()) == 0) { - throw set_current_dir_error("Error changing current dir to '" + new_dir + "'" + GetLastError()); + throw set_current_dir_error("Error changing current dir to '" + new_dir + "'"); } }