summaryrefslogtreecommitdiff
path: root/src/win32/w32_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/w32_util.c')
-rw-r--r--src/win32/w32_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/w32_util.c b/src/win32/w32_util.c
index 5996c9fb9..10e17fcd0 100644
--- a/src/win32/w32_util.c
+++ b/src/win32/w32_util.c
@@ -68,7 +68,7 @@ int git_win32__set_hidden(const char *path, bool hidden)
newattrs = attrs & ~FILE_ATTRIBUTE_HIDDEN;
if (attrs != newattrs && !SetFileAttributesW(buf, newattrs)) {
- giterr_set(GITERR_OS, "failed to %s hidden bit for '%s'",
+ git_error_set(GIT_ERROR_OS, "failed to %s hidden bit for '%s'",
hidden ? "set" : "unset", path);
return -1;
}