From f7bb014c2121de4790cf222111a2b657139a295f Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 9 Sep 2013 20:27:08 +0100 Subject: [PATCH] In WindowsRegistry::registerFileAssociation(), the icon resource number was being negated for some mysterious reason.. Corrected this, so the number you give it is now used directly. --- modules/juce_core/native/juce_win32_Registry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_core/native/juce_win32_Registry.cpp b/modules/juce_core/native/juce_win32_Registry.cpp index f96ecbd3db..9c5cc3b369 100644 --- a/modules/juce_core/native/juce_win32_Registry.cpp +++ b/modules/juce_core/native/juce_win32_Registry.cpp @@ -218,7 +218,7 @@ bool WindowsRegistry::registerFileAssociation (const String& fileExtension, && setValue (key + "\\shell\\open\\command\\", targetExecutable.getFullPathName() + " \"%1\"", mode) && (iconResourceNumber == 0 || setValue (key + "\\DefaultIcon\\", - targetExecutable.getFullPathName() + "," + String (-iconResourceNumber))); + targetExecutable.getFullPathName() + "," + String (iconResourceNumber))); } // These methods are deprecated: