emulator: Fixed a bug Java path not found on Windows 64
authorjinhyung.jo <jinhyung.jo@samsung.com>
Wed, 2 Sep 2015 05:51:14 +0000 (14:51 +0900)
committerJinhyung Jo <jinhyung.jo@samsung.com>
Fri, 11 Sep 2015 07:42:51 +0000 (16:42 +0900)
commitb18af3ee3c62e92190507c08b4a652c58ca39011
tree7e4610f2f41054d1c28dd2506aac47272ad2ea7e
parentd3bb0b2c3673055f2487a46a21fab9b94f22d6bc
emulator: Fixed a bug Java path not found on Windows 64

The get_java_path function aways returns the first item of the JRE(or JDK) registry.
The RegEnumKeyEx function's 4th argument type is [In, Out],
But previous implementations have used without resetting it.
So fix it and improved the 'while' statement.

Change-Id: Ief77879c1b6be8f02fbc36e5c7d118152984e371
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
(cherry picked from commit 812b3ccac697ae0d026bb7ea911b95aaa7f04921)
util/oslib-win32.c