Re: Re[4]: SHBrowseForFolder

new topic     » goto parent     » topic index » view thread      » older message » newer message

Thomas,

Thanks, your fix seems to work fine  (after I added a space inside the
single quotes), though I was afraid the "&0" at the end was a typo, guess
it's not 'cause it works.

Dan Moyer

----- Original Message -----
From: "Thomas Parslow (PatRat)" <tom at almostobsolete.net>
To: "EUforum" <EUforum at topica.com>
Subject: Re[4]: SHBrowseForFolder


>
> > Thomas,
>
> > It fails at "release_mem(memfolder)", but only when the parent folder
has
> > approx. 130 files under it, parent with 121 works fine.
>
> > Dan Moyer
>
> I've found a bug, the only thing I can't work out is why it *doesn't*
> crash on my machine...
>
> Change the aquire_mem line to:
>
> memfolder= acquire_mem(0,repeat(' ',512)&0)
>
> The parameters passed to repeat were passed in the wrong order, so
> only 1 byte of memory was actually allocated and SHGetPathFromIDList
> was overwriting unallocated memory!
>
> Thomas Parslow (PatRat)
> E-Mail/Jabber: tom at almostobsolete.net
> ICQ: 26359483
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu