diff options
Diffstat (limited to 'src/test/w32dtst.cpp')
-rw-r--r-- | src/test/w32dtst.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/w32dtst.cpp b/src/test/w32dtst.cpp index bc5e6a6..e940bcd 100644 --- a/src/test/w32dtst.cpp +++ b/src/test/w32dtst.cpp @@ -336,7 +336,7 @@ private: static void ReadInt(const char *mode, W32DLib::Registry& r, const char *name) { - unsigned i; + unsigned i=0; bool res=r.Read(name,i); std::cout << "ReadInt(mode=" << mode @@ -389,6 +389,8 @@ int WINAPI WinMain (HINSTANCE hInstance, ReadStr("rw",rw,"str"); ReadInt("ro",rd,"int"); ReadStr("ro",rd,"str"); + ReadStr("rw",rw,"int"); + ReadInt("rw",rw,"str"); WriteInt("rw",rw,"int"); WriteStr("rw",rw,"str"); WriteInt("ro",rd,"int"); |