]> git.cworth.org Git - apitrace/blobdiff - common/os_win32.cpp
Resolve some MS compiler warnings (in picky mode)
[apitrace] / common / os_win32.cpp
index c5be8a88efb190f904d2af4fd098e77cbfab1093..bd4b06d46c919d94f2f0e2d24002564db2c9c011 100644 (file)
@@ -42,7 +42,7 @@ String
 getProcessName(void)
 {
     String path;
-    size_t size = MAX_PATH;
+    DWORD size = MAX_PATH;
     char *buf = path.buf(size);
 
     DWORD nWritten = GetModuleFileNameA(NULL, buf, size);
@@ -57,7 +57,7 @@ String
 getCurrentDir(void)
 {
     String path;
-    size_t size = MAX_PATH;
+    DWORD size = MAX_PATH;
     char *buf = path.buf(size);
     
     DWORD ret = GetCurrentDirectoryA(size, buf);