just try this exploit running on windows and it will work =). I tried to compile the code with Bloodshed GCC and all worked fine.