Merging r41176 through r41192 from trunk into soc-2011-tomato
[blender.git] / source / blender / windowmanager / intern / wm_operators.c
index 9d8ed546b98205e22b4df7ba2d12e7f368b87f86..f8a63fb796db182ed5ff2028ee65203f463a8298 100644 (file)
@@ -1807,7 +1807,7 @@ static int wm_recover_last_session_exec(bContext *C, wmOperator *op)
        WM_event_add_notifier(C, NC_WINDOW, NULL);
 
        /* load file */
-       BLI_make_file_string("/", filename, btempdir, "quit.blend");
+       BLI_make_file_string("/", filename, BLI_temporary_dir(), "quit.blend");
        WM_read_file(C, filename, op->reports);
 
        G.fileflags &= ~G_FILE_RECOVER;