Update winpgnt.c

This file was missing important code that prevented pageant from working correctly with some application.  The missing code has been added and fixed.