diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 53897c6836a7c47013f85263216bedd4f4af1f6e..b4c550b3eb4b35a3e8b87cdd2571fa50074eb2f2 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -690,7 +690,7 @@ function drupal_get_filename($type, $name, $filename = NULL) {
     try {
       if (function_exists('db_query')) {
         $file = db_query("SELECT filename FROM {system} WHERE name = :name AND type = :type", array(':name' => $name, ':type' => $type))->fetchField();
-        if (file_exists($file)) {
+        if (file_exists(DRUPAL_ROOT . '/' . $file)) {
           $files[$type][$name] = $file;
         }
       }