Skip to content

Commit e2d581d

Browse files
author
Randy Hollines
committed
code clean up
1 parent 059d065 commit e2d581d

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/compiler/rc/doc/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<style>
66
</style>
77
</head>
8-
<frameset cols="16%,*">
8+
<frameset cols="20%,*">
99
<frame name='nav' src='classes.html'/>
1010
<frame name='main' src='bundles.html'/>
1111
</frameset>

src/vm/os/windows/windows.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,19 +376,18 @@ class IPSecureSocket {
376376
class System {
377377
public:
378378

379-
static BOOL GetUserDirectory(char* buf, DWORD buflen) {
380-
BOOL ret;
381-
HANDLE hToken;
379+
static BOOL GetUserDirectory(char* buf, int len) {
380+
HANDLE handle;
382381

383-
if(!OpenProcessToken(GetCurrentProcess(), TOKEN_READ, &hToken)) {
382+
if(!OpenProcessToken(GetCurrentProcess(), TOKEN_READ, &handle)) {
384383
return FALSE;
385384
}
386385

387-
if(!GetUserProfileDirectory(hToken, buf, &buflen)) {
386+
if(!GetUserProfileDirectory(handle, buf, &len)) {
388387
return FALSE;
389388
}
390389

391-
CloseHandle(hToken);
390+
CloseHandle(handle);
392391
return TRUE;
393392
}
394393

0 commit comments

Comments
 (0)