1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

[misc] minor pre-release fixes

* mention KolibriOS in the license
* duprintf usage improvements
This commit is contained in:
Pete Batard 2014-06-03 22:16:40 +01:00
parent b9b630a84c
commit 8da527e16e
6 changed files with 20 additions and 18 deletions

View file

@ -84,6 +84,10 @@ const char* additional_copyrights =
"http://www.gnu.org/software/fdisk\\line\n" "http://www.gnu.org/software/fdisk\\line\n"
"GNU General Public License (GPL) v3 or later\\line\n" "GNU General Public License (GPL) v3 or later\\line\n"
"\\line\n" "\\line\n"
"Additional bootloaders from KolibriOS:\\line\n"
"http://kolibrios.org\\line\n"
"GNU General Public License (GPL) v2 or later\\line\n"
"\\line\n"
"About and License dialogs inspired by WinSCP by Martin Prikryl\\line\n" "About and License dialogs inspired by WinSCP by Martin Prikryl\\line\n"
"http://winscp.net\\line\n" "http://winscp.net\\line\n"
"GNU General Public License (GPL) v3 or later\\line\n" "GNU General Public License (GPL) v3 or later\\line\n"

View file

@ -40,8 +40,8 @@ static const wchar_t wspace[] = L" \t";
const struct {char c; int flag;} attr_parse[] = { const struct {char c; int flag;} attr_parse[] = {
{ 'r', LOC_RIGHT_TO_LEFT }, { 'r', LOC_RIGHT_TO_LEFT },
{ 'a', LOC_ARABIC_NUMERALS }, { 'a', LOC_ARABIC_NUMERALS }, // NOT IMPLEMENTED
{ 'j', LOC_JAPANESE_NUMERALS }, { 'j', LOC_JAPANESE_NUMERALS }, // NOT IMPLEMENTED
}; };
/* /*
@ -842,8 +842,8 @@ char* insert_section_data(const char* filename, const char* section, const char*
break; break;
} }
fseek(fd_in, 0, SEEK_SET); fseek(fd_in, 0, SEEK_SET);
// uprintf("'%s' was detected as %s\n", filename, duprintf("'%s' was detected as %s\n", filename,
// (mode==0)?"ANSI/UTF8 (no BOM)":((mode==1)?"UTF8 (with BOM)":"UTF16 (with BOM")); (mode==0)?"ANSI/UTF8 (no BOM)":((mode==1)?"UTF8 (with BOM)":"UTF16 (with BOM"));
wtmpname = (wchar_t*)calloc(wcslen(wfilename)+2, sizeof(wchar_t)); wtmpname = (wchar_t*)calloc(wcslen(wfilename)+2, sizeof(wchar_t));
@ -982,8 +982,8 @@ char* replace_in_token_data(const char* filename, const char* token, const char*
break; break;
} }
fseek(fd_in, 0, SEEK_SET); fseek(fd_in, 0, SEEK_SET);
// uprintf("'%s' was detected as %s\n", filename, duprintf("'%s' was detected as %s\n", filename,
// (mode==0)?"ANSI/UTF8 (no BOM)":((mode==1)?"UTF8 (with BOM)":"UTF16 (with BOM")); (mode==0)?"ANSI/UTF8 (no BOM)":((mode==1)?"UTF8 (with BOM)":"UTF16 (with BOM"));
wtmpname = (wchar_t*)calloc(wcslen(wfilename)+2, sizeof(wchar_t)); wtmpname = (wchar_t*)calloc(wcslen(wfilename)+2, sizeof(wchar_t));

View file

@ -2412,6 +2412,7 @@ out:
SetWindowPos(GetConsoleWindow(), HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); SetWindowPos(GetConsoleWindow(), HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
FreeConsole(); FreeConsole();
} }
// Unconditional delete, just in case...
DeleteFileA(cmdline_hogger); DeleteFileA(cmdline_hogger);
CloseHandle(mutex); CloseHandle(mutex);
CLOSE_OPENED_LIBRARIES; CLOSE_OPENED_LIBRARIES;

View file

@ -104,8 +104,7 @@ extern void _uprintf(const char *format, ...);
#define uprintf(...) _uprintf(__VA_ARGS__) #define uprintf(...) _uprintf(__VA_ARGS__)
#define vuprintf(...) if (verbose) _uprintf(__VA_ARGS__) #define vuprintf(...) if (verbose) _uprintf(__VA_ARGS__)
#define vvuprintf(...) if (verbose > 1) _uprintf(__VA_ARGS__) #define vvuprintf(...) if (verbose > 1) _uprintf(__VA_ARGS__)
#ifdef _CRTDBG_MAP_ALLOC #ifdef _DEBUG
// Use the _CRTDBG as our general debug flag
#define duprintf(...) _uprintf(__VA_ARGS__) #define duprintf(...) _uprintf(__VA_ARGS__)
#else #else
#define duprintf(...) #define duprintf(...)

View file

@ -32,7 +32,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDD_DIALOG DIALOGEX 12, 12, 206, 329 IDD_DIALOG DIALOGEX 12, 12, 206, 329
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Rufus 1.4.8.503" CAPTION "Rufus 1.4.8.504"
FONT 8, "MS Shell Dlg", 400, 0, 0x1 FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN BEGIN
DEFPUSHBUTTON "Start",IDC_START,94,291,50,14 DEFPUSHBUTTON "Start",IDC_START,94,291,50,14
@ -165,7 +165,7 @@ END
RTL_IDD_DIALOG DIALOGEX 12, 12, 206, 329 RTL_IDD_DIALOG DIALOGEX 12, 12, 206, 329
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_RTLREADING | WS_EX_APPWINDOW | WS_EX_LAYOUTRTL EXSTYLE WS_EX_RTLREADING | WS_EX_APPWINDOW | WS_EX_LAYOUTRTL
CAPTION "Rufus 1.4.8.503" CAPTION "Rufus 1.4.8.504"
FONT 8, "MS Shell Dlg", 400, 0, 0x1 FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN BEGIN
DEFPUSHBUTTON "Start",IDC_START,94,291,50,14 DEFPUSHBUTTON "Start",IDC_START,94,291,50,14
@ -428,8 +428,8 @@ END
// //
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,4,8,503 FILEVERSION 1,4,8,504
PRODUCTVERSION 1,4,8,503 PRODUCTVERSION 1,4,8,504
FILEFLAGSMASK 0x3fL FILEFLAGSMASK 0x3fL
#ifdef _DEBUG #ifdef _DEBUG
FILEFLAGS 0x1L FILEFLAGS 0x1L
@ -446,13 +446,13 @@ BEGIN
BEGIN BEGIN
VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)" VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)"
VALUE "FileDescription", "Rufus" VALUE "FileDescription", "Rufus"
VALUE "FileVersion", "1.4.8.503" VALUE "FileVersion", "1.4.8.504"
VALUE "InternalName", "Rufus" VALUE "InternalName", "Rufus"
VALUE "LegalCopyright", "© 2011-2014 Pete Batard (GPL v3)" VALUE "LegalCopyright", "© 2011-2014 Pete Batard (GPL v3)"
VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html" VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html"
VALUE "OriginalFilename", "rufus.exe" VALUE "OriginalFilename", "rufus.exe"
VALUE "ProductName", "Rufus" VALUE "ProductName", "Rufus"
VALUE "ProductVersion", "1.4.8.503" VALUE "ProductVersion", "1.4.8.504"
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"

View file

@ -417,7 +417,7 @@ BOOL SmartGetVersion(HANDLE hdevice)
* from HDDs. But short of a crystal ball, this remains just a guess, which may be * from HDDs. But short of a crystal ball, this remains just a guess, which may be
* way off mark. Still, you are also reminded that Rufus does produce PROMINENT * way off mark. Still, you are also reminded that Rufus does produce PROMINENT
* warnings before you format a drive, and also provides extensive info about the * warnings before you format a drive, and also provides extensive info about the
* drive (from the toolips and the log) => PAY ATTENTION TO THESE OR PAY THE PRICE! * drive (from the tooltips and the log) => PAY ATTENTION TO THESE OR PAY THE PRICE!
* *
* But let me just elaborate further on why differentiating UFDs from HDDs is not as * But let me just elaborate further on why differentiating UFDs from HDDs is not as
* 'simple' as it seems: * 'simple' as it seems:
@ -489,8 +489,6 @@ int IsHDD(DWORD DriveIndex, uint16_t vid, uint16_t pid, const char* strid)
} }
// TODO: try to perform inquiry if below a specific threshold (Verbatim, etc)? // TODO: try to perform inquiry if below a specific threshold (Verbatim, etc)?
#if defined(_DEBUG) duprintf(" Score: %d\n", score);
uprintf(" Score: %d\n", score);
#endif
return score; return score;
} }