1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-25 02:04:23 +00:00

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.

This commit is contained in:
jules 2013-09-09 20:27:08 +01:00
parent fecba9c31c
commit f7bb014c21

View file

@ -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: