flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
ghst
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
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
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.