Skip to content

Commit

Permalink
* Fixed errors on Windows XP
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed May 19, 2012
1 parent 163ca95 commit 3df2467
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
8 changes: 4 additions & 4 deletions gimp-vtf/file-vtf.rc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
1 VERSIONINFO
FILEVERSION 1,2,0,0
PRODUCTVERSION 2,7,4,0
FILEVERSION 1,2,1,0
PRODUCTVERSION 2,8,0,0
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
FILEFLAGSMASK 0x00000000
Expand All @@ -20,11 +20,11 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
{
VALUE "Comments", "Adds Valve Texture Format support to the GIMP"
VALUE "FileDescription", "GIMP VTF plugin"
VALUE "FileVersion", "1.2"
VALUE "FileVersion", "1.231"
VALUE "InternalName", "file-vtf"
VALUE "OriginalFilename", "file-vtf.exe"
VALUE "ProductName", "GIMP"
VALUE "ProductVersion", "2.7.4"
VALUE "ProductVersion", "2.8.0"
VALUE "LegalCopyright", "LGPL 2.1"
}
}
Expand Down
6 changes: 3 additions & 3 deletions gimp-vtf/winstuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,22 @@ void register_filetype()
REG_OPTION_NON_VOLATILE,
KEY_SET_VALUE, NULL,
&key, NULL);
RegSetKeyValue(key,NULL,NULL,REG_SZ,type_name,(DWORD)strlen(type_name));
RegSetValueEx(key,0,0,REG_SZ,(BYTE*)type_name,(DWORD)strlen(type_name)+1);
RegCloseKey(key);

RegCreateKeyEx(HKEY_CURRENT_USER,
"Software\\Classes\\gimpvtf-settings", 0,NULL,
REG_OPTION_NON_VOLATILE,
KEY_SET_VALUE|KEY_CREATE_SUB_KEY, NULL,
&key, NULL);
RegSetKeyValue(key,NULL,NULL,REG_SZ,type_desc,(DWORD)strlen(type_desc));
RegSetValueEx(key,0,0,REG_SZ,(BYTE*)type_desc,(DWORD)strlen(type_desc)+1);

RegCreateKeyEx(key,
"DefaultIcon", 0,NULL,
REG_OPTION_NON_VOLATILE,
KEY_SET_VALUE, NULL,
&subkey, NULL);
RegSetKeyValue(subkey,NULL,NULL,REG_SZ,icon_path,(DWORD)strlen(icon_path));
RegSetValueEx(key,0,0,REG_SZ,(BYTE*)icon_path,(DWORD)strlen(icon_path)+1);
RegCloseKey(key);
RegCloseKey(subkey);
}
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GIMP VTF PLUG-IN 1.2
Tom Edwards, 6th May 2012
GIMP VTF PLUG-IN 1.2.1
Tom Edwards, 19th May 2012
*******************************

To install, extract both the EXE and DLL to your
Expand All @@ -16,6 +16,9 @@ source code visit <http://code.google.com/p/gimp-vtf/>.
Changes
*******

1.2.1
* Fixed errors on Windows XP

1.2
* Upgraded to GIMP 2.8
* Added 64-bit support
Expand Down

0 comments on commit 3df2467

Please sign in to comment.