flat assembler
Message board for the users of flat assembler.

Index > Windows > SetDlgItemText returns ERROR_INVALID_HANDLE

Author
Thread Post new topic Reply to topic
Kenny80



Joined: 08 May 2005
Posts: 22
Kenny80 13 Aug 2008, 18:47
I got this program i wrote for crackme but same code in masm works but not in fasm i can't find out why, tried debug it but can't figure it out.

problem is that on line 293 the SetDlgItemText it returns ERROR_INVALID_HANDLE in fasm but not in masm, tried changing the code still get's the error.

anyone finds the error i more than happy to know.


Description: here is source and built exe file!
Download
Filename: fasm.zip
Filesize: 6.73 KB
Downloaded: 340 Time(s)

Post 13 Aug 2008, 18:47
View user's profile Send private message Reply with quote
Yardman



Joined: 12 Apr 2005
Posts: 244
Location: US
Yardman 13 Aug 2008, 21:53
[ Post removed by author. ]


Last edited by Yardman on 04 Apr 2012, 03:36; edited 1 time in total
Post 13 Aug 2008, 21:53
View user's profile Send private message Reply with quote
Kenny80



Joined: 08 May 2005
Posts: 22
Kenny80 14 Aug 2008, 05:46
thx that did it, wierd thing is i debugged it alot and handle to window was right what i checked, i noticed that sometimes GetUserName complains about to small buffer that's why i used two dwords instead.

thx alot for help!
Post 14 Aug 2008, 05:46
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.