diff options
author | kroki/tomash@moonlight.intranet <> | 2006-08-10 16:11:55 +0400 |
---|---|---|
committer | kroki/tomash@moonlight.intranet <> | 2006-08-10 16:11:55 +0400 |
commit | aca2c3761a46c8af56397389dee820a74d6faa44 (patch) | |
tree | 07320547c4c2e7e9a0153c6c6611f6e3f70b23c0 /mysys/my_open.c | |
parent | ed42379c7208732116131b55512c018ee5ba1914 (diff) | |
parent | 83896aa8f6b4a4df9702a1ed8ec48415a554b72a (diff) | |
download | mariadb-git-aca2c3761a46c8af56397389dee820a74d6faa44.tar.gz |
Merge moonlight.intranet:/home/tomash/src/mysql_ab/tmp_merge
into moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.1-merge
Diffstat (limited to 'mysys/my_open.c')
-rw-r--r-- | mysys/my_open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/my_open.c b/mysys/my_open.c index 6e57132ae23..ab2f7c9ff27 100644 --- a/mysys/my_open.c +++ b/mysys/my_open.c @@ -334,7 +334,7 @@ File my_sopen(const char *path, int oflag, int shflag, int pmode) * try to open/create the file */ if ((osfh= CreateFile(path, fileaccess, fileshare, &SecurityAttributes, - filecreate, fileattrib, NULL)) == (HANDLE)0xffffffff) + filecreate, fileattrib, NULL)) == INVALID_HANDLE_VALUE) { /* * OS call to open/create file failed! map the error, release @@ -345,7 +345,7 @@ File my_sopen(const char *path, int oflag, int shflag, int pmode) return -1; /* return error to caller */ } - fh= _open_osfhandle((long)osfh, oflag & (_O_APPEND | _O_RDONLY | _O_TEXT)); + fh= _open_osfhandle((intptr_t)osfh, oflag & (_O_APPEND | _O_RDONLY | _O_TEXT)); return fh; /* return handle */ } |