*/
#include <windows.h>
+#ifndef AUTO_WINSOCK
+#ifdef WINSOCK_TWO
+#include <winsock2.h>
+#else
+#include <winsock.h>
+#endif
+#endif
#include <stdio.h>
#include "putty.h"
#include "storage.h"
*/
otherstr = smalloc(len);
regname = smalloc(3*(strlen(hostname)+strlen(keytype))+15);
- if (!otherstr || !regname)
- fatalbox("Out of memory");
hostkey_regname(regname, hostname, port, keytype);
HKEY rkey;
regname = smalloc(3*(strlen(hostname)+strlen(keytype))+15);
- if (!regname)
- fatalbox("Out of memory");
hostkey_regname(regname, hostname, port, keytype);