diff options
author | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-01 23:45:32 +0000 |
---|---|---|
committer | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-01 23:45:32 +0000 |
commit | 02813afd75c9c3ca51dea1c3fc6ad074b868c31a (patch) | |
tree | 4454416eecaa240eca6f2bce219b55a33d1ccfce | |
parent | d4de764670536528f2347a1f36b9a99cf0306ce8 (diff) | |
download | chromium_src-02813afd75c9c3ca51dea1c3fc6ad074b868c31a.zip chromium_src-02813afd75c9c3ca51dea1c3fc6ad074b868c31a.tar.gz chromium_src-02813afd75c9c3ca51dea1c3fc6ad074b868c31a.tar.bz2 |
[NaCl SDK] flock: Load images from relative path, instead of absolute.
The flock example crashes if it can't find the images. When running as a
packaged app, the images are not in the root, but under the
examples/demo/flock/images directory.
BUG=none
TBR=noelallen@chromium.org
Review URL: https://codereview.chromium.org/18331007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209542 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | native_client_sdk/src/examples/demo/flock/flock.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native_client_sdk/src/examples/demo/flock/flock.cc b/native_client_sdk/src/examples/demo/flock/flock.cc index ac5f490..de23691 100644 --- a/native_client_sdk/src/examples/demo/flock/flock.cc +++ b/native_client_sdk/src/examples/demo/flock/flock.cc @@ -104,8 +104,8 @@ int example_main(int argc, char *argv[]) { PSEventSetFilter(PSE_ALL); - // Mount the images directory as an HTTP resources - mount("/images", "/images", "httpfs", 0, ""); + // Mount the images directory as an HTTP resource. + mount("images", "/images", "httpfs", 0, ""); FILE* fp = fopen("/images/flock_green.raw", "rb"); fread(&fmt, sizeof(fmt), 1, fp); |