Subversion Repositories filter_foundry

Rev

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

Rev 453 Rev 454
Line 429... Line 429...
429
                                        if (hShellRes <= (HINSTANCE)32) {
429
                                        if (hShellRes <= (HINSTANCE)32) {
430
                                                // MSDN states: "If the function succeeds, it returns a value greater than 32."
430
                                                // MSDN states: "If the function succeeds, it returns a value greater than 32."
431
 
431
 
432
                                                TCHAR s[0x300];
432
                                                TCHAR s[0x300];
433
                                                xstrcpy(s, (TCHAR*)TEXT("ShellExecute failed: "));
433
                                                xstrcpy(s, (TCHAR*)TEXT("ShellExecute failed: "));
434
                                                FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, s + xstrlen(s), 0x300 - xstrlen(s), NULL);
434
                                                FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, s + xstrlen(s), 0x300 - (DWORD)xstrlen(s), NULL);
435
                                                dbg(&s[0]);
435
                                                dbg(&s[0]);
436
 
436
 
437
                                                showmessage((TCHAR*)TEXT("Please edit the file manually to enter the title, category, author, copyright, filename, slidernames etc."));
437
                                                showmessage((TCHAR*)TEXT("Please edit the file manually to enter the title, category, author, copyright, filename, slidernames etc."));
438
                                        }
438
                                        }
439
                                        #endif
439
                                        #endif
Line 468... Line 468...
468
                else if (hShellRes <= (HINSTANCE)32) {
468
                else if (hShellRes <= (HINSTANCE)32) {
469
                        // MSDN states: "If the function succeeds, it returns a value greater than 32."
469
                        // MSDN states: "If the function succeeds, it returns a value greater than 32."
470
 
470
 
471
                        TCHAR s[0x300];
471
                        TCHAR s[0x300];
472
                        xstrcpy(s, (TCHAR*)TEXT("ShellExecute failed: "));
472
                        xstrcpy(s, (TCHAR*)TEXT("ShellExecute failed: "));
473
                        FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, s + xstrlen(s), 0x300 - xstrlen(s), NULL);
473
                        FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, s + xstrlen(s), 0x300 - (DWORD)xstrlen(s), NULL);
474
                        dbg(&s[0]);
474
                        dbg(&s[0]);
475
 
475
 
476
                        showmessage((TCHAR*)TEXT("You can find the documentation here: https://github.com/danielmarschall/filter_foundry/tree/master/doc"));
476
                        showmessage((TCHAR*)TEXT("You can find the documentation here: https://github.com/danielmarschall/filter_foundry/tree/master/doc"));
477
                }
477
                }
478
                #endif
478
                #endif