Rev 192 | Rev 198 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 192 | Rev 194 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | if (!hLib) { |
68 | if (!hLib) { |
69 | char* sysdir; |
69 | char* sysdir; |
70 | 70 | ||
71 | sysdir = (char*)malloc(MAX_PATH); |
71 | sysdir = (char*)malloc(MAX_PATH); |
72 | GetSystemDirectoryA(sysdir, MAX_PATH); |
72 | GetSystemDirectoryA(sysdir, MAX_PATH); |
73 | alertuser("To build standalone plugins using this version of\nWindows, you need to install UNICOWS.DLL\n\nPlease download it from the Internet\nand place it into following directory:",sysdir); |
73 | alertuser(my_strdup("To build standalone plugins using this version of\nWindows, you need to install UNICOWS.DLL\n\nPlease download it from the Internet\nand place it into following directory:"),sysdir); |
74 | free(sysdir); |
74 | free(sysdir); |
75 | 75 | ||
76 | return false; |
76 | return false; |
77 | } else { |
77 | } else { |
78 | FreeLibrary(hLib); |
78 | FreeLibrary(hLib); |
Line 193... | Line 193... | ||
193 | tmp++; |
193 | tmp++; |
194 | 194 | ||
195 | tmp += mbstowcs(tmp, "", 1); |
195 | tmp += mbstowcs(tmp, "", 1); |
196 | 196 | ||
197 | if (UpdateVersionInfoWithHandle(dstname, hupdate, changeRequestStr) != NOERROR) { |
197 | if (UpdateVersionInfoWithHandle(dstname, hupdate, changeRequestStr) != NOERROR) { |
198 | alertuser("UpdateVersionInfoWithHandle failed",""); |
198 | alertuser(my_strdup("UpdateVersionInfoWithHandle failed"),my_strdup("")); |
199 | } |
199 | } |
200 | 200 | ||
201 | free(changeRequestStr); |
201 | free(changeRequestStr); |
202 | } |
202 | } |
203 | 203 | ||
Line 223... | Line 223... | ||
223 | res = GetModuleFileName(hDllInstance,srcname,MAX_PATH) |
223 | res = GetModuleFileName(hDllInstance,srcname,MAX_PATH) |
224 | && CopyFile(srcname,dstname,false) |
224 | && CopyFile(srcname,dstname,false) |
225 | && doresources(hDllInstance,dstname); |
225 | && doresources(hDllInstance,dstname); |
226 | 226 | ||
227 | if(!res) { |
227 | if(!res) { |
228 | alertuser("Could not create standalone plugin.",""); |
228 | alertuser(my_strdup("Could not create standalone plugin."),my_strdup("")); |
229 | } else { |
229 | } else { |
230 | showmessage("Filter was sucessfully created"); |
230 | showmessage(my_strdup("Filter was sucessfully created")); |
231 | } |
231 | } |
232 | 232 | ||
233 | return res ? ioErr : noErr; |
233 | return res ? ioErr : noErr; |
234 | } |
234 | } |