rockbox/utils/jz4740_tools
Thomas Jarosch 2ee2a9697a Fix crash on uninitialized variable
The WRITE() macro checks if the "fw" pointer
is open upon fwrite() error. Since fw was
not initialized before use, it might crash for non-zero fw.

cppcheck reported.
[utils/jz4740_tools/HXFreplace.c:187]: (error) Uninitialized variable: fw

Change-Id: I558170f9f17828c9fd515a5da36ad8b5cb30a9ad
2015-01-13 21:57:24 +01:00
..
windows_driver
DLanalyser.c
HXF2IHFS.c
HXFmerge.c
HXFreplace.c Fix crash on uninitialized variable 2015-01-13 21:57:24 +01:00
HXFsplit.c
IHFSsplit.c
jz4740.h
jz4740_usbtool.c
Makefile
README

*******************************************************************************
   Jz4740 USB tools

  Made by Maurus Cuelenaere for Rockbox
  Copyright (C) 2008
*******************************************************************************

To compile usbtools, you'll need jz_xloader (which can be get at
http://repo.or.cz/w/jz_xloader.git, do
"git clone git://repo.or.cz/jz_xloader.git ." for a clone in the current dir).

When you're on Linux, just type "make linux" to compile all the utilities (make
sure you have libusb-dev installed).
For cleaning: "make clean-linux"

When you're on Windows, install MingW32 and LibUSB-Win32 and edit "Makefile" to
make sure "WIN_DRIVERS_LIBUSB_DIR" is set correctly.
For cleaning: "make clean-win"

When Windows pops up the window when it needs drivers for a "Jz4740 USB Boot
Device" (VID=601A, PID=4740), point it to the windows_driver/ directory.

On Linux there's no driver installation, everything is handled through LibUSB.

That's all!

More info/tools:
  * http://www.rockbox.org/wiki/ChinaChip

 ***************************************************************************
 *             __________               __   ___.
 *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
 *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
 *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
 *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
 *                     \/            \/     \/    \/            \/
 * $Id$
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 * KIND, either express or implied.
 *
 ****************************************************************************