well at last in my windows 7 64 bit. haven't test it another machine.
The call to lstrlen destroy the previously zeroed ECX register.
the solution is move the
xor ecx, ecx
after invoke lstrlen, String
hth.
Looks familiar (http://www.masmforum.com/board/index.php?topic=12429.0) ;-)
Use "atodw_ex", it does not do things like that. Its one of Iczelion's old ones dated before 2000 and I* loath to touch them, the "atodw_ex" version is one I did myself and it seems to work OK.
ok then.. just in case there is a new comer which come and use the function then got frustrated with the result... oops no offense though...
Not at all and its appreciated that you have bothered. :icon14: