From 6e62a54952f4a8159bc8906c6b69275d959ac68d Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 15 Dec 2012 16:56:55 +0000 Subject: [PATCH] Add missing URL Protocol registration on Windows --- src/client/Client.cpp | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 525de7768..f46222bd6 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -157,6 +157,7 @@ bool Client::DoInstallation() char *currentfilename = exe_name(); char *iconname = NULL; char *opencommand = NULL; + char *protocolcommand = NULL; //char AppDataPath[MAX_PATH]; char *AppDataPath = NULL; iconname = (char*)malloc(strlen(currentfilename)+6); @@ -175,6 +176,7 @@ bool Client::DoInstallation() //TODO: Implement opencommand = (char*)malloc(strlen(currentfilename)+53+strlen(AppDataPath)); + protocolcommand = (char*)malloc(strlen(currentfilename)+53+strlen(AppDataPath)); /*if((strlen(AppDataPath)+strlen(APPDATA_SUBDIR "\\Powder Toy"))