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:
parent
fecba9c31c
commit
f7bb014c21
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue