From: Jérémie Astor Date: Wed, 1 Apr 2020 16:41:03 +0000 (+0200) Subject: :art: Fix is_reg (Windows) X-Git-Tag: nightly~1726^2~3 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=511f132f179efa5272b5e3561d8bfdd21ca4c397;p=gwion.git :art: Fix is_reg (Windows) --- diff --git a/src/compile.c b/src/compile.c index 2794a753..5a76f67c 100644 --- a/src/compile.c +++ b/src/compile.c @@ -77,7 +77,7 @@ ANN static int is_reg(const m_str path) { } #else ANN static m_bool is_reg(const m_str path) { - cionst DWORD dw = GetFileAttributes(path); + const DWORD dw = GetFileAttributes(path); return !(dw == INVALID_FILE_ATTRIBUTES || dw & FILE_ATTRIBUTE_DIRECTORY); }