Re: r44832 - people/rmh/win32-loader
On Wed, Jan 31, 2007 at 04:03:20PM -0500, Joey Hess wrote:
> 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?
I was under the impression that all code in NSIS wiki was implicitly licensed
under the NSIS zlib/libpng license.
I'll investigate about this.
--
Robert Millan
My spam trap is honeypot@aybabtu.com. Note: this address is only intended
for spam harvesters. Writing to it will get you added to my black list.
Reply to: