I'm debugging an app without sources, i use IDA PRO + Windbg as the debugger. I'm trting to catch calls to CloseHandle with the specific handle value, for example handle=0x14
I put a conditional breakpoint like so:
bp kernel32!CloseHandle "j (poi(@esp+4)=0x00000014) ''; 'gc'"
The breakpoints sets normally, but it breaks on every call to CloseHandle, contrary to what i'm trying, to break only if the first argument equals 0x14