aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win32/win32.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 23a69fda4d..c938e197a7 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -5345,11 +5345,13 @@ get_attr_vsn(const WCHAR *path, DWORD *atts, DWORD *vsn)
HANDLE h = open_special(path, 0, FILE_FLAG_OPEN_REPARSE_POINT);
if (h == INVALID_HANDLE_VALUE) {
- ASSUME(e = GetLastError());
+ e = GetLastError();
+ ASSUME(e);
return e;
}
if (!GetFileInformationByHandle(h, &st)) {
- ASSUME(e = GetLastError());
+ e = GetLastError();
+ ASSUME(e);
}
else {
*atts = st.dwFileAttributes;