win32_get_security_descriptor(): Use errno
authorEric Biggers <ebiggers3@gmail.com>
Mon, 2 Sep 2013 14:03:50 +0000 (09:03 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 2 Sep 2013 14:03:50 +0000 (09:03 -0500)
src/win32_capture.c

index c7d2b20..308c067 100644 (file)
@@ -402,7 +402,7 @@ win32_get_security_descriptor(HANDLE hFile,
                default:
                fail:
                        set_errno_from_win32_error(err);
-                       ERROR("Failed to read security descriptor of \"%ls\"", path);
+                       ERROR_WITH_ERRNO("Failed to read security descriptor of \"%ls\"", path);
                        ret = WIMLIB_ERR_READ;
                        goto out_free_buf;
                }