It fixes cases when ProcessInformationLength != 4, but doesn't check if a debugger is present or not. Should it ? I don't expect that anyone would like to run Visual Studio on Wine to debug a Win32 program :-)
sdk's windbg already work, so why no VC++ debugger ? btw, your patch will not compile (ret/retv)
A+