X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos_win32.cpp;h=bd4b06d46c919d94f2f0e2d24002564db2c9c011;hb=3297ed820e2127e96e53b84277e8012caa6114ed;hp=c5be8a88efb190f904d2af4fd098e77cbfab1093;hpb=25e08d072ae40fffa99b72dab0429c6ed25b19ce;p=apitrace diff --git a/common/os_win32.cpp b/common/os_win32.cpp index c5be8a8..bd4b06d 100644 --- a/common/os_win32.cpp +++ b/common/os_win32.cpp @@ -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);