Robert Millan wrote:
> --- (empty file)
> +++ people/rmh/win32-loader/checkspacefree.nsh Wed Jan 31 21:16:21 2007
> @@ -0,0 +1,25 @@
> +; Obtained from http://nsis.sourceforge.net/CheckSpaceFree
> +
> +!addplugindir contrib
> +!define sysGetDiskFreeSpaceEx 'kernel32::GetDiskFreeSpaceExA(t, *l, *l, *l) i'
> +
> +; $0 - space required in kb
> +; $1 - path to check
> +; $2 - 0 = ignore quotas, 1 = obey quotas
> +; trashes $2
> +function CheckSpaceFunc
> + IntCmp $2 0 ignorequota
> + ; obey quota
> + System::Call '${sysGetDiskFreeSpaceEx}(r1,.r2,,.)'
> + goto converttokb
> + ; ignore quota
> + ignorequota:
> + System::Call '${sysGetDiskFreeSpaceEx}(r1,.,,.r2)'
> + converttokb:
> + ; convert the large integer byte values into managable kb
> + System::Int64Op $2 / 1024
> + Pop $2
> + ; check space
> + System::Int64Op $2 > $0
> + Pop $2
> +functionend
This looks like a potential copyright problem. Do we have a license for
this code?
--
see shy jo
Attachment:
signature.asc
Description: Digital signature