Fixed warnings introduced by the UTF-8 conversion.
This commit is contained in:
@@ -88,7 +88,6 @@ image_is_hdi(const char *s)
|
|||||||
int
|
int
|
||||||
image_is_hdx(const char *s, int check_signature)
|
image_is_hdx(const char *s, int check_signature)
|
||||||
{
|
{
|
||||||
int len;
|
|
||||||
FILE *f;
|
FILE *f;
|
||||||
uint64_t filelen;
|
uint64_t filelen;
|
||||||
uint64_t signature;
|
uint64_t signature;
|
||||||
@@ -125,7 +124,6 @@ image_is_hdx(const char *s, int check_signature)
|
|||||||
int
|
int
|
||||||
image_is_vhd(const char *s, int check_signature)
|
image_is_vhd(const char *s, int check_signature)
|
||||||
{
|
{
|
||||||
int len;
|
|
||||||
FILE* f;
|
FILE* f;
|
||||||
|
|
||||||
if (! strcasecmp(plat_get_extension((char *) s), "VHD")) {
|
if (! strcasecmp(plat_get_extension((char *) s), "VHD")) {
|
||||||
|
|||||||
@@ -198,7 +198,6 @@ static void *
|
|||||||
catalyst_flash_init(const device_t *info)
|
catalyst_flash_init(const device_t *info)
|
||||||
{
|
{
|
||||||
FILE *f;
|
FILE *f;
|
||||||
int l;
|
|
||||||
flash_t *dev;
|
flash_t *dev;
|
||||||
|
|
||||||
dev = malloc(sizeof(flash_t));
|
dev = malloc(sizeof(flash_t));
|
||||||
|
|||||||
@@ -353,7 +353,6 @@ static void *
|
|||||||
intel_flash_init(const device_t *info)
|
intel_flash_init(const device_t *info)
|
||||||
{
|
{
|
||||||
FILE *f;
|
FILE *f;
|
||||||
int l;
|
|
||||||
flash_t *dev;
|
flash_t *dev;
|
||||||
uint8_t type = info->local & 0xff;
|
uint8_t type = info->local & 0xff;
|
||||||
|
|
||||||
|
|||||||
@@ -568,7 +568,6 @@ void
|
|||||||
plat_tempfile(char *bufp, char *prefix, char *suffix)
|
plat_tempfile(char *bufp, char *prefix, char *suffix)
|
||||||
{
|
{
|
||||||
SYSTEMTIME SystemTime;
|
SYSTEMTIME SystemTime;
|
||||||
char temp[1024];
|
|
||||||
|
|
||||||
if (prefix != NULL)
|
if (prefix != NULL)
|
||||||
sprintf(bufp, "%s-", prefix);
|
sprintf(bufp, "%s-", prefix);
|
||||||
|
|||||||
@@ -2100,7 +2100,7 @@ win_settings_hard_disks_update_item(HWND hdlg, int i, int column)
|
|||||||
{
|
{
|
||||||
HWND hwndList = GetDlgItem(hdlg, IDC_LIST_HARD_DISKS);
|
HWND hwndList = GetDlgItem(hdlg, IDC_LIST_HARD_DISKS);
|
||||||
LVITEM lvI;
|
LVITEM lvI;
|
||||||
WCHAR szText[256], usr_path_w[1024];
|
WCHAR szText[256];
|
||||||
|
|
||||||
lvI.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_STATE;
|
lvI.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_STATE;
|
||||||
lvI.stateMask = lvI.iSubItem = lvI.state = 0;
|
lvI.stateMask = lvI.iSubItem = lvI.state = 0;
|
||||||
|
|||||||
@@ -1418,7 +1418,7 @@ void
|
|||||||
plat_pause(int p)
|
plat_pause(int p)
|
||||||
{
|
{
|
||||||
static wchar_t oldtitle[512];
|
static wchar_t oldtitle[512];
|
||||||
wchar_t title[512], *t;
|
wchar_t title[512];
|
||||||
|
|
||||||
/* If un-pausing, as the renderer if that's OK. */
|
/* If un-pausing, as the renderer if that's OK. */
|
||||||
if (p == 0)
|
if (p == 0)
|
||||||
@@ -1434,7 +1434,6 @@ plat_pause(int p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (p) {
|
if (p) {
|
||||||
t = ui_window_title(NULL);
|
|
||||||
wcsncpy(oldtitle, ui_window_title(NULL), sizeof_w(oldtitle) - 1);
|
wcsncpy(oldtitle, ui_window_title(NULL), sizeof_w(oldtitle) - 1);
|
||||||
wcscpy(title, oldtitle);
|
wcscpy(title, oldtitle);
|
||||||
wcscat(title, L" - PAUSED -");
|
wcscat(title, L" - PAUSED -");
|
||||||
|
|||||||
Reference in New Issue
Block a user