diff --git a/kernel/trunk/fs/fs_lfn.inc b/kernel/trunk/fs/fs_lfn.inc index b6c7d00d01..a866c7d351 100644 --- a/kernel/trunk/fs/fs_lfn.inc +++ b/kernel/trunk/fs/fs_lfn.inc @@ -458,6 +458,14 @@ sys_current_directory: ; sysfunction 30 .get: ; in: ecx -> buffer, edx = length, eax = encoding + stdcall is_region_userspace, ecx, edx + jnz @f + + ; if illegal buffer given + xor edx, edx + jmp .ret +@@: + mov esi, edi inc esi mov edi, ecx