Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 10518027: Don`t use stat() on Windows, use a Unicode-safe Windows function instead (Closed)

Created:
May 10, 2013, 3:09 p.m. by Wladimir Palant
Modified:
May 22, 2013, 6:34 a.m.
Reviewers:
Felix Dahlke, Oleksandr
Visibility:
Public.

Description

IMHO, file access specifics on Windows are complicated enough that stat() is unusable. I replaced stat() with GetFileAttributesExW(), this is both Unicode-safe and will give us high-precision file modification times.

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M include/AdblockPlus/FileSystem.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/DefaultFileSystem.cpp View 1 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 5
Wladimir Palant
May 10, 2013, 3:09 p.m. (2013-05-10 15:09:28 UTC) #1
Felix Dahlke
http://codereview.adblockplus.org/10518027/diff/1/include/AdblockPlus/FileSystem.h File include/AdblockPlus/FileSystem.h (right): http://codereview.adblockplus.org/10518027/diff/1/include/AdblockPlus/FileSystem.h#newcode34 include/AdblockPlus/FileSystem.h:34: inline StatResult() The inline keyword is only necessary for ...
May 17, 2013, 9:18 a.m. (2013-05-17 09:18:49 UTC) #2
Wladimir Palant
May 17, 2013, 10:44 a.m. (2013-05-17 10:44:14 UTC) #3
Oleksandr
On 2013/05/17 10:44:14, Wladimir Palant wrote: LGTM
May 20, 2013, 9:48 a.m. (2013-05-20 09:48:15 UTC) #4
Felix Dahlke
May 22, 2013, 6:16 a.m. (2013-05-22 06:16:21 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld