Re[4]: SHBrowseForFolder

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

> 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     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu