Subversion Repositories filter_foundry

Rev

Rev 106 | Rev 116 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 106 Rev 114
Line 21... Line 21...
21
 
21
 
22
#include "file_compat.h"
22
#include "file_compat.h"
23
 
23
 
24
#include <string.h>
24
#include <string.h>
25
 
25
 
26
static int parm_id;
26
static UINT parm_id;
27
 
27
 
28
// see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/introductiontoresources/resourcereference/resourcefunctions/findresource.asp
28
// see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/introductiontoresources/resourcereference/resourcefunctions/findresource.asp
29
static BOOL CALLBACK enumnames(HMODULE hModule,LPCTSTR lpszType,
29
static BOOL CALLBACK enumnames(HMODULE hModule,LPCTSTR lpszType,
30
                                                           LPTSTR lpszName,LONG_PTR lParam)
30
                                                           LPTSTR lpszName,LONG_PTR lParam)
31
{
31
{
32
        if(IS_INTRESOURCE(lpszName))
32
        if(IS_INTRESOURCE(lpszName))
33
                parm_id = (int)lpszName;
33
                parm_id = (int)lpszName; // FIXME: How to remove compiler warning in Win64?
-
 
34
                                         // Note: This typecast is safe. We just need the lower 32 bits of the 64 bit "pointer"
34
        return false; // we only want the first one
35
        return false; // we only want the first one
35
}
36
}
36
 
37
 
37
Boolean readPARMresource(HMODULE hm,char **reason,int readobfusc){
38
Boolean readPARMresource(HMODULE hm,char **reason,int readobfusc){
38
        HRSRC resinfo;
39
        HRSRC resinfo;