flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
ghst 20 Oct 2008, 14:22
Well, I've spoted two mistakes on your source:
1st one: Code: call [SHGetFileInfo] mov [shFileInfo.hIcon],eax ; <--- eliminate this line, SHGetFileInfo returns TRUE or FALSE!! push [shFileInfo.hIcon] push [hImageList] 2nd: Code: push [hImageList] call [ImageList_Destroy] ; <---- destroy the list only when you don't need it
|
|||||||||||
![]() |
|
pal 20 Oct 2008, 17:12
Ahh cheers, it works now. The documentation says SHGetFileInfo returns a dword_ptr, forgot why I was trying to move it into the structure
![]() |
|||
![]() |
|
ghst 21 Oct 2008, 13:30
hum, you are right!
from Win32 Developer's References about SHGetFileInfo func: Quote:
but on msdn Quote:
Always worth to check msdn humm? ![]() ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.